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

ctxcraft

v1.0.2

Published

Generate structured project context for LLMs — scan files, dependencies, and architecture with one command

Readme

ctxcraft

Generate structured project context for AI coding assistants in seconds.

ctxcraft is a lightweight Node.js CLI that scans your project, understands its structure, analyzes dependencies, and generates AI-ready project context. Instead of manually explaining your codebase to an LLM, simply run a command and provide the generated context.

It is designed for developers using ChatGPT, Claude, Gemini, Grok, and other coding assistants.


✨ Features

  • 📁 Generate complete project context
  • 🌳 Project directory tree generation
  • 📄 Includes source code of relevant files
  • 🔍 Dependency analysis
  • 🔗 Import relationship mapping
  • 🌐 API route detection
  • ⚡ Live Architecture Dashboard
  • 📡 Real-time Frontend & Backend API Tracker
  • 📝 Generate context only for changed Git files
  • 🐞 Debug a file with its direct dependencies
  • 🔄 Workflow dependency analysis
  • 📋 Copy generated context directly to clipboard
  • 💾 Save context as Markdown
  • 🚫 Respects .gitignore automatically
  • ⚙️ Configured for modern JavaScript/TypeScript projects

📦 Installation

npm install -g ctxcraft

🚀 Quick Start

Generate complete project context:

ctx

Copy context directly to clipboard:

ctx --copy

Save context to a Markdown file:

ctx --output

🛠 Commands

| Command | Description | |---------|-------------| | ctx | Generate complete project context | | ctx --copy | Copy context to clipboard | | ctx --output | Save context as Markdown | | ctx --changed | Generate context for changed Git files | | ctx --debug <file> | Generate debug context for a specific file | | ctx --workflow <file> | Generate complete workflow dependency context | | ctx --architecture | Launch interactive architecture dashboard |


🏗 Architecture Dashboard

The Architecture Dashboard provides an interactive visualization of your project.

Features include:

  • Dependency graph
  • Import relationships
  • API route mapping
  • Live frontend requests
  • Live backend requests
  • Request timeline
  • File explorer
  • Open files directly in VS Code

📁 Example

ctx --architecture

Then open:

http://localhost:4577

💡 Use Cases

  • Explain large codebases to AI
  • Debug complex projects
  • Share project context with teammates
  • Analyze architecture
  • Track frontend and backend requests
  • Generate AI prompts automatically
  • Understand project workflows

📋 Requirements

  • Node.js 18+
  • Git (for --changed)
  • VS Code (optional, for opening files)

🤝 Contributing

Contributions, feature requests, and bug reports are welcome.


📄 License

MIT License


👨‍💻 Author

Darshan Ningappa Nandagavi

GitHub: https://github.com/Darshannandagavi


If you find this project useful, consider giving it a ⭐ on GitHub.