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

@bulletproof-sh/ctrl-daemon

v0.3.0

Published

WebSocket daemon for ctrl — watches Claude Code sessions and broadcasts agent state

Readme

@bulletproof-sh/ctrl-daemon

WebSocket daemon for Ctrl / Cubicles — auto-discovers AI coding agent sessions (Claude Code, OpenAI Codex, Augment Code) and broadcasts live agent state to connected web clients. Features a full-screen animated TUI with a centered log panel showing daemon events in real time.

Requirements

  • Bun — required at runtime (curl -fsSL https://bun.sh/install | bash)

Usage

# Auto-discover all installed AI coding tools (default)
npx @bulletproof-sh/ctrl-daemon

# Watch a single project directory
npx @bulletproof-sh/ctrl-daemon --project-dir /path/to/your/project

# Custom port / host
npx @bulletproof-sh/ctrl-daemon --port 3001 --host 127.0.0.1

# Choose a TUI background animation
npx @bulletproof-sh/ctrl-daemon --animation starfield

# Disable the TUI (plain text output)
npx @bulletproof-sh/ctrl-daemon --no-tui

# Don't auto-open the browser
npx @bulletproof-sh/ctrl-daemon --no-open

Options

| Flag | Default | Description | |---|---|---| | --port <number> | 3001 | Port to listen on (auto-increments if in use) | | --host <address> | 0.0.0.0 | Host/address to bind to | | --project-dir <path> | — | Watch a single project; omit to auto-discover all tools | | --idle-timeout <minutes> | 15 | Agent idle timeout in minutes | | --animation, -a <name> | random | Background animation: matrix, starfield, aurora, fireflies, life, pipes, dvd, starwars, none | | --no-tui | — | Disable TUI (also auto-disabled when not a TTY) | | --no-open | — | Don't auto-open the browser on startup | | --help, -h | — | Print usage |

Without --project-dir, the daemon auto-discovers all installed AI coding tools and watches their session directories.

If the requested port is already in use, the daemon automatically tries the next port (up to 10 attempts).

Terminal UI

When running in a TTY, the daemon displays an animated background (randomly selected from matrix, starfield, aurora, fireflies, life, pipes, and dvd) with a centered panel showing the CTRL logo, live agent/client counts, and scrolling daemon event logs. Use --animation <name> to pick a specific animation, or --no-tui to disable the TUI entirely.

The TUI handles terminal resize and restores the terminal cleanly on exit. The TUI is also automatically disabled when stdout is not a TTY (e.g. when piping output or running in CI).

Sharing your office

Run the daemon and an ngrok tunnel in parallel to share a live view with anyone:

# Terminal 1 — start the daemon
npx @bulletproof-sh/ctrl-daemon

# Terminal 2 — expose it publicly
ngrok http 3001

Then open ctrl.bulletproof.sh, go to Settings → Share Office and copy the generated link. Anyone who opens it will see your agents in real time — no auth or setup required on their end.

Note: Free ngrok URLs rotate each time you restart the tunnel. A paid ngrok plan gives you a stable domain.

WebSocket API

Connect to ws://localhost:3001/ws. The daemon broadcasts JSON messages whenever agent state changes — the same message format used by the VS Code extension's internal webview protocol.

The Ctrl web app connects here by default. You can change the URL in the app's Settings modal or by setting VITE_DAEMON_WS_URL at build time.

Health check

GET /health returns JSON with daemon status, agent count, and version:

{ "status": "ok", "agents": 3, "version": "0.0.18" }

Environment Variables

| Variable | Description | |---|---| | CLAUDE_HOME | Override the Claude home directory (default: ~/.claude) |

Crash reports use PostHog analytics.

Auto-update

On startup — and every 5 minutes in the background — the daemon checks npm for a newer version. If one is found, a notice is printed (or logged to the TUI panel):

  ⬆  Update available: v0.0.8 → v0.0.9
     Run: npx @bulletproof-sh/ctrl-daemon@latest

The check is non-blocking and fails silently if the registry is unreachable.

Note: If you're running via npx, you already get the latest version on every invocation — no manual update needed.

Development

bun install
bun run dev        # watch mode
bun run build      # compile to dist/
bun run verify     # tsc + biome + tests
bun run test       # tests only

License

BUSL-1.1