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

@mazhu/dockr

v1.0.0

Published

A better Docker CLI — enhanced container management with colors, resource monitoring, and one-click cleanup

Readme

🚀 dockr

A better Docker CLI — enhanced container management with colors, resource monitoring, and one-click cleanup.

Zero dependencies. Pure Node.js. Beautiful terminal output.

Features

| Command | Description | |---------|-------------| | dockr ps | Enhanced container list with status colors & live resource usage | | dockr stats | Real-time resource monitoring for all containers | | dockr logs <name> | Beautiful log output with level detection & search/filter | | dockr exec <name> | Quick shell into any container | | dockr clean | One-click cleanup of unused images, containers, volumes, networks | | dockr images | List images with size formatting |

Install

npm install -g @mazhu/dockr

Or use directly with npx:

npx @mazhu/dockr ps

Requirements

  • Node.js >= 16
  • Docker running locally (uses Unix socket)

Usage

Enhanced Container List

dockr ps                 # Running containers with live CPU/MEM stats
dockr ps -a              # All containers (including stopped)
dockr ps nginx           # Filter by name or image

Output includes:

  • Color-coded status (green=running, red=error exit, gray=stopped)
  • Live CPU & memory usage
  • Network I/O
  • Port mappings

Real-time Monitoring

dockr stats              # Live resource monitoring (like htop for Docker)
dockr stats --no-stream  # Single snapshot

Beautiful Logs

dockr logs myapp              # Follow logs with timestamps & level detection
dockr logs myapp --tail 500   # Last 500 lines
dockr logs myapp -f error     # Filter lines containing "error" (highlighted)
dockr logs myapp --since 1h   # Logs from last hour

Features:

  • Automatic log level detection (ERROR, WARN, INFO, DEBUG, FATAL)
  • Color-coded log levels
  • Keyword search with highlighting
  • Smart timestamp formatting

Quick Shell Access

dockr exec myapp           # Open /bin/sh in container
dockr exec myapp bash      # Open bash instead
dockr exec myapp "ls -la"  # Run a single command

One-Click Cleanup

dockr clean                # Preview what would be removed
dockr clean --force        # Actually remove unused resources

Cleans up:

  • Stopped containers
  • Dangling images
  • Unused volumes
  • Unused custom networks

Image Management

dockr images              # List all images with human-readable sizes
dockr images -a           # Including intermediate images
dockr images nginx        # Filter by name

Comparison with docker CLI

| Feature | docker | dockr | |---------|----------|---------| | Container list with stats | docker ps + docker stats --no-stream | dockr ps (single command) | | Color-coded status | ❌ | ✅ | | Log level detection | ❌ | ✅ | | Log search/filter | docker logs \| grep | dockr logs -f keyword (highlighted) | | One-click cleanup | docker system prune (interactive) | dockr clean (dry-run first) | | Zero external dependencies | N/A | ✅ |

Development

git clone https://github.com/deepdadou/dockr.git
cd dockr
npm link
dockr --help

License

MIT © Mike Wang