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

@craftpipe/contextpack

v1.0.0

Published

A CLI tool that analyzes your codebase and generates token-optimized context bundles for AI coding sessions.

Readme

ContextPack

A CLI tool that analyzes your codebase and generates token-optimized context bundles for AI coding sessions.

What It Does

ContextPack scans your project, extracts symbols, dependencies, and file summaries, then bundles everything into a single structured context file. Feed it to your AI assistant once instead of re-explaining your codebase every session.

Key Features:

  • Automatic codebase analysis and summarization
  • Token-optimized output formats
  • Smart filtering by file type or directory
  • Multi-step pipeline: scan → summarize → bundle → validate
  • Support for multiple output formats (JSON, Markdown, XML)

Installation

npm install -g contextpack

Or use directly:

npx contextpack

Quick Start

Basic Usage

contextpack scan ./src

Generates a context bundle from your src directory.

With Options

contextpack scan ./src --output context.json --format json

Filter by File Type

contextpack scan ./src --include "*.js,*.ts" --exclude "*.test.js"

Full Pipeline

contextpack analyze ./src --summarize --validate --output bundle.md

Common Commands

| Command | Description | |---------|-------------| | contextpack scan <path> | Analyze directory structure | | contextpack summarize <path> | Generate file summaries | | contextpack bundle <path> | Create context bundle | | contextpack validate <file> | Validate bundle integrity |

Output Formats

  • JSON — Structured data for programmatic use
  • Markdown — Human-readable format
  • XML — Integration with other tools

FAQ

Q: How much does it reduce token usage?
A: Typically 40-60% reduction through smart summarization and deduplication.

Q: Can I exclude node_modules and build files?
A: Yes, use --exclude "node_modules,dist,build" or create a .contextpackignore file.

Q: What file types are supported?
A: All text-based files. Binary files are skipped automatically.

Q: Can I use this in CI/CD?
A: Yes, it's designed for automation. Use --json for machine-readable output.

Q: How do I customize what gets included?
A: Use .contextpackignore in your project root (similar to .gitignore).


Built with AI by Craftpipe
Support: [email protected]

Pro Features

Upgrade to Pro for:

  • html report
  • watch mode
  • config file

Get it at: https://craftpipe.gumroad.com

Set PRO_LICENSE=<your-key> to unlock.