@swttch/extend-kit weekly downloads statistics
By swttch · npm · Claude Code
Companion tools for Swttch that live outside the plugin bundle: Claude Code account/usage SDK, the ccb CLI, speech-to-text and text-to-speech.
@swttch/extend-kit has 1,158 recorded weekly downloads on npm, a decrease of 45.8% over the past 30 days, ranking #2038 of 3,247 tracked listings.
About @swttch/extend-kit
@swttch/extend-kit
The companion tools Swttch needs but cannot ship inside the plugin bundle, so they install on your machine instead. Each one is usable on its own — from a terminal or as a library — and the plugin is simply one caller among others.
| Tool | Why it lives outside the bundle |
|---|---|
| battery | Reads the Claude Code login stored on your machine (keychain, or a credentials file) |
| stt | Dictation sends your OAuth token, and a JetBrains plugin may not handle credentials |
| swttch-ext | Acts on your account with the saved login (artifacts: list, rename, pin, delete; tts: read text aloud) |
ccbis the old name. This package started asccb, a CLI for your Claude Code usage and account, and grew into every tool that needs your login.swttch-extis the command for all of it, and it can do everythingccbdid:
Old New ccb oauth usageswttch-ext api oauth usageccb oauth profileswttch-ext api oauth profileccb oauth usage --account-file=<path>swttch-ext api oauth usage --account-file <path>ccb stt/ccb stt --checkswttch-ext stt/swttch-ext stt --check
ccbis deprecated but keeps working and its name will not change.swttch-extprints one JSON object ({"ok":true,"data":...});ccb --jsonprints the raw response.
battery
A TypeScript SDK and CLI that wraps the internal API of Claude Code. This allows programmatic access to API usage metrics and account information for Claude Code users.
Moving from
claude-code-battery? Change the import to@swttch/extend-kitand everything else stays the same — the exports and theccbcommand are unchanged. The old package still works; it now re-exports this one.
swttch-ext
A command for calls that act on your Claude account from your own machine — the saved Claude Code login is used, and nothing is asked of you.
swttch-ext api <service> <call> [--param value ...] [--yes]
Every call prints one JSON object and exits 0 on success:
{ "ok": true, "data": { "...": "..." } }
{ "ok": false, "error": { "code": "not_found", "message": "...", "status": 404 } }
Artifacts (frame)
Manage the pages Claude published as Artifacts. An artifact is named by its slug (a UUID), which list returns.
| Call | What it does | Parameters |
|---|---|---|
frame list | Lists your artifacts: name, owner, last update, whether it is pinned, and what you may do to each | --limit (1–200, default 50) |
frame retitle | Renames an artifact. The page's <title> is rewritten, and the change is saved as a new version | --slug, --title |
frame pin | Pins an artifact | --slug |
frame unpin | Removes the pin | --slug |
frame duplicate | Makes a copy of an artifact under your account. The answer carries the copy's slug; the copy is named "<name> (Copy)" | --slug |
frame delete | Deletes an artifact for good. Its link stops working for everyone and it cannot be restored | --slug, --yes |
swttch-ext api frame list --limit 10
swttch-ext api frame retitle --slug 3627498c-4893-4ce8-bfaf-524f7b041c1d --title "Quarterly report"
swttch-ext api frame pin --slug 3627498c-4893-4ce8-bfaf-524f7b041c1d
swttch-ext api frame duplicate --slug 3627498c-4893-4ce8-bfaf-524f7b041c1d
swttch-ext api frame delete --slug 3627498c-4893-4ce8-bfaf-524f7b041c1d --yes
deletedoes nothing without--yes. It answersconfirmation_requiredinstead.- A page with no
<title>cannot be renamed (rejected): add a<title>to the page and publish it again first. - Only artifacts you own can be renamed, pinned or deleted; for anyone else's the answer is
not_found.
Reading text aloud: swttch-ext tts
Reads the text on stdin aloud with the same voice service the Claude desktop app's "Read aloud" uses, and writes the audio to stdout as raw PCM (16-bit little-endian, 16 kHz, mono). It needs a Claude account login, not an API key. The endpoint is undocumented.
echo "Hello from the terminal." | swttch-ext tts | play -t raw -r 16000 -e signed -b 16 -c 1 -
swttch-ext tts --settings prints what your account has chosen ({"ok":true,"data":{"voice","speed","language"}}, null for what is not set).
Options: --language <code> (a hint such as ko), --speed <0.7-1.5>, --voice <name>. What you do not name comes from your Claude account's own voice settings (the voice, speed and language chosen in the Claude desktop app, read from /api/oauth/account/settings; nothing is written back), so a voice picked there is the voice heard here. An account voice made for one language (such as ko-balgeun) is left out for text in another. It exits 0 when everything was read and 1 on failure, with one JSON line on stderr: {"ok":false,"error":{"code","message","fatal"}}. Killing the process stops the reading.
Finding out what this version can do
swttch-ext api --list # every call, with its parameters, as JSON
swttch-ext --capabilities # {"capabilities":["api.frame.list", ...]}
A program that calls swttch-ext can check --capabilities first, so an older install is told apart from a failed call.
Error codes…
Description from the npm listing.
- claude
- claude-code
- swttch
- sdk
- cli
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 (142)Similar npm Claude Code plugins
All 20 @swttch/extend-kit 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/@swttch/extend-kit. First seen Nov 11, 2026; last successful collection Dec 2, 2026. See the methodology.