npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tokenos

v2.3.0

Published

Local codebase graph intelligence for AI coding assistants (Model Context Protocol), reducing token usage by retrieving only the most relevant code and context.

Readme

TokenOS

npm version npm downloads Node.js License: MIT TypeScript SQLite MCP

Local-first codebase graph intelligence for AI assistants — powered by SQLite, ts-morph, and optional Ollama.

TokenOS is a Model Context Protocol (MCP) server that instantly gives your AI coding assistant (like Claude, Cursor, or Antigravity) deep, structured knowledge of your codebase.

Instead of the AI blindly guessing your architecture or you manually attaching files, TokenOS indexes your project into a fast, local SQLite database and provides the AI with high-precision search tools.


⚡ Quick Start

Run TokenOS on any codebase instantly. No installation or configuration required.

# In your project folder, run:
npx tokenos .

What happens next?

  1. TokenOS analyzes your code and creates a lightweight, local database inside .tokenos/.
  2. A file watcher starts, keeping the index perfectly in sync as you code.
  3. If this is your first time running TokenOS, it will prompt you to automatically connect it to your IDE.

Press Y, restart your IDE, and you're done! Your AI assistant now deeply understands your codebase.


🤖 How the AI Uses TokenOS

Once connected, your AI assistant will automatically use these tools whenever it needs context:

| Tool | What it does | | ----------------- | ----------------------------------------------------------------------------------------------------- | | search | Smart natural-language search across your codebase (powered by local FTS5, plus Ollama if available). | | find_nodes | Locates specific functions, classes, components, or files. | | get_node | Reads the full code and details of a specific element. | | get_connections | Finds what a function calls, or what calls a function (dependency graph). | | explore | Navigates the surrounding architecture from a starting point. | | top_nodes | Identifies the most structurally important files and functions in your project. |


🧠 Conversation Memory

TokenOS includes a persistent memory system for storing conversation context across sessions. Your AI can remember your architectural decisions and rules.

  • Direct Memory Writing: The AI can save rules and context directly during a conversation using the save_memory tool.
  • Smart Retrieval: Memory search utilizes a high-performance Google-style relevance engine built on SQLite FTS5.
  • Auto-indexing: Markdown files in /memory/ or /memories/ directories within your project are automatically parsed and stored.

⚙️ Manual Configuration (Optional)

If the interactive prompt didn't detect your IDE, or if you prefer to configure things manually, you can add TokenOS to your MCP configuration file.

The command is simply npx -y tokenos .. Because of the ., you do not need to hardcode the path. The IDE automatically swaps the . for whatever project folder you currently have open on your screen.

Antigravity IDE (~/.gemini/config/mcp_config.json)

{
  "mcpServers": {
    "tokenos": {
      "command": "npx",
      "args": ["-y", "tokenos", "."]
    }
  }
}

Claude Desktop Mac (~/Library/Application Support/Claude/claude_desktop_config.json)

{
  "mcpServers": {
    "tokenos": {
      "command": "npx",
      "args": ["-y", "tokenos", "."]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "tokenos": {
      "command": "npx",
      "args": ["-y", "tokenos", "."]
    }
  }
}

🚧 Roadmap: Auto-Context Engine

I am building toward an automated context system where the AI knows the state of your project before you even ask:

  • Session Capture: End-of-day structured summaries of accomplishments and next steps.
  • Distillation: A background process that condenses multiple session captures into a single "Project Profile".
  • Document Ingestion: Instant indexing and searchability for existing design docs.

License

MIT