A high-performance dashboard for monitoring and managing BullMQ job queues. Built with React, TypeScript.
- π Real-time Queue Monitoring - View all your job queues at a glance
- π― Job Filtering - Filter jobs by status (Completed, Failed, Active, Waiting, Delayed)
- β° Next Scheduled Job - See upcoming scheduled jobs with live countdown
- π¨ Modern UI - Clean, responsive interface built with shadcn/ui
- π Search & Filter - Quickly find jobs by queue, status, or job ID
- π Statistics - View aggregated stats across all queues
- π³ Docker Ready - Easy deployment with Docker and Docker Compose
- π BullMQ Compatible - Works seamlessly with BullMQ job queues
Frontend:
- React 18 + TypeScript
- Vite for fast builds
- shadcn/ui components
- TanStack Query for state management
- Tailwind CSS for styling
Backend:
- Node.js + Express
- TypeScript
- BullMQ for queue management
- Redis (ioredis)
The backend follows a modular service architecture with specialized services:
BullMQService(Facade) - Main orchestrator, provides clean APIRedisConnectionService- Manages Redis connections and BullQueue instancesQueueDiscoveryService- Auto-discovers queues with caching (5s TTL)JobFetchingService- Fetches jobs with parallel Redis callsStatsService- Calculates aggregate statistics
- Node.js 18+
- Redis server running
- npm or yarn
# Clone the repository
git clone https://github.com/yourusername/matador.git
cd matador
# Install dependencies
npm install
# Install server dependencies
cd server && npm install && cd ..# Start Redis (if not already running)
docker run -d -p 6379:6379 redis:latest
# Terminal 1: Start the backend server
cd server
npm run dev
# Terminal 2: Start the frontend dev server
npm run devOpen http://localhost:5173 in your browser.
# Build both frontend and backend
npm run build:all
# Start the production server
cd server
npm startThe app will be available at http://localhost:3000.
The easiest way to run the entire stack:
# Start both Redis and Matador
docker-compose up --build
# Stop the services
docker-compose down# Build the image
npm run docker:build
# Run the container (requires external Redis)
docker run -p 3000:3000 \
-e REDIS_HOST=host.docker.internal \
-e REDIS_PORT=6379 \
matadorSee README-DOCKER.md for detailed Docker deployment instructions.
Create a .env file in the server directory:
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# Server Configuration
PORT=3000
NODE_ENV=productionFor optimal performance, configure Redis with the noeviction policy:
# In redis.conf
maxmemory-policy noevictionOr via command line:
redis-cli CONFIG SET maxmemory-policy noevictionMatador automatically discovers all BullMQ queues in your Redis instance. Just ensure:
- Your BullMQ queues are using the same Redis instance
- Matador backend can connect to that Redis instance
- Queue names follow the BullMQ naming convention (
bull:queueName:*)
The backend exposes the following REST API endpoints:
- GET
/api/queues- List all discovered queues - GET
/api/jobs- Get jobs (supports filtering by queue and status) - GET
/api/stats- Get aggregate statistics - GET
/api/health- Health check endpoint
Example:
# Get all jobs from a specific queue
curl "http://localhost:3000/api/jobs?queue=my-queue"
# Get only failed jobs
curl "http://localhost:3000/api/jobs?status=failed"
# Get jobs from a specific queue with a status filter
curl "http://localhost:3000/api/jobs?queue=my-queue&status=active"matador/
βββ src/ # Frontend source
β βββ components/ # React components
β βββ services/ # API client
β βββ hooks/ # Custom React hooks
β βββ lib/ # Utilities
βββ server/ # Backend source
β βββ src/
β β βββ services/ # Backend services
β β β βββ bullmq.service.ts
β β β βββ redis-connection.service.ts
β β β βββ queue-discovery.service.ts
β β β βββ job-fetching.service.ts
β β β βββ stats.service.ts
β β βββ routes/ # API routes
β β βββ index.ts # Server entry point
β βββ dist/ # Compiled backend
βββ docs/ # Documentation and images
βββ Dockerfile # Production Docker image
βββ docker-compose.yml # Docker Compose configuration
βββ README.md # This file
# Frontend tests
npm test
# Backend tests
cd server
npm testContributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow the existing code style
- Write tests for new features
- Update documentation as needed
- Ensure all tests pass before submitting PR
This project is licensed under the MIT License - see the LICENSE file for details.
- BullMQ - The fantastic job queue library
- shadcn/ui - Beautiful UI components
- Redis - The blazing fast in-memory database
If you encounter any issues or have questions:
- π Report a bug
- π‘ Request a feature
- π Read the documentation
Made with β€οΈ for the developer community




