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

kontxt-cli

v0.1.1

Published

CLI for packaging codebases into AI-ready context files.

Readme

kontxt-cli

kontxt packages a codebase into AI-ready markdown context files.

The supported path is the extended pipeline. The old -o legacy flow still exists, but it is deprecated.

npm package:

Install

npm

npm install -g kontxt-cli

This installs the kontxt command globally.

pnpm

pnpm add -g kontxt-cli

This installs the kontxt command globally.

Verify

kontxt --help

Run Without Global Install

With npm:

npx kontxt-cli --help

With pnpm:

pnpm dlx kontxt-cli --help

This runs the published package directly without a global install.

Requirements

  • Node.js 18 or newer

Usage

Run kontxt inside the repository you want to package.

Extended Summary

kontxt -e

This runs the extended pipeline and writes a single summary file under:

.kontxt/<DD-M-YYYY>-summary.md

You can also provide a custom file name:

kontxt -e -o custom.md

That writes:

.kontxt/custom.md

Extended Split Mode

kontxt -e --32k
kontxt -e --64k
kontxt -e --128k

This writes split summaries under:

  • .kontxt/32k-token/
  • .kontxt/64k-token/
  • .kontxt/128k-token/

Generated files are deterministic:

  • part-001.md
  • part-002.md
  • part-003.md

Split-mode rules:

  • must be used with -e
  • use only one split flag at a time
  • each part stays within the selected token budget based on the final rendered markdown
  • each part includes the full repository tree
  • each run removes old markdown part files in that split directory before writing the new set
  • -o cannot be combined with split mode

Tree Only

kontxt -t

This prints the repository tree in the terminal and does not write summary files.

Deprecated Legacy Mode

kontxt -o
kontxt -o custom.md

This still works, but it is deprecated and should not be the path you rely on.

Typical Workflow

  1. Open the target repository in your terminal.
  2. Run kontxt -e for one full summary, or kontxt -e --32k / --64k / --128k for split output.
  3. Open the generated files in .kontxt/.
  4. Feed the output to your LLM or downstream tooling.

Ignore Rules

kontxt respects .gitignore and .kontxtignore.

If .kontxtignore does not exist, kontxt creates it automatically.

Example .kontxtignore:

dist
coverage
.env
*.log

CLI Reference

# help
kontxt --help

# extended single summary
kontxt -e
kontxt -e -o custom.md

# extended split summary
kontxt -e --32k
kontxt -e --64k
kontxt -e --128k

# tree only
kontxt -t

# deprecated legacy mode
kontxt -o
kontxt -o custom.md

Development

With npm:

npm install
npm run build
npm test

With pnpm:

pnpm install
pnpm run build
pnpm test

Additional scripts:

npm run test:all
npm run test:legacy:deprecated