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

@halfwhey/claudraband

v0.7.2

Published

Control the official Claude Code CLI programmatically. Use as a library, a direct CLI, an ACP server, or a persistent session daemon.

Readme

Claudraband

Claude Code for the power user

Experimental: this project is still evolving as Claude Code and ACP clients change.

CLILibraryDaemon APIDockerExamples

claudraband wraps the official Claude Code TUI in a controlled terminal so you can keep sessions alive, resume them later, answer pending prompts, expose them through a daemon, or drive them through ACP.

It provides:

  • Resumable non-interactive workflows. Essentially claude -p with session support: cband prompt --session <session-id> 'what was the result of the research?'
  • An HTTP daemon for remote or headless session control
  • An ACP server for editor and alternate frontend integration
  • A TypeScript library for building these workflows into your own tools

Caveats

  • This is not a replacement for the Claude SDK. It is geared toward personal, ad-hoc usage.
  • We do not touch OAuth and we do not bypass the Claude Code TUI. You must authenticate through Claude Code, and every interaction runs through a real Claude Code session.

Setup

Requirements:

  • Node.js or Bun
  • An already authenticated Claude Code
  • tmux for the first-class local and daemon-backed workflow

Install or run:

# one-off
npx @halfwhey/claudraband "review the staged diff"
bunx @halfwhey/claudraband "review the staged diff"

# install once
npm install -g @halfwhey/claudraband

The package installs both claudraband and cband. cband is the recommended shorthand. The package bundles Claude Code @anthropic-ai/[email protected]; set CLAUDRABAND_CLAUDE_PATH if you need to override the binary.

Quick Start

The two first-class paths are local tmux sessions and daemon-backed sessions.

Local persistent sessions

cband "audit the last commit and tell me what looks risky"
cband sessions
cband prompt --session <session-id> "keep going"
cband prompt --session <session-id> --select 2
cband watch --session <session-id>
cband interrupt --session <session-id>

Daemon-backed sessions

cband serve --host 127.0.0.1 --port 7842
cband --connect localhost:7842 "start a migration plan"
cband attach <session-id>
cband prompt --session <session-id> --select 2

The daemon defaults to using tmux as the terminal runtime, just like the local path. Use --connect only when creating a new daemon-backed session; after that, prompt, send, watch, interrupt, attach, and sessions route through the recorded live owner automatically.

Experimental xterm.js Backend

--backend xterm exists for local or daemon use, but it is experimental and slower than tmux. Use it when you need a headless fallback, not as the default path for long-lived interactive work. See docs/cli.md for current caveats and backend behavior.

ACP

Use ACP when another tool wants to drive Claude through claudraband.

cband acp --model opus

# example: toad
uvx --from batrachian-toad toad acp 'cband acp -c "--model haiku"'

Editor and ACP client support varies by frontend, but claudraband itself supports session follow and resume through ACP.

Session Model

Live sessions are tracked in ~/.claudraband/.

  • cband sessions lists live tracked sessions
  • prompt --session <id> and send --session <id> auto-resume a saved session, even when it is no longer live
  • watch, interrupt, status, last target a session by id
  • attach only works on live sessions
  • sessions close ... closes live tracked sessions, either local or daemon-backed

Examples

Self-interrogation

Claude can interrogate an older Claude session and justify the choices it made.

Claude interrogating an older Claude session through claudraband

Toad via ACP

Toad can use claudraband acp as an alternative frontend for Claude Code.

Toad using claudraband ACP as an alternative frontend

That UI is still backed by a real Claude Code pane underneath.

Backing Claude Code pane for the Toad ACP session

Zed via ACP

Zed can also use claudraband acp as an alternative frontend.

Zed using claudraband ACP as an alternative frontend

Library

Runnable TypeScript examples live in examples/:

For the full API, see docs/library.md. For CLI details, see docs/cli.md. For raw daemon endpoints, see docs/daemon-api.md.

Cheat Sheet

# install or run once
npx @halfwhey/claudraband "review the staged diff"
bunx @halfwhey/claudraband "review the staged diff"
npm install -g @halfwhey/claudraband

# local persistent sessions
cband "audit the last commit"
cband sessions
cband sessions close --all # close all claudraband controlled sessions
cband prompt --session <session-id> "keep going"
cband send --session <session-id> "fire and forget"
cband watch --session <session-id>
cband interrupt --session <session-id>
cband status --session <session-id>
cband last --session <session-id>

# answer pending prompts
cband prompt --session <session-id> --select 2
cband prompt --session <session-id> --select 3 "xyz"

# daemon mode
cband serve --host 127.0.0.1 --port 7842
cband --connect localhost:7842 "start a migration plan"
cband attach <session-id>

# ACP
cband acp --model opus