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

dbmonk

v0.1.5

Published

Ultra-Advanced Database Monitoring CLI for PostgreSQL and MySQL

Readme

dbmonk

Ultra-Advanced Database Monitoring CLI for PostgreSQL and MySQL.

dbmonk is a high-performance, intelligent database health analyst built for modern engineering teams. It provides deep visibility into your database systems with zero-overhead, real-time monitoring, and automated root-cause analysis.


🚀 Quick Start

Installation

Install globally via npm:

npm install -g dbmonk

Run a Health Check (Doctor)

Get an instant assessment of your database's current state:

dbmonk doctor

Launch the Live Dashboard

Monitor your database in real-time with an interactive TUI:

dbmonk live

🧪 Try it Now (No DB Required)

See dbmonk in action immediately using the built-in demonstration mode:

# Full health report demo
dbmonk doctor --mock

# Interactive dashboard demo
dbmonk live --mock

# Lock tree visualization demo
dbmonk locks --mock

✨ Key Features

  • Intelligent Health Scoring: A multi-dimensional model evaluating Availability, Performance, Concurrency, and Resource Pressure.
  • Real-time TUI Dashboard: A premium, interactive terminal experience for live observability.
  • Anomaly Correlation: Detects complex issues by correlating multiple signals (latency + locks + saturation).
  • Root Cause Diagnostics: Explains why performance is degrading and provides actionable recommendations.
  • Predictive Forecasting: Estimates when you'll hit critical thresholds like disk exhaustion or connection limits.
  • Production Safe: Read-only by default with minimal overhead queries.

📖 Configuration

dbmonk can be configured via environment variables or a .env file in your current directory.

Environment Variables

DB_ENGINE=postgres  # or mysql
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=your_password
DB_DATABASE=my_app_db

📋 Commands Reference

| Command | Description | Example | | :--- | :--- | :--- | | doctor | Full health assessment and recommendations | dbmonk doctor | | live | Interactive real-time dashboard | dbmonk live | | locks | Visualize active locking trees and root blockers | dbmonk locks | | top | Show high-impact database activity | dbmonk top | | diagnose | Perform symptom-based root cause analysis | dbmonk diagnose | | storage | Analyze space usage and growth trends | dbmonk storage |


🏗 Architecture

dbmonk uses a modular adapter-based architecture to ensure extensibility and high performance.

  • Adapters: Normalize metrics from different engines (PG, MySQL) into a unified internal model.
  • Engines: Specialized logic for scoring, anomalies, and diagnostics.
  • Storage: A lightweight SQLite-based history store for trend analysis and forecasting.
  • TUI: Built with blessed and blessed-contrib for a fast, resource-efficient dashboard.

🛡 Security & Safety

  • Read-Only: dbmonk only executes SELECT and SHOW commands on system views. It will never modify your data or configuration.
  • Zero Impact: Collectors use batched execution and adaptive sampling to ensure they never become the bottleneck.

📄 License

MIT License.