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

docktui

v0.1.1

Published

Docker Desktop for your terminal — a lightweight TUI for managing containers, images, and volumes

Readme

asciicast

Install

Run it without installing:

npx docktui

Or install globally:

npm install -g docktui
docktui

Features

  • Compose-aware Stacks view — containers grouped by project with running / errored / stopped counts, collapsible per stack.
  • Containers / Images / Volumes — live CPU and memory stats, start / stop / restart / kill / remove with confirm dialogs.
  • Detail panel — full metadata, mounts, environment, live CPU/MEM bars.
  • Streaming log viewer with follow mode, scrollback cap, and color-coded stdout/stderr.
  • Filter — press / from Stacks to filter by stack, service, or image name.
  • Side rail navigation14 or Tab cycles views; click a live stack to jump to it.
  • Help overlay — press h anywhere (except confirm dialogs / the stack filter) to toggle the key-binding reference.
  • Shell into containersx opens an external terminal exec'd into the selected container (macOS Terminal, Windows Terminal, common Linux emulators).
  • Honors DOCKER_HOST — works with rootless Docker, podman, and remote daemons.

Requirements

  • Node.js 20 or later
  • A running Docker daemon (Docker Desktop on macOS/Windows, Docker Engine on Linux, or any podman/rootless setup)
  • A 256-color or truecolor terminal (TERM=xterm-256color or COLORTERM=truecolor)

Configuration

Custom Docker host

docktui auto-detects the daemon socket. To point it elsewhere, set DOCKER_HOST:

DOCKER_HOST=unix:///run/user/1000/docker.sock docktui          # rootless docker
DOCKER_HOST=unix:///run/user/1000/podman/podman.sock docktui   # podman
DOCKER_HOST=tcp://10.0.0.5:2375 docktui                        # remote daemon
DOCKER_HOST=npipe:////./pipe/docker_engine docktui             # Windows named pipe

Shell-into-container (x key)

Requires the docker CLI to be on your PATH. docktui launches your platform's native terminal with docker exec -it <id> sh (falls back to bash if available inside the container).

Key bindings

Global

| Key | Action | |-----|--------| | 14 | Jump to Stacks / Containers / Images / Volumes | | Tab / Shift+Tab | Cycle views | | h | Toggle help overlay | | q / Ctrl+C | Quit |

Stacks

| Key | Action | |-----|--------| | ↑ ↓ / j k | Navigate tree | | / | Expand / collapse stack | | Enter | On a stack: toggle expand. On a service: open detail panel | | / | Open filter (Esc to clear) | | l | Open log viewer | | x | Shell into selected running container | | s / r / k | Stop / restart / kill running container (confirm) | | S | Start stopped container | | d | Remove stopped container (confirm) |

Containers

Same per-container actions as Stacks. Enter always opens the detail panel.

Detail panel

Same container actions as the list/tree (l, s, r, k, S, d, x) plus:

| Key | Action | |-----|--------| | e | Toggle environment variables (expanded / collapsed) | | ↑ ↓ | Scroll | | Esc | Close |

Log viewer

| Key | Action | |-----|--------| | f | Toggle follow mode | | g | Scroll to top | | G | Scroll to bottom, re-enable follow | | / k | Scroll up (disables follow) | | Esc | Close |

Images & Volumes

| Key | Action | |-----|--------| | ↑ ↓ / j k | Navigate list | | d | Delete unused item (confirm) |

Confirm dialog

| y / Y to confirm · n / N / Esc to cancel | |-----------------------------------------------------|

Troubleshooting

permission denied on the Docker socket (Linux)

Add your user to the docker group, then log out and back in:

sudo usermod -aG docker $USER

Windows: cannot connect to the daemon

By default docktui tries the named pipe //./pipe/docker_engine. If that fails, enable TCP in Docker Desktop (Settings → General → Expose daemon on tcp://localhost:2375 without TLS) and run:

DOCKER_HOST=tcp://localhost:2375 docktui

docktui requires a 256-color (or truecolor) terminal

Your $TERM is too narrow. Set it explicitly or use a modern terminal:

TERM=xterm-256color docktui

The 'docker' CLI is not on your PATH

You hit x (shell into container) but the docker binary isn't installed or isn't on PATH. Install Docker CLI or skip the x action — everything else works without it.

Development

git clone https://github.com/0xShady/docktui.git
cd docktui
npm install

npm run dev            # run from source with ts-node
npm run build          # compile to dist/
npm start              # run compiled output

npm test               # vitest, one-shot
npm run test:coverage  # generate ./coverage/index.html
npm run lint
npm run format

See CONTRIBUTING.md for the pre-PR checklist and CHANGELOG.md for release history.

License

MIT © Achraf El Fadili