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

dbdock

v1.2.3

Published

Enterprise-grade database backup, restore, and cross-database migration (MongoDB ↔ PostgreSQL). CLI-first tool with encryption, compression, and multi-cloud storage.

Readme

DBdock

The open-source database CLI for PostgreSQL backups, restores, database copies, and cross-database migrations between MongoDB and PostgreSQL — with encryption, compression, and multi-cloud storage built in.

npm version License: MIT Node.js Documentation

DocumentationDiscussionsReport a Bug


Stop writing backup scripts. Stop maintaining migration code. One CLI, one command.

npx dbdock init                               # One-time setup
npx dbdock backup                             # Backup with encryption + compression
npx dbdock restore                            # Interactive restore
npx dbdock copydb "src_url" "dst_url"         # Copy a database, zero config
npx dbdock migrate "mongo_url" "postgres_url" # Cross-database migration

Install

With npx (no install):

npx dbdock --help

Global install:

npm install -g dbdock

Prerequisites: Node.js 18+ and PostgreSQL client tools (pg_dump, pg_restore, psql).

# macOS
brew install postgresql

# Ubuntu/Debian
sudo apt-get install postgresql-client

# Windows
# Download from https://www.postgresql.org/download/windows/

Features

  • Beautiful CLI — real-time progress bars, speed tracking, smart filtering
  • Multiple storage — local disk, AWS S3, Cloudflare R2, Cloudinary
  • Security-first — AES-256-GCM encryption, env-var secrets, credential masking, .pgpass support
  • Retention policies — auto-cleanup by count/age with a safety net
  • Alerts — email (SMTP) and Slack for backup success and failure
  • Cron schedules — automated backups
  • Cross-database — MongoDB ↔ PostgreSQL with schema mapping and dry runs
  • TypeScript SDK — use DBdock programmatically in any Node.js app

Quick start

npx dbdock init      # Interactive setup (30 seconds)
npx dbdock test      # Validate connections
npx dbdock backup    # Create your first backup
npx dbdock restore   # Interactive restore

See the Quickstart guide for a full walkthrough.

Commands at a glance

| Command | Purpose | |---|---| | init | Interactive setup wizard | | backup | Create a backup | | restore | Restore a backup (with filtering) | | copydb | Copy a database between two URLs | | list | List backups | | delete | Delete specific or all backups | | cleanup | Apply retention policy | | schedule | Manage cron schedules | | status | View schedules and service health | | test | Validate configuration | | analyze | Inspect a database structure | | migrate | Cross-database migration | | migrate-config | Move legacy secrets to env vars |

Full reference at docs.dbdock.xyz/cli/overview.

Cross-database migration

MongoDB → PostgreSQL or PostgreSQL → MongoDB with automatic schema mapping, dry runs, and incremental sync.

npx dbdock analyze "mongodb://localhost:27017/myapp"       # Inspect first
npx dbdock migrate "mongo_url" "postgres_url" --dry-run    # Validate
npx dbdock migrate "mongo_url" "postgres_url"              # Run it

See docs.dbdock.xyz/migration.

Storage providers

DBdock writes backups to your storage of choice:

Swap providers by changing one line in dbdock.config.json.

Programmatic usage

const { createDBDock, BackupService } = require('dbdock');

const dbdock = await createDBDock();
const backups = dbdock.get(BackupService);

const result = await backups.createBackup({
  compress: true,
  encrypt: true,
});

console.log(`Backup ${result.metadata.id} — ${result.metadata.formattedSize}`);

Full SDK reference at docs.dbdock.xyz/sdk.

Security

  • Secrets live in environment variables, never in dbdock.config.json
  • AES-256-GCM encryption with PBKDF2 key derivation
  • Credential masking in logs
  • .pgpass support for host-level credential isolation
  • Strict mode (DBDOCK_STRICT_MODE=true) refuses any config file that contains secrets

See docs.dbdock.xyz/core/security and SECURITY.md for vulnerability reporting.

Contributing

Contributions welcome! See CONTRIBUTING.md for development setup and guidelines.

Contributors

Thanks to everyone who has contributed to DBdock:

Created and maintained by Naheem Olaide.

License

MIT — free forever, self-hosted, no vendor lock-in.