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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mongodb-tui

v1.2.3

Published

A terminal-based user interface for MongoDB built with [Ink](https://github.com/vadimdemedes/ink).

Readme

MongoDB TUI

A terminal-based user interface for MongoDB built with Ink.

Features

  • Connect to MongoDB instances (local or remote)
  • Browse databases and collections
  • View documents in a tabular format with pagination
  • Sort documents in ascending or descending order
  • Search documents by field values
  • Edit document fields
  • Navigate using keyboard shortcuts
  • Horizontal scrolling to view all document fields

Installation

# Install globally from npm
npm install -g mongodb-tui

# Or using yarn
yarn global add mongodb-tui

Troubleshooting

If you installed with yarn global add but the mongodb-tui command is not found, you may need to add yarn's global bin directory to your PATH:

# Add yarn global bin to PATH
echo 'export PATH="$(yarn global bin):$PATH"' >> ~/.bashrc
source ~/.bashrc

# For zsh users
echo 'export PATH="$(yarn global bin):$PATH"' >> ~/.zshrc
source ~/.zshrc

Usage

# Run with default connection (mongodb://localhost:27017)
mongodb-tui

# Connect to a specific MongoDB instance
mongodb-tui --url=mongodb://username:password@hostname:port/database

Keyboard Shortcuts

In Document View

  • / : Navigate between document rows
  • / : Navigate between document fields (columns)
  • Page Up / Page Down: Navigate between pages
  • Enter: View detailed content of the selected field
  • s: Enter search mode
  • o: Toggle sort order (ascending/descending)
  • e: Edit selected field of the selected document
  • f: Go to first page
  • l: Go to last page
  • [: Scroll to first columns
  • ]: Scroll to last columns
  • ESC: Go back to previous view or cancel current operation

Development

Setup Development Environment

# Clone the repository
git clone https://github.com/yourusername/mongodb-tui.git
cd mongodb-tui

# Install dependencies
npm install

# Watch for changes and rebuild
npm run dev

# In another terminal, run the app
node dist/cli.js

Publishing to npm

# Update version in package.json (patch, minor, or major)
npm version patch

# Build the application
npm run build

# Login to npm
npm login

# Publish the package
npm publish

# Or publish with a specific tag
npm publish --tag beta

Make sure to update the version number in package.json before publishing a new version. You can use npm version patch, npm version minor, or npm version major to automatically increment the version number according to semantic versioning principles.

License

MIT