Skip to content
Naveenv01Public

About

A simple Bull Job dashboard

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 Matador

Matador Logo

Modern Job Queue Monitoring Dashboard

A high-performance dashboard for monitoring and managing BullMQ job queues. Built with React, TypeScript.

Matador Dashboard

✨ Features

  • πŸ“Š 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

πŸ“Έ Screenshots

Filter Jobs by Status
Filtered View
Search Functionality
Search View

πŸ—οΈ Architecture

Architecture

Technology Stack

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)

Service Architecture

The backend follows a modular service architecture with specialized services:

  • BullMQService (Facade) - Main orchestrator, provides clean API
  • RedisConnectionService - Manages Redis connections and BullQueue instances
  • QueueDiscoveryService - Auto-discovers queues with caching (5s TTL)
  • JobFetchingService - Fetches jobs with parallel Redis calls
  • StatsService - Calculates aggregate statistics

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • Redis server running
  • npm or yarn

Installation

# 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 ..

Development

# 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 dev

Open http://localhost:5173 in your browser.

Production Build

# Build both frontend and backend
npm run build:all

# Start the production server
cd server
npm start

The app will be available at http://localhost:3000.

🐳 Docker Deployment

Using Docker Compose (Recommended)

The easiest way to run the entire stack:

# Start both Redis and Matador
docker-compose up --build

# Stop the services
docker-compose down

Using Docker Only

# 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 \
  matador

See README-DOCKER.md for detailed Docker deployment instructions.

βš™οΈ Configuration

Environment Variables

Create a .env file in the server directory:

# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=

# Server Configuration
PORT=3000
NODE_ENV=production

Redis Configuration

For optimal performance, configure Redis with the noeviction policy:

# In redis.conf
maxmemory-policy noeviction

Or via command line:

redis-cli CONFIG SET maxmemory-policy noeviction

πŸ“– Usage

Connecting to Your Queues

Matador automatically discovers all BullMQ queues in your Redis instance. Just ensure:

  1. Your BullMQ queues are using the same Redis instance
  2. Matador backend can connect to that Redis instance
  3. Queue names follow the BullMQ naming convention (bull:queueName:*)

API Endpoints

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"

πŸ› οΈ Development

Project Structure

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

Running Tests

# Frontend tests
npm test

# Backend tests
cd server
npm test

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow the existing code style
  • Write tests for new features
  • Update documentation as needed
  • Ensure all tests pass before submitting PR

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • BullMQ - The fantastic job queue library
  • shadcn/ui - Beautiful UI components
  • Redis - The blazing fast in-memory database

πŸ“§ Support

If you encounter any issues or have questions:


Made with ❀️ for the developer community

About

A simple Bull Job dashboard

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages