@threadbase-sh/streamer weekly downloads statistics
By threadbase-sh · npm · Claude Code
PTY session management, WebSocket streaming, and REST API server for Claude Code conversations
@threadbase-sh/streamer has 5,200 recorded weekly downloads on npm, an increase of 52.6% over the past 30 days, ranking #1510 of 3,247 tracked listings.
About @threadbase-sh/streamer
@threadbase-sh/streamer
Runs and manages Claude Code sessions on a server: spawns them in a PTY, streams terminal output over WebSocket, and exposes a REST API for conversation history, search, and session control.
Quick Start
npm (recommended)
npm install -g @threadbase-sh/streamer
tb-streamer set-key <YOUR_API_KEY> # one-time setup
tb-streamer serve
Only node-pty compiles on install; everything else ships prebuilt.
Homebrew (macOS + Linux)
brew tap RonenMars/threadbase
brew install tb-streamer
tb-streamer set-key <YOUR_API_KEY> # one-time setup
brew services start tb-streamer # also starts on login
Stop/restart with brew services stop|restart tb-streamer. Mutually exclusive with the manual scripts/deploy.sh install — if switching from that, run launchctl bootout gui/$UID/com.threadbase.streamer first.
Build locally
npm install
npm run build
node dist/cli.cjs serve --verbose --local-no-auth
That is the interactive path: same ~/.threadbase/ as a supervised install (server.yaml, cache, runtime.db), but it will prompt if port 8766 is already taken. --prod skips those prompts and the prod-takeover flow; it is not a separate environment. To run the checkout as launchd would:
tb-streamer service stop
node dist/cli.cjs serve --port 8766 --verbose --prod
Restore the supervised instance with tb-streamer service start. Detail: docs/guides/prod-dev-lifecycle.md.
Server address
By default, the server listens on port 8766 on all interfaces (WebSocket path: /ws).
Automatic updates
npm and Homebrew installs can auto-update: docs/guides/auto-update.md.
Remote Access
A paired phone can reach the server from outside your LAN through the hosted Threadbase relay (relay.threadbase.sh), once you opt in. The server keeps an outbound tunnel open to it, and the app uses it when your own addresses do not answer. Traffic through the relay is end-to-end encrypted between the phone and this server: the relay sees connection metadata (your IP address, request paths, sizes and timing) and cannot read content. Pairing itself still needs the phone to reach the server directly.
The relay is off until you say yes. tb-streamer serve asks on first run, or run tb-streamer relay enable; tb-streamer relay disable turns it off again, and either takes effect on the next restart. If something else switches it on (THREADBASE_FEATURE_RELAY=1, --feature relay=true, or feature_flags: {"relay":true} in ~/.threadbase/server.yaml), the next interactive start shows a warning and asks whether to continue with or without it; "without" turns it off in server.yaml. A supervised start has no terminal to ask on, so it stays off and logs how to confirm. To use a relay of your own, set relay_url and relay_public_key in server.yaml.
The server listens on port 8766 on all interfaces by default, so devices on the same LAN can already reach it. To restrict it to this machine, start it with tb-streamer serve --host 127.0.0.1. To let the mobile app reach it from outside your LAN, expose it via a tunnel — the fastest is a Cloudflare quick-tunnel (no account needed):
Before you do this, read Security. A tunnel makes the server reachable from the public internet, and the API key is the only thing between a stranger and a shell on this machine.
bash scripts/remote-access/cloudflare.sh # macOS/Linux/WSL/Git Bash
pwsh scripts/remote-access/cloudflare.ps1 # anywhere pwsh is installed
Other providers and full setup: docs/guides/remote-access.
Development
npm test # run tests
npm run lint # type-check + lint
npm run format # auto-format
npm run build # build ESM/CJS + copy migrations
npm run dev # tsup watch only — does not start the server
npm run dev:verbose # build + serve without --prod; tee to ~/.threadbase/logs/dev.log
npm run migrate # apply SQLite migrations
npm run db:validate # check for missing/duplicate/orphaned project_id data
Security — read this before exposing the server
The API key is equivalent to a shell on this machine. The streamer exists to start Claude Code sessions and type into them, so anyone holding the key can run commands as your user, in any project the server can reach. Treat it like an SSH private key, not like a web session token.
The key lives at ~/.threadbase/server.yaml as plaintext (chmod 0600), which is the same posture as ~/.aws/credentials or ~/.npmrc. Rotate it with POST /api/auth/rotate if it leaks; re-pair your devices afterwards.
The server listens on all network interfaces by default, not just loopback. So every device on your LAN can already reach port 8766, and the API key is the only thing stopping them. On a home network that is usually fine; on café Wi-Fi, a co-working space, or a corporate VLAN it is not. To bind only to loopback, run:
tb-streamer serve --host 127.0.0.1
A tunnel extends that to the entire internet. From that moment the key is the only thing between a stranger and your filesystem.
For stricter network policies, also use your firewall or a network namespace.
There is no spend limit
Nothing in this server caps what a session costs. There is no per-session, per-day, or total ceiling, and no way to configure one — a runaway agent bills your provider account until you stop it. (--max-budget-usd is not a workaround: it only applies to claude --print, which this server never uses, so it was silently inert and has been removed.)
The practical bound is that a session waits for input between turns. Auto-resume and bypass modes both weaken that bound — see below.…
Description from the npm listing.
- claude
- claude-code
- pty
- websocket
- terminal
- streamer
- threadbase
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm Claude Code plugins
All 20 @threadbase-sh/streamer alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@threadbase-sh/streamer. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.