Skip to content
PluginStats

tokensafe weekly downloads statistics

By tokensafe-dev · npm · MCP servers

Your AI agent is smart enough to code all day. Now it actually can. Local runtime firewall & zero-loss context optimizer for AI coding agents.

View on npm Stale · Dec 2, 2026

tokensafe has 13,940 recorded weekly downloads on npm, a change of +24.5% over the past 7 days, ranking #1163 of 3,247 tracked listings.

Weekly downloads
13,940
Official API · Dec 5, 2026
7-day growth
+24.5%
+2.7K weekly downloads
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#1163
Among tracked npm listings

About tokensafe

<p align="center"> <img src="https://www.tokensafe.dev/ts-logo-transp-big.png" alt="TokenSafe Logo" width="88" height="88" /> </p> <h1 align="center">TokenSafe</h1> <!-- mcp-name: dev.tokensafe/tokensafe --> <p align="center"> <b>Your AI agent is smart enough to code all day. Now it actually can.</b><br> Stop letting bloated file reads, noisy test dumps, and broken prompt caches drain your limits by lunch.<br> TokenSafe runs locally, filtering context down to what the model actually touches while keeping secrets out of git.<br> Works with <b>Cursor, Claude Code, Codex, Windsurf, Google Antigravity, Kimi Code, and ChatGPT</b>. </p> <p align="center"> <a href="https://github.com/tokensafe-dev/tokensafe/actions/workflows/test.yml"><img src="https://img.shields.io/github/actions/workflow/status/tokensafe-dev/tokensafe/test.yml?branch=main&label=tests&style=flat-square&color=10B981" alt="Tests"></a> <a href="https://www.npmjs.com/package/tokensafe"><img src="https://img.shields.io/npm/v/tokensafe.svg?color=38BDF8&style=flat-square" alt="npm"></a> <a href="https://www.npmjs.com/package/tokensafe"><img src="https://img.shields.io/npm/dw/tokensafe.svg?color=10B981&label=npm%20downloads&style=flat-square" alt="npm downloads"></a> <a href="https://pypi.org/project/tokensafe/"><img src="https://img.shields.io/pypi/v/tokensafe.svg?color=38BDF8&style=flat-square" alt="PyPI"></a> <a href="https://github.com/tokensafe-dev/tokensafe/stargazers"><img src="https://img.shields.io/github/stars/tokensafe-dev/tokensafe?style=flat-square&color=334155" alt="Stars"></a> <a href="https://github.com/tokensafe-dev/tokensafe/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-0F766E?style=flat-square" alt="License"></a> <a href="https://tokensafe.dev#pricing"><img src="https://img.shields.io/badge/Team_Trial-7_Days_Free-10B981?style=flat-square" alt="Trial"></a> </p> <p align="center"> <a href="#install--agents">Install</a> &bull; <a href="#cli-quickstart">Quickstart</a> &bull; <a href="#whats-new-in-v40">What's New in v4.0</a> &bull; <a href="#why-tokensafe">Why TokenSafe</a> &bull; <a href="#benchmarks">Benchmarks</a> &bull; <a href="#pricing-and-7-day-team-trial">Pricing</a> &bull; <a href="#faq">FAQ</a> &bull; <a href="#reference">Reference</a> &bull; <a href="https://tokensafe.dev">Website &amp; Docs</a> </p>

What's New in v4.0

TokenSafe 4.0 is a major architecture release designed for Zero Mid-Day Lockouts, 3-Second Turn Latency, Exact Code Context (Zero Loss), and Developer Flow:

  • ⚡ SQLite FTS5 BM25 Code Indexer & Search (scoped_search, tokensafe search): Native SQLite full-text search with trigram tokenization and BM25 relevance ranking (<1ms) across the repository. Replaces raw terminal grep entirely with zero-token-waste search.
  • 🔗 SQLite Graph Cache & Cross-Boundary Route Linking: Persistent SQLite caching (.tokensafe/cache/graph.db) with bidirectional semantic linking between frontend client endpoints (fetch, axios, apiClient) and backend HTTP routes (FastAPI, Express, Flask, Next.js).
  • 🖼️ Vision Image Downscaler (optimize_image, tokensafe optimize-image): Automatically scales down oversized screenshots, architecture diagrams, and mockups (>1024px) via Pillow or macOS sips, saving 50–75% vision tokens while keeping original files intact.
  • 🧠 Anti-Stuck Dead-Ends Ledger (get_mistakes, tokensafe mistakes): Persistent project memory tracking failed hypotheses, loop guard trips, and git reverts to prevent agents from cycling through already-failed solutions.
  • 🧹 Transcript Superseded Output Pruning (prune_superseded, tokensafe prune-superseded): Prunes obsolete intermediate tool reads that were superseded by subsequent edits or re-reads in long agent transcripts (-30-40% context).
  • 🧼 ANSI Escape Sequence Stripper: Cleans all ANSI/VT100 escape codes from tool outputs, test runners, and proxy streams before they enter model context.
  • 👻 Ghost Tokens Auditor (tokensafe doctor): Detects and cleans redundant multi-IDE configuration files (.cursorrules, CLAUDE.md, .windsurfrules, .clinerules) and oversized rule files, saving 2,000–5,000 wasted ghost tokens on every turn.
  • 🛡️ Exact Code Context & Reversible Stash (expand_ref): 100% byte-exact target symbol preservation with reversible 8-char hash anchors (#a1b2c3d4) to instantly recover any folded block.
  • 🌲 C# Tree-sitter Support: Native AST slicing and God Nodes detection for C# (tree-sitter-c-sharp) alongside TypeScript, JavaScript, Python, Go, Rust, Java, Kotlin, and PHP.

Install & Agents

Connect TokenSafe to the AI coding agents on your workstation in one command:

# Option 1: Zero-Install via npx (recommended)
npx tokensafe

# Option 2: Python / PyPI
pip install tokensafe && tokensafe

# Option 3: Direct shell script (macOS / Linux)
curl -fsSL https://tokensafe.dev/install.sh | bash

The installer detects which agents live on your machine, registers the TokenSafe MCP server, injects project rules, and wires lifecycle hooks where the agent supports them.

Runtime requirements…

Description from the npm listing.

  • ai
  • llm
  • tokens
  • token-optimization
  • context-window
  • cursor
  • claude
  • antigravity
  • codex
  • mcp
  • mcp-server
  • ast
  • proxy
  • jwt
  • ed25519
  • zero-trust

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

tokensafe weekly downloads on npm, last 90 days: 13,940 weekly downloads as of Dec 5, 2026.tokensafeWeekly downloads on npm · Last 90 days13,940downloads / week05K10K15K20KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
tokensafe weekly downloads on npm, last 90 days: 13,940 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

tokensafe weekly downloads growth on npm: +24.5% over 7 days, 30-day growth unavailable, 90-day growth unavailable.tokensafeWeekly downloads growth on npm13,940downloads / week now7-day growth+2,747 weekly downloads+24.5%30-day growth+13,940 weekly downloadsInsufficient history90-day growth+13,940 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
tokensafe weekly downloads growth on npm: +24.5% over 7 days, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

tokensafe npm ranking history: currently #1163 (by weekly downloads).tokensafenpm ranking · by weekly downloads · Last 90 days#1163current rank#1100#1110#1120#1130#1140#1150#1160#1170Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankDec 2, 2026 – Dec 6, 2026 · 3 observations · Updated Dec 5, 2026pluginstats.com
tokensafe npm ranking history: currently #1163 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 59, #3 (overall #1,163)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 13, #12 (overall #252)
MCP servers: 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 (121)
Recent weekly downloads observations for tokensafe
Date (UTC)Weekly downloadsChange vs. previous
13,940-4K
17,960-273
18,233+1.4K
16,785+1.6K
15,185+1.7K
13,478+1.5K
11,935+742
11,193+3.3K
7,905+1.5K
6,364+230
6,134-295
6,429-1.4K
7,857-535
8,392—

Similar npm MCP servers plugins

All 20 tokensafe 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/tokensafe. First seen Dec 2, 2026; last successful collection Dec 2, 2026. See the methodology.