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

contextador

v1.0.0

Published

Codebase context system for AI agents — self-healing documentation, intelligent routing, multi-agent sharing

Downloads

23

Readme

Contextador

Your AI agents are wasting money reading your code. — View AI

Hitting your usage limit? You're not using too many tokens on building things. You're burning them on context — agents reading dozens of files just to understand your codebase before they write a single line. That exploration eats 50-100K tokens per task. It's why you hit rate limits, why your Pro plan runs out mid-afternoon, and why running multiple agents gets expensive fast.

Contextador fixes this.

Every time you ask an AI agent to build something, it burns 50,000–100,000 tokens just figuring out where things are. It reads 30 files. Backtracks. Reads 20 more. Grepping, guessing, exploring — before it writes a single line of code.

Multiply that by every task, every agent, every developer on your team.

Contextador maps your entire codebase into structured context that agents can query instantly. Instead of reading 30 files (~50K tokens), the agent asks one question and gets back exactly the 2-3 files it needs (~500 tokens).

93% fewer tokens. Same results. Fewer rate limits.

Contextador maps your entire codebase into structured context that agents can query instantly. Instead of reading 30 files (~50K tokens), the agent asks one question and gets back exactly the 2-3 files it needs (~500 tokens).

93% fewer tokens. Same results. Every query.

And it gets smarter every time you use it. When an agent discovers something, that knowledge feeds back into the system. When context is wrong, agents report it and Contextador fixes itself. When multiple agents work on the same codebase, they share discoveries through Mainframe — so no agent ever rediscovers what another already learned.

Without Contextador:    Agent reads 30 files     →  ~50,000 tokens  →  slow, expensive
With Contextador:       Agent asks one question   →  ~500 tokens     →  instant, cheap
With Mainframe:         Agent finds cached answer →  ~0 tokens       →  free

Why It Matters

  • Save money — 93% token reduction on every context-gathering query
  • Ship faster — agents spend time building, not exploring
  • Scale agents — Mainframe prevents duplicate work across machines and developers
  • Self-healing — documentation stays accurate without manual maintenance
  • Self-improving — the system learns from every query and every failure
  • Works everywhere — Claude Code, Cursor, OpenClaw, Hermes, or any MCP-compatible tool
  • Any AI provider — Anthropic, OpenAI, Google, GitHub Copilot, OpenRouter, Ollama, or local models
  • Your infrastructure — runs locally, your data stays on your machines

Quick Start

# Install
bun install -g contextador

# One-time setup (AI provider + optional Mainframe)
contextador setup

# Initialize on your project
cd your-project
contextador init

# Use with Claude Code (auto-detected via .mcp.json)
claude
> How does the auth system work?
# Agent uses contextador automatically

How It Works

  1. contextador init scans your codebase and generates CONTEXT.md files describing each module
  2. When an agent needs context, it calls the context tool instead of reading files blindly
  3. Contextador routes the query to the right part of the codebase and returns structured pointers
  4. The agent reads only the files it needs — typically 2-3 files instead of 20-30
  5. If context was wrong, the agent reports feedback and the system self-corrects

Mainframe (Multi-Agent Sharing)

When multiple agents work on the same codebase, they waste tokens rediscovering what others already learned. Mainframe solves this:

  • Agent A discovers how auth works → broadcasts to shared room
  • Agent B needs the same info → finds it in room cache (free)
  • No duplicate work, no wasted tokens
# Enable during setup
contextador setup
> Enable Mainframe? yes
> Starting Operator...
> ✓ Agents can now share context

Requires Docker for auto-setup, or bring your own Matrix server.

Commands

contextador setup           — one-time setup (AI provider, Mainframe)
contextador init            — initialize on a project
contextador init -local     — initialize with local model server
contextador sweep           — refresh stale docs, detect changes
contextador status          — freshness report
contextador query <text>    — route a context query
contextador configure       — change settings
contextador demolish        — remove all contextador artifacts

MCP Tools (for AI editors)

| Tool | Purpose | |------|---------| | context | Query codebase context | | context_feedback | Report inaccurate context | | context_status | Freshness + Mainframe status | | context_sweep | Run the Janitor | | context_init | Scaffold a project | | context_generate | Generate CONTEXT.md for a scope | | mainframe_pause | Pause sharing | | mainframe_resume | Resume sharing | | mainframe_tasks | Check pending task requests | | mainframe_request | Post task for another agent |

License

AGPL-3.0 — see LICENSE

Commercial licensing available — see LICENSE-COMMERCIAL.md


Built by View AI