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

llm-ctxpack

v0.2.2

Published

Pack a repo into LLM-ready context — git-diff-aware and token-budget-aware, unlike full-dump tools.

Readme

llm-ctxpack

Pack a repo into LLM-ready context — git-diff-aware and token-budget-aware, so you're not pasting your whole codebase into a chat window every time.

Most repo-to-context tools dump everything, as-is. llm-ctxpack adds three things they don't:

  • --since <ref> — only include files that changed since a git ref. Perfect for handing an agent "what changed" instead of "everything."
  • --budget <tokens> — cap total output to a token budget, keeping the most recently modified files and telling you exactly what got dropped.
  • Secret redaction, on by default — API keys, private key blocks, tokens, and SECRET=/PASSWORD=-style env values get redacted before anything is written out, so you don't accidentally paste a live credential into a chat window. Use --no-redact if you really want raw output.

Install

No install needed:

npx llm-ctxpack .

Or install globally:

npm install -g llm-ctxpack

Usage

llm-ctxpack .                              # pack whole repo
llm-ctxpack . --since main                 # only what changed vs main
llm-ctxpack . --budget 50000               # fit within a 50k token budget
llm-ctxpack . --since main --budget 20000 -o context.md

Output is Markdown: a file tree with per-file token counts, then fenced code blocks for each file, ready to paste into any LLM chat or agent context.

Respects .gitignore automatically, plus sensible defaults (node_modules, lockfiles, binaries, build output).

Options

| Flag | Description | |---|---| | --since <ref> | Only include files changed since this git ref (e.g. main, HEAD~5) | | --budget <tokens> | Cap total output tokens, keeping most recently modified files first | | --out, -o <file> | Write to a file instead of stdout | | --no-redact | Disable secret redaction (on by default) |

Token counts use the same tokenizer family as GPT/Claude-class models (gpt-tokenizer), so budgets are a close real-world estimate, not a guess.

Works with

Any tool that takes pasted-in text as context: Claude, Claude Code, ChatGPT, Cursor, GitHub Copilot Chat, or a custom agent's system prompt. --model presets cover the common ones; --budget works for anything else.

Why

Every "dump repo to text" tool assumes you want everything. In practice, agentic coding workflows usually want the diff (what changed) trimmed to what fits (the model's context window). llm-ctxpack does both without extra flags or config files.

License

MIT

Support this project

llm-ctxpack is free, MIT-licensed, and has no paid tier. If it saved you time, you can send a tip to the project wallet — no account or sign-up needed on either end.

dacode-dev.github.io — QR code + copy-paste address, one page, no tracking.

Or directly: 0xc4e8021CdFf1a11946Ed16bd264f77D6B3C0C0e9

Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche C-Chain — same address on all of them, native token or stablecoins (USDC/USDT). Pick whichever has the lowest fee for you (Base/Arbitrum/Polygon are cheapest).