Skip to content
PluginStats

@v1nvn/tokens weekly downloads statistics

By v1nvn (5 listings) · npm · Claude Code

Per-model token usage and cache hit rate from local transcripts — the tokens-report CLI behind the tokens plugin.

View on npm Fresh · Oct 26, 2026 · data Oct 22, 2026

@v1nvn/tokens has 952 recorded weekly downloads on npm.

Weekly downloads
952
Official API · Oct 22, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
—
Among tracked npm listings

About @v1nvn/tokens

@v1nvn/tokens

The home of the tokens plugin — and its plugin root: the tokens-report CLI and the mod's island share src/, the hooks module sits at hooks/register.tsx (.ts/.tsx the engine loads directly, no build), with engine tests at tests/ and the state contract at types/. One scan of the local session transcripts feeds both — per-model token usage and cache hit rate for the last 24 hours, plus daily totals for the last 7 days — and neither spends model tokens to tell you what the model cost.

User-facing docs: root README.

Quickstart

In Claude Code, the plugin is the way in — a mod draws two surfaces the model never reads: /tokens-usage opens the full report as a pane (refreshed on open and every 5 minutes while it shows; nothing draws and nothing execs until then), and /tokens-top draws the live session as a pane — context window and its eaters, token and thinking flow off the streaming chunks, rate-limit windows with resets, the agent roster and what runs now, all fed by engine pushes, no exec, no polling.

claude plugin marketplace add v1nvn/agentic
claude plugin install tokens@agentic

In a terminal, bare:

npx -y @v1nvn/tokens@0.55.1 usage

Usage

InvocationDoes
/tokens-usagethe full report, as a pane
/tokens-topthis session live — context + eaters, flow, limits, agents, as a pane
npx -y @v1nvn/tokens@0.55.1 usageper-model table: input/output/cache-write/cache-read tokens, cache hit rate, 24 h window + 7-day daily totals

Works for every profile writing to ~/.claude/projects — default claude, claudez, headless claude -p runs alike. Files older than the 7-day window are skipped by mtime, keeping the scan under a second even with a large transcript history.

Semantics: input_tokens is the uncached input only; the modeled context is input + cacheRead + cacheWrite. Hit rate = cacheRead / (input + cacheRead + cacheWrite). One API response counts once: the transcript writes a response per content block and again when a session resumes, all under one message id — the largest-output snapshot is the response. Dispatched agents' transcripts (<session>/subagents/) count toward their own model's row. On the GLM Coding Plan, cached tokens count fully against quota, so a high hit rate saves latency, not quota.

Develop

yarn workspace @v1nvn/tokens test       # the CLI side (vitest)
claude plugin validate packages/tokens  # the mod, as the engine reads it
claude plugin test packages/tokens      # the mod, through the engine
yarn lint && yarn typecheck             # from the repo root (typecheck
                                        #   covers tsconfig.mods.json too)

The mod API is early access and moves between Claude Code releases — a build that refuses the module loads nothing, so validate after every engine update and re-vendor types/claude-code.d.ts (repo root) from the engine-laid .claude-plugin/types/ when it changes. Read references/mods.md first.

Modules

FileRole
src/index.tsbin entry (tokens-report) — dispatch, exit codes
src/cli.tsthe CLI surface — usage + --json parsing, pure
src/aggregate.tsthe one usage math: JSONL line → per-model/per-day accumulation
src/scan.tsthe CLI's transcript walk (node-fs)
hooks/register.tsxthe mod: execs the CLI into the /tokens-usage pane; draws the /tokens-top pane from engine pushes
src/format.tsthe report both doors render
src/text.tsline model + fixed-width primitives — tokens' internal home
src/top.tsthe /tokens-top pane layout — ink-tagged segments from engine pushes
src/index.tsthe CLI source the mod execs — node runs it directly, nothing built

Contracts

  • Reads transcripts only; writes nothing.
  • The island never reads transcripts ($.fs.read caps at 4 MiB); every number is one node <plugin root>/src/index.ts usage --json exec through the session's Bash tool — the same scan npx tokens-report runs. First /tokens-usage may ask to allow that command once; allow and it is remembered.
  • The mod's surface (the pane) is drawn by the engine and never enters the model's context; the CLI prints the same report bare.

Description from the npm listing.

  • tokens
  • usage
  • cost
  • context
  • transcripts
  • claude-code

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

@v1nvn/tokens weekly downloads on npm, last 90 days: 952 weekly downloads as of Oct 22, 2026.@v1nvn/tokensWeekly downloads on npm · Last 90 days952downloads / week8509009501K1.1KJul 24Aug 8Aug 23Sep 7Sep 22Oct 7Oct 22downloads / weekOct 22, 2026 – Oct 22, 2026 · 1 observations · Updated Oct 22, 2026pluginstats.com
@v1nvn/tokens weekly downloads on npm, last 90 days: 952 weekly downloads as of Oct 22, 2026.

7/30/90-day growth

@v1nvn/tokens weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.@v1nvn/tokensWeekly downloads growth on npm952downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 22, 2026pluginstats.com
@v1nvn/tokens weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@v1nvn/tokens has no ranking history on npm yet.@v1nvn/tokensnpm ranking · by weekly downloads · Last 90 daysNo ranking observations in this periodno observations · 0 observations · Updated Oct 22, 2026pluginstats.com
@v1nvn/tokens has no ranking history on npm yet.

Listing placement

All npm2,577 listings · 129 pages · 1,290 shown · page 82, #12 (overall #1,632)
All npm: every listing in weekly downloads order

Listing placement

Claude Code351 listings · 18 pages · page 13, #19 (overall #259)
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 (1)
Recent weekly downloads observations for @v1nvn/tokens
Date (UTC)Weekly downloadsChange vs. previous
952—

Similar npm Claude Code plugins

All 20 @v1nvn/tokens 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/@v1nvn/tokens. First seen Oct 26, 2026; last successful collection Oct 26, 2026. See the methodology.