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

contextd

v0.1.0

Published

The context layer for AI-assisted development

Readme

contextd

The context layer for AI-assisted development.

Stop copy-pasting context into every AI conversation. Define your project's knowledge once, share it with your whole team via git, and pipe it into any AI tool automatically.

npx contextd init
npx contextd export       # → CLAUDE.md
npx contextd export --format cursorrules  # → .cursorrules
npx contextd serve        # → MCP server for Claude/Cursor

The Problem

Every developer using AI tools is solving the same problem differently:

  • How do I give the AI the right context without blowing the context window?
  • How do I make it remember the decisions we made last month?
  • Why does it keep suggesting patterns we explicitly decided against?
  • How do I share our AI setup with my whole team?

Right now people are hacking together giant CLAUDE.md files that become unmaintainable, copy-pasting context manually, or just hoping the AI figures it out.

contextd is the missing layer between your codebase and any AI tool.


How It Works

your-repo/
  .context/
    project.md        ← what this is, tech stack, goals
    architecture.md   ← how the system is designed
    conventions.md    ← coding standards, patterns
    decisions/        ← why you made key choices (ADRs)
      001-use-postgres.md
      002-no-redux.md
    modules/          ← per-folder context
      api.md
      ui.md

This directory is checked into git. Everyone on your team gets the same AI behavior. New devs onboard instantly.


Installation

# Use directly via npx
npx contextd init

# Or install globally
npm install -g contextd
contextd init

Commands

contextd init

Scaffold the .context/ directory with templates.

contextd init           # full setup
contextd init --minimal # project.md only

contextd export

Export your context to your AI tool of choice.

contextd export                          # → CLAUDE.md (default)
contextd export --format cursorrules     # → .cursorrules
contextd export --format raw             # → stdout

# Export only context relevant to specific files
contextd export --files src/api/users.ts,src/api/auth.ts

contextd check

Health check your context files — find gaps, stale files, and empty templates.

contextd check
  ✓ project.md exists
  ✓ 3 architecture decisions recorded
  ⚠  conventions.md appears to be empty/unfilled
  ⚠  src/payments/ has no module context

contextd decision

Manage architecture decision records (ADRs).

contextd decision add "Why we use tRPC instead of REST"
contextd decision list

contextd serve

Run contextd as an MCP server — AI tools query your context dynamically instead of getting it all dumped upfront.

contextd serve

Add to your .mcp.json:

{
  "mcpServers": {
    "contextd": {
      "command": "npx",
      "args": ["contextd", "serve"]
    }
  }
}

Available MCP tools:

  • get_project_overview — high-level project + architecture
  • get_conventions — coding standards
  • get_relevant_context({ files }) — smart context for specific files
  • list_decisions — all ADRs
  • get_module_context({ module }) — context for a specific area

Module Context

Add per-directory context by creating files in .context/modules/:

---
title: API Module
scope: src/api
updated: 2025-01-01
---

# API Module

This module handles all HTTP endpoints using Hono.
We use Zod for input validation on every route.
Auth is handled via middleware — never inline in routes.

contextd will automatically include this when you're working on files in src/api/.


Why Not Just Edit CLAUDE.md Directly?

You can — but contextd gives you:

| | Manual CLAUDE.md | contextd | |---|---|---| | Team sharing | Copy-paste | Git-native | | Stays organized | Gets huge fast | Modular files | | Tool switching | Rewrite everything | export --format | | Staleness detection | Never | contextd check | | Relevant-only context | All or nothing | --files flag | | Decision tracking | Separate doc | Built-in ADRs | | MCP integration | Manual | contextd serve |


Roadmap

  • [ ] Embeddings-based smart context selection
  • [ ] VS Code extension
  • [ ] GitHub Action for context drift detection
  • [ ] Context analytics (what's actually being read?)
  • [ ] Team sync via remote store

Contributing

PRs welcome. This is early-stage — the most valuable contributions right now are:

  • Bug reports and edge cases
  • New export format support
  • Ideas for the smart context selection algorithm

License

MIT