Skip to content
PluginStats

@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

View on npm Fresh · Dec 6, 2026

@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.

Weekly downloads
5,200
Official API · Dec 5, 2026
7-day growth
+45.4%
+1.6K weekly downloads
30-day growth
+52.6%
+1.8K weekly downloads
90-day growth
+33.9%
+1.3K weekly downloads
Rank
#1510
▲ 92 in 7 days

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

@threadbase-sh/streamer weekly downloads on npm, last 90 days: 5,200 weekly downloads as of Dec 5, 2026, +33.9% over 90 days.@threadbase-sh/streamerWeekly downloads on npm · Last 90 days5,200downloads / week+33.9% over 90 days01K2K3K4K5K6K7KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@threadbase-sh/streamer weekly downloads on npm, last 90 days: 5,200 weekly downloads as of Dec 5, 2026, +33.9% over 90 days.

7/30/90-day growth

@threadbase-sh/streamer weekly downloads growth on npm: +45.4% over 7 days, +52.6% over 30 days, +33.9% over 90 days.@threadbase-sh/streamerWeekly downloads growth on npm5,200downloads / week now7-day growth+1,624 weekly downloads+45.4%30-day growth+1,792 weekly downloads+52.6%90-day growth+1,317 weekly downloads+33.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@threadbase-sh/streamer weekly downloads growth on npm: +45.4% over 7 days, +52.6% over 30 days, +33.9% over 90 days.

Ranking history

@threadbase-sh/streamer npm ranking history: currently #1510 (by weekly downloads).@threadbase-sh/streamernpm ranking · by weekly downloads · Last 90 days#1510current rank#400#600#800#1000#1200#1400#1600#1800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 35 observations · Updated Dec 5, 2026pluginstats.com
@threadbase-sh/streamer npm ranking history: currently #1510 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 76, #10 (overall #1,510)
All npm: every listing in weekly downloads order

Listing placement

Claude Code614 listings · 31 pages · page 8, #12 (overall #152)
Claude Code: every listing in weekly downloads order

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)
Recent weekly downloads observations for @threadbase-sh/streamer
Date (UTC)Weekly downloadsChange vs. previous
5,200-111
5,311+39
5,272-125
5,397+745
4,652-153
4,805+416
4,389+813
3,576-877
4,453+716
3,737+211
3,526-837
4,363+35
4,328+73
4,255—

Similar npm Claude Code plugins

All 20 @threadbase-sh/streamer alternatives

Data 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.