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

codex-hud-dashboard

v0.1.10

Published

A safe, local-first terminal HUD and usage dashboard for OpenAI Codex CLI

Downloads

1,020

Readme

codex-hud-dashboard

A safe, local-first terminal HUD and usage dashboard for the OpenAI Codex CLI. Inspired by claude-hud, built for the easiest possible Codex experience: install it, run setup once, then keep using codex exactly as you do today.

Local-first and privacy-safe. codex-hud reads only local metadata Codex already writes. It makes no network calls, never scrapes credentials, never reads transcript message bodies, and never patches the Codex binary.

Quick start

npm install -g codex-hud-dashboard
codex-hud setup        # detect Codex; install the per-prompt hook, shell function, status line
source ~/.zshrc        # reload your shell (or open a new terminal)
codex                  # HUD shows above every prompt inside Codex
codex-hud watch        # optional: live dashboard in a second pane

After setup, the colorized HUD appears above every prompt inside Codex — no separate command to remember. This uses Codex's UserPromptSubmit hook, which codex-hud installs into ~/.codex/hooks.json (merging with any existing hooks, backup-first, reversible). setup also adds a codex shell function so the HUD shows once at startup too.

Manage these independently:

  • codex-hud hooks install | uninstall | status — the per-prompt HUD hook
  • codex-hud shell install | uninstall | print — the startup codex function

Skip either during setup with codex-hud setup --no-hooks / --no-shell. If the in-Codex colors look wrong on your terminal, reinstall plain with codex-hud hooks install --no-color.

What it shows

A compact, colorized status block (colors shown here as plain text):

[gpt-5.5 | high] | split-money-app git:(main)* | ⏱ 42m
Context ▰▰▰▱▱▱▱▱ 30% | Usage ▰▰▰▱▱▱▱▱ 30% (resets in 3h 27m) | Weekly ▰▱▱▱▱▱▱▱ 6% (resets in 6d 12h)
✓ shell ×12  ✓ apply_patch ×4  ✓ web_search ×2
24 msgs · 5 turns · local-only · no credentials read
  • Line 1 — model + reasoning effort, project + git branch (* = dirty), session duration
  • Line 2 — estimated context usage, plus your real 5-hour and weekly rate-limit usage with reset times (when Codex records them)
  • Line 3 — recent tool calls and counts
  • Line 4 — message/turn counts and the privacy badge

Bars turn yellow then red as usage climbs. Color auto-disables for non-TTY output and respects NO_COLOR and --no-color. codex-hud watch renders the same block live as Codex writes to your session.

What setup changes

setup only ever writes the tui.status_line key in ~/.codex/config.toml, and it does so safely:

  • Backs up config.toml (timestamped, verified) before any edit.
  • Keeps every status-line item you already have; only adds missing core items.
  • Shows a before → after diff. Preview with codex-hud setup --dry-run.
  • Fully reversible with codex-hud config reset.

Codex's native status line supports a fixed set of built-in items, so the richer view (tools, duration, estimated context, privacy badge) lives in codex-hud status / watch. See docs/statusline.md.

Privacy & safety

codex-hud reads ~/.codex/config.toml, ~/.codex/sessions/**/*.jsonl (metadata and counts only), git metadata, codex --version, and its own config. It never reads auth.json, API keys, tokens, cookies, secrets, or message bodies. Any token/context figure is an estimate and labeled est.. Full details: docs/privacy.md and docs/data-sources.md.

Commands

| Command | Description | | ------------------------ | ------------------------------------------------------ | | codex-hud setup | Detect Codex and configure codex-hud (run this first) | | codex-hud status | Print a one-shot HUD snapshot (--json for machines) | | codex-hud watch | Live-refresh the HUD | | codex-hud doctor | Diagnose installation and print a privacy disclosure | | codex-hud config <sub> | show | reset | path | | codex-hud shell <sub> | install | uninstall | print (the codex function) | | codex-hud hooks <sub> | install | uninstall | status (per-prompt HUD hook) | | codex-hud skill | Codex skill integration (planned) | | codex-hud hooks | Codex lifecycle hooks (planned) |

Useful flags: setup --dry-run --yes --no-statusline; status --json --project <path> --session <file> --no-color; watch --interval <ms>.

Configuration

codex-hud stores its settings at $XDG_CONFIG_HOME/codex-hud/config.json (or ~/.config/codex-hud/config.json). Inspect with codex-hud config show, find it with codex-hud config path, and restore defaults (and your original Codex status line) with codex-hud config reset.

How it works

Everything is derived locally — see docs/data-sources.md. The session parser streams rollout JSONL files, tolerates schema variation across Codex versions, and retains only counts and metadata.

Development

npm install
npm run dev -- status      # run the CLI from source
npm test                   # vitest
npm run test:coverage      # coverage (core ≥ 80%)
npm run build              # compile to dist/

Roadmap

See docs/roadmap.md. Out of scope by design: binary patching, a run codex wrapper, credential scraping, unofficial API calls, official quota claims, cloud sync, and telemetry.

License

MIT