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

ctxdotdev

v0.1.9

Published

Project context for AI coding tools — one command, perfect context, every AI tool

Readme

ctx — Project Context for AI Coding Tools

CI npm version npm downloads

One command. Perfect context. Every AI tool.

ctx scans your project, detects the framework (Next.js, React, Vue, Django, Express, Go, Rust — 30+), reads config files, analyzes dependencies, and copies a concise context summary to your clipboard. Paste into any AI coding tool.

Quick Start

npm install -g ctxdotdev
cd your-project
ctx

That's it. Context is copied to your clipboard. Paste it into Cursor, Claude Code, Copilot, or any LLM.

Why?

Every time you use an AI coding tool, you have to re-explain your codebase. "This is a Next.js app with TypeScript, Prisma, and Tailwind..." — 15 minutes gone.

ctx gives the AI the same context in one second. No more repeating yourself.

Examples

Next.js + TypeScript

$ ctx

Project: my-app ── Node / Next.js

  Dependencies: 312 (289 production)
  Git branch: main

  Structure:
    ├── src/
    ├── public/
    ├── prisma/
    ├── package.json
    ├── tsconfig.json
    ├── next.config.ts
    └── tailwind.config.ts

  Config files:
  → my-app/tsconfig.json (TypeScript config)
  → my-app/next.config.ts (Next.js config)
  → my-app/tailwind.config.ts (Tailwind config)
  → my-app/vitest.config.ts (Vitest config)

  Key files:
  → package.json (2.3KB) — 1h ago
  → tsconfig.json (642B) — 1d ago
  → README.md (1.1KB) — 3d ago

  ✓ Context copied to clipboard. Ready for AI.

Django (Python)

$ ctx

Project: blog ── Python / Django

  Dependencies: 0
  Git branch: main

  Structure:
    ├── blog/
    ├── manage.py
    ├── requirements.txt
    ├── pyproject.toml
    ├── Dockerfile
    └── docker-compose.yml

  Config files:
  → blog/manage.py (Django manage)
  → blog/requirements.txt (Python deps)
  → blog/pyproject.toml (Python project)
  → blog/Dockerfile (Dockerfile)
  → blog/docker-compose.yml (Docker Compose)

  ✓ Context copied to clipboard. Ready for AI.

Go API

$ ctx

Project: api ── Go / Gin

  Dependencies: 0
  Git branch: main

  Structure:
    ├── cmd/
    ├── internal/
    ├── go.mod
    ├── go.sum
    ├── Dockerfile
    └── Makefile

  Config files:
  → api/go.mod (Go module)
  → api/Makefile (Makefile)

  ✓ Context copied to clipboard. Ready for AI.

All Commands

| Command | Description | |---------|-------------| | ctx | Generate context and copy to clipboard | | ctx init | Initialize ctx in this project | | ctx watch | Watch files, auto-update context on changes | | ctx template | List, create, and use context templates | | ctx config | View project configuration | | ctx doctor | Check installation and project setup |

Watch Mode

Regenerate context automatically whenever a file changes:

ctx watch

The output updates in real-time. Great for long AI coding sessions where your project keeps changing.

Templates

Use different context profiles for different tasks:

ctx template list
ctx template use review     # Focus on changed files
ctx template use debug      # Include dependency details
ctx template use onboard    # Full project overview
ctx template create my-custom

Configuration

Create .ctx/config.json in your project root:

{
  "scan": {
    "exclude": ["node_modules", ".git", "dist"]
  },
  "output": {
    "format": "text",
    "showDependencies": true
  }
}

Supported Frameworks

Node.js: Next.js, React, Vue, Svelte, SvelteKit, Nuxt, Angular, NestJS, Express, Fastify, Hono, Gatsby, Remix, Astro, Solid, tRPC, Electron, Expo, React Native, Preact, Lit, Docusaurus, VitePress, Eleventy

Python: Django, Flask, FastAPI, Tornado, aiohttp, Starlette

Go: Gin, Echo, Fiber, Chi

Rust: Axum, Actix, Rocket, Tide, Warp, Leptos, Yew

Privacy

All processing is local. Your code never leaves your machine. No telemetry. No tracking. No cloud.

License

MIT