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

@clidey/whodb-cli

v0.88.0

Published

WhoDB CLI - database management tool with TUI, programmatic commands, and MCP server

Readme

@clidey/whodb-cli

WhoDB CLI - a powerful database management tool with interactive TUI, programmatic commands, and MCP server for AI assistants.

Installation

# Run directly (no install required)
npx @clidey/whodb-cli --help

# Or install globally
npm install -g @clidey/whodb-cli

Features

  • Interactive TUI: Full terminal UI for database management
  • Programmatic Commands: Query, export, and manage databases from scripts
  • MCP Server: Integrate with Claude Desktop, Claude Code, and other AI assistants

Supported Databases

  • PostgreSQL
  • MySQL / MariaDB
  • SQLite
  • MongoDB
  • Redis
  • Elasticsearch
  • ClickHouse

Enterprise Edition adds: MSSQL, Oracle, DynamoDB

Usage

Interactive Mode (TUI)

npx @clidey/whodb-cli

Programmatic Commands

# Query a database
npx @clidey/whodb-cli query "SELECT * FROM users LIMIT 10" --connection mydb

# List schemas
npx @clidey/whodb-cli schemas --connection mydb --format json

# List tables
npx @clidey/whodb-cli tables --connection mydb --schema public

# Describe columns
npx @clidey/whodb-cli columns --connection mydb --table users

# Export data
npx @clidey/whodb-cli export --connection mydb --table users --format csv

MCP Server Mode

Start as an MCP server for AI assistant integration:

npx @clidey/whodb-cli mcp serve

Usage with Claude Desktop

Add to your ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "whodb": {
      "command": "npx",
      "args": ["-y", "@clidey/whodb-cli", "mcp", "serve"],
      "env": {
        "WHODB_DEFAULT_URI": "postgres://user:pass@localhost:5432/mydb"
      }
    }
  }
}

Usage with Claude Code

claude --mcp-server "npx -y @clidey/whodb-cli mcp serve"

Or add to your .mcp.json:

{
  "mcpServers": {
    "whodb": {
      "command": "npx",
      "args": ["-y", "@clidey/whodb-cli", "mcp", "serve"],
      "env": {}
    }
  }
}

Environment Variables

Configure database connections via environment variables:

| Variable | Description | |----------|-------------| | WHODB_DEFAULT_URI | Default database connection string | | WHODB_{NAME}_URI | Named connection (e.g., WHODB_PROD_URI) |

Available MCP Tools

| Tool | Description | |------|-------------| | whodb_connections | List available database connections | | whodb_schemas | List schemas in a database | | whodb_tables | List tables in a schema | | whodb_columns | Get column details for a table | | whodb_query | Execute SQL queries |

Platform Support

This package automatically installs the correct binary for your platform:

  • macOS (Intel and Apple Silicon)
  • Linux (x64, ARM64, ARMv7)
  • Windows (x64, ARM64)

Links

License

Apache-2.0