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

@team-attention/ctx

v0.2.21

Published

Context-driven development CLI tool

Downloads

50

Readme

ctx

Your AI's persistent memory.

Context that loads automatically, grows over time, and travels with your code.

Philosophy · Quick Start · Talk to AI · How It Works


Philosophy

Context is the bottleneck, not AI capability.

AI models are powerful, but they start every session blank. They don't know your patterns, your decisions, or your standards. You end up repeating yourself. Every. Single. Time.

ctx fixes this:

Human insight  →  Saved as context  →  Auto-loaded when needed
     ↑                                          │
     └──────────── Feedback loop ───────────────┘

Every correction, every pattern, every "no, we do it this way" — captured once, loaded forever.

AI-First Design

ctx is designed to be used through AI, not by humans directly.

You  →  Talk to AI  →  AI uses ctx CLI  →  Context managed
         (natural)      (automated)         (persistent)

You describe what you want in plain language. AI handles the rest.


Quick Start

1. Install CLI

npm install -g @team-attention/ctx

2. Initialize

# Global setup (once per machine)
ctx init

# Project setup
cd your-project
ctx init .

3. Install Claude Code Plugin (optional)

For auto-loading and AI skills, install the ctx plugin in Claude Code:

/plugin marketplace add team-attention/ctx
/plugin install ctx@team-attention/ctx

That's it. Now just talk to your AI:

"Save our API validation pattern as context"
"Load context related to authentication"
"What contexts do we have for this project?"

Talk to AI

Here's how to use ctx through natural conversation:

Save Context

When AI does something right, or you teach it a pattern:

"Save this as context so you remember next time"
"Remember: we always use Zod for validation in this project"
"Create a context for our API response patterns"

Load Context

When you need specific knowledge:

"Load context about authentication"
"What do we have documented about the API?"
"Find context related to testing patterns"

Manage Context

"Show me all contexts in this project"
"Check if our contexts are healthy"
"Sync the context registry"

Capture Knowledge

"Save what we learned in this session as context"
"Capture our discussion about error handling"

How It Works

2-Level Context System

┌─────────────────────────────────────────────────────────────┐
│                      2-Level Hierarchy                       │
├─────────────────────────────────────────────────────────────┤
│                                                              │
│  Global (~/.ctx/)                               [Personal]   │
│  └─ Your coding style, tool preferences, patterns           │
│  └─ Applies to ALL projects                                  │
│  └─ Not in Git (machine-specific)                            │
│                                                              │
│  Project (.ctx/ + *.ctx.md)                     [Team]       │
│  └─ Architecture, API patterns, business logic               │
│  └─ Shared via Git                                           │
│  └─ New teammate? Clone and go.                              │
│                                                              │
│  Priority: Project > Global                                  │
│  (More specific wins)                                        │
└─────────────────────────────────────────────────────────────┘

Auto-Load Magic

When AI reads a file, matching contexts load automatically:

AI reads: src/api.ts
    ↓
Hook triggers: ctx load --target src/api.ts
    ↓
Matching contexts injected into conversation

No commands. No manual loading. Context finds you.

Context File Format

---
target: src/api/**/*.ts
what: API routing patterns and conventions
keywords: [api, routing, validation]
---

## Validation
Always use Zod schemas. Never trust raw input.

## Response Format
Wrap all responses in `ApiResponse<T>`.

The target field enables auto-loading. The keywords field enables search.


Directory Structure

~/.ctx/                          # Global (personal, not in Git)
├── registry.yaml
└── contexts/
    └── coding-style.md

your-project/
├── .ctx/                        # Project (team-shared, in Git)
│   ├── registry.yaml
│   └── contexts/
│       ├── architecture.md
│       └── api-patterns.md
├── src/
│   ├── api.ts
│   └── api.ctx.md               # File-specific context
└── docs/
    └── api-guide.md             # Can be added as context

Git Workflow

~/.ctx/                  ❌ Not in Git (personal)
.ctx/                    ✅ In Git (team-shared)
*.ctx.md                 ✅ In Git (team-shared)

New teammate joins?

git clone <repo>
# Done. All project context is already there.

For Advanced Users

Need direct CLI access? See CLI Reference.

Common scenarios:

  • CI/CD automation
  • Bulk operations
  • Debugging context issues
  • Scripting

Stop repeating yourself. Just talk to AI.

MIT License · GitHub