npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pg-boss-admin-dashboard

v1.1.1

Published

Admin dashboard and debugging console for monitoring, managing and analyzing pg-boss job queues

Readme

pg-boss-admin-dashboard

npm version License: MIT

A comprehensive admin dashboard, debugging console, and monitoring tool for pg-boss job queues. Monitor job health, debug failed jobs, analyze performance metrics, and manage your background job processing with a powerful web-based interface.

pg-boss-admin-dashboard Screenshot

🚀 Features

  • 📊 Real-time Monitoring - Auto-refreshing queue statistics and job data
  • 📈 Visual Analytics - Interactive charts showing job processing trends over time
  • 🔍 Advanced Search - Filter jobs by state, date range, or JMESPath queries
  • 💼 Job Management - View detailed job information and metadata
  • 🎨 Modern UI - Clean, responsive design with dark theme support
  • ⚡ Fast & Lightweight - Minimal dependencies, optimized performance
  • 🔌 Easy Integration - Simple CLI installation, works with existing pg-boss setups
  • 🐛 Debugging Tools - Inspect failed jobs, view error messages, and analyze job data
  • 📊 Performance Metrics - Track job processing times, success rates, and queue throughput
  • 🔧 Admin Controls - Manage queues and job states (retry/cancel placeholders for safety)

📦 Installation

Global Installation (Recommended)

npm install -g pg-boss-admin-dashboard

Local Installation

npm install pg-boss-admin-dashboard

🏃 Quick Start

  1. Ensure you have a PostgreSQL database with pg-boss initialized
  2. Set your database connection string:
    export PGBOSS_DATABASE_URL="postgres://user:password@localhost:5432/your_db"
    Or create a .env file:
    PGBOSS_DATABASE_URL=postgres://user:password@localhost:5432/your_db
  3. Start the dashboard:
    pg-boss-admin-dashboard

The dashboard will automatically open at http://localhost:8671

💻 CLI Usage

pg-boss-admin-dashboard [options]

Options:
  --port=<number>    Port to run the dashboard on (default: 8671)
  --no-browser       Don't automatically open browser
  -h, --help         Show help message

Examples:
  pg-boss-admin-dashboard                    # Start on default port
  pg-boss-admin-dashboard --port=3000        # Start on custom port
  pg-boss-admin-dashboard --no-browser       # Start without opening browser

⚙️ Configuration

Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | PGBOSS_DATABASE_URL | ✅ Yes | - | PostgreSQL connection string | | PGBOSS_DASHBOARD_PORT | No | 8671 | Dashboard server port | | PGBOSS_NO_BROWSER | No | false | Disable auto-opening browser |

Configuration Priority

  1. Command-line arguments (highest priority)
  2. Environment variables
  3. .env file in current directory
  4. .env file in package directory
  5. Default values (lowest priority)

🎯 Features in Detail

Queue Overview

  • Real-time queue statistics with job counts by state
  • Visual health indicators based on queue status
  • Quick navigation between different queues

Job Statistics

  • Time-series charts with configurable intervals (minute to year)
  • Separate views for global and per-queue statistics
  • Interactive charts with hover details

Job Filtering

  • State Filter: Filter by created, active, completed, failed, retry, or cancelled
  • Date Range: Filter jobs by creation date
  • Text Search: Search across job IDs and data
  • JMESPath Queries: Advanced JSON queries with jq: prefix

JMESPath Examples

jq:data.userId == "123"              # Find jobs for specific user
jq:data.amount > "100"               # Find high-value jobs
jq:contains(data.tags, "urgent")     # Find urgent jobs

Job Details

  • Complete job metadata display
  • JSON data viewer with syntax highlighting
  • Timing information and retry details
  • Click-to-filter functionality

🔐 Security Considerations

  • Never expose the dashboard to the public internet without authentication
  • Use read-only database credentials when possible
  • Consider using SSH tunnels for remote connections
  • Implement authentication middleware for production deployments

Recommended Production Setup

// Add authentication middleware before starting dashboard
const authMiddleware = (req, res, next) => {
  // Your authentication logic here
  next();
};

// Use with Express app
app.use('/dashboard', authMiddleware, pgBossDashboard);

🛠️ Development

Prerequisites

  • Node.js 14+
  • PostgreSQL with pg-boss installed
  • npm or yarn

Running from Source

# Clone repository
git clone https://github.com/lpetrov/pg-boss-admin-dashboard.git
cd pg-boss-admin-dashboard

# Install dependencies
npm install

# Set up environment
cp .env.example .env
# Edit .env with your database connection

# Run in development mode
npm run dev

Project Structure

pg-boss-admin-dashboard/
├── bin/                    # CLI executable
│   └── pg-boss-admin-dashboard.js
├── public/                 # Frontend static files
│   ├── index.html         # Main HTML
│   ├── app.js             # Application logic
│   └── styles.css         # Styling
├── client/                 # React version (in development)
├── index.js               # Express server
├── package.json           # Package configuration
└── README.md              # Documentation

🤝 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/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Development Guidelines

  • Follow existing code style
  • Add tests for new features
  • Update documentation as needed
  • Ensure backward compatibility

📝 License

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

🙏 Acknowledgments

📞 Support


Made with ❤️ by the pg-boss community