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

@kaynooo/cli-docker

v0.15.1

Published

dc: unified Docker Compose CLI — service picker/listing, health & error summary, redacted logs, shell/exec, deterministic ports, and compose passthrough.

Readme

docker

Unified Docker Compose CLI (dc): service picker and listing, health and error summary, redacted logs, masked container environment inspection, one-shot container stats, shell/exec, deterministic ports, and compose passthrough.

bun install -g @kaynooo/cli-docker

Commands

| Command | What it does | | --- | --- | | dc / dc --json | without a terminal (a script, a pipe, an agent) it lists the services with their state, ports and image, --json for the full record. On a terminal it picks one instead: enter opens its shell (or brings it up), ctrl-l follows its logs, ctrl-r restarts, ctrl-x stops, ctrl-b rebuilds; the ones acted on last come first | | dc - | the last picker action again | | dc health [service...] | one line per service with its state and health, then the last distinct error lines of its logs (-n per service, --since 1h), a repeated message once with ×N and secrets masked as ev redact does; --all adds the last lines of a quiet service, --level warn keeps warnings too, and --grep <regex> keeps matching lines. Exits 1 when a service is down, unhealthy or logged a line; --fail-on down\|unhealthy\|errors (repeatable, all three by default) picks what counts | | dc logs [service...] | prints or follows compose service logs with secrets masked by default (--tail N, --since <dur>, --grep <regex>, --errors, --follow / --no-follow, --raw). Follows on a terminal unless --no-follow or --grep is set; prints once off a terminal | | dc env <service> [--grep <pattern>] [--json] | reads the container's environment via docker inspect (works even in distroless containers without an env binary) with secret values always masked by key-name heuristics, token/URL patterns and known .env secrets; --grep filters keys by case-insensitive regex and --json prints {service, container, env: [{key, value, masked}]} | | dc stats [service...] [--json] | one-shot resource usage table (SERVICE, CPU, MEM, MEM %, NET I/O, BLOCK I/O, PIDS) via docker stats --no-stream for running containers of the stack (optionally narrowed to named services); --json prints the parsed records | | dc shell [service] | opens an interactive shell in the service (bash when available, else sh; starts it if stopped) | | dc exec <service> <cmd...> | runs a command inside a compose service on the nearest stack | | dc port <name> [--min <n>] [--max <n>] [--json] | deterministic 32-bit FNV-1a host port for a service name (1024-32767 by default), warning on stderr when something already listens on it | | dc ports [--json] | lists published host -> container ports across all discovered compose services | | dc <compose args> | passes any other docker compose verb (up, down, ps, restart, stop, build, config...) to the nearest compose file (or .env setting COMPOSE_FILE) up to the repository root | | dc <project> <compose args> | the same on a stack that came up from other files (-f docker-compose.prod.yaml --env-file .env.prod), found through the labels compose put on its containers |

With several stacks that only have containers here and no name, dc opens an interactive picker when a terminal is attached, and otherwise lists the projects. When it picked the stack through its containers it prints the compose command it stands for on stderr.

Services are named php for this folder's stack, api/php for a child folder's and <project>:php for a stack found through its containers; a bare name also finds the same service in a child folder.

Config

~/.config/kaynooo-cli/dc.json ($XDG_CONFIG_HOME/kaynooo-cli/ when set, falling back to dlog.json) takes tail (500 by default, the log lines read per service) and width (220, the longest error line kept) as positive whole numbers.