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

combicode

v1.7.4

Published

A CLI tool to combine a project's codebase into a single file for LLM context.

Readme

Combicode

NPM Version PyPI Version License: MIT

Combicode is a zero-dependency CLI tool that intelligently combines your project's source code into a single, LLM-friendly text file.

The generated file starts with a system prompt and a file tree overview, priming the LLM to understand your project's complete context instantly. Paste the contents of combicode.txt into ChatGPT, Claude, or any other LLM to get started.

Why use Combicode?

  • Maximum Context: Gives your LLM a complete picture of your project structure and code.
  • Intelligent Priming: Starts the output with a system prompt and a file tree, directing the LLM to analyze the entire codebase before responding.
  • Intelligent Ignoring: Automatically skips node_modules, .venv, dist, .git, binary files, and other common junk.
  • .gitignore Aware: Respects your project's existing .gitignore rules out of the box.
  • Nested Ignore Support: Correctly handles .gitignore files located in subdirectories, ensuring local exclusion rules are respected.
  • Zero-Install Usage: Run it directly with npx or pipx without polluting your environment.
  • Customizable: Easily filter by file extension or add custom ignore patterns.

Quick Start

Navigate to your project's root directory in your terminal and run one of the following commands:

For Node.js/JavaScript/TypeScript projects (via npx):

npx combicode

For Python projects (or general use, via pipx):

pipx run combicode

This will create a combicode.txt file in your project directory, complete with the context-setting header.

Usage and Options

Preview which files will be included

Use the --dry-run or -d flag to see a list of files without creating the output file.

# npx
npx combicode --dry-run

# pipx
pipx run combicode -d

Specify an output file

Use the --output or -o flag.

npx combicode -o my_project_context.md

Include only specific file types

Use the --include-ext or -i flag with a comma-separated list of extensions.

# Include only TypeScript, TSX, and CSS files
npx combicode -i .ts,.tsx,.css

# Include only Python and YAML files
pipx run combicode -i .py,.yaml

Add custom exclude patterns

Use the --exclude or -e flag with comma-separated glob patterns.

# Exclude all test files and anything in a 'docs' folder
npx combicode -e "**/*_test.py,docs/**"

Skip content for specific files

Use the --skip-content flag to include files in the tree structure but omit their content. This is useful for large files (like test files) that you want visible in the project overview but don't need their full content.

# Include .test.ts files in tree but skip their content
npx combicode --skip-content "**/*.test.ts"

# Skip content for multiple patterns
npx combicode --skip-content "**/*.test.ts,**/*.spec.ts,**/tests/**"

Files with skipped content will be marked with (content omitted) in the file tree and will show a placeholder in the content section.

Generating Context for llms.txt

The --llms.txt or -l flag is designed for projects that use an llms.txt file to specify important documentation. When this flag is used, Combicode inserts a specialized system prompt telling the LLM that the provided context is the project's definitive documentation for a specific version. This helps the LLM provide more accurate answers and avoid using deprecated functions.

# Combine all markdown files for an llms.txt context
npx combicode -l -i .md -o llms.txt

All CLI Options

| Option | Alias | Description | Default | | ---------------- | ----- | ------------------------------------------------------------------------------ | --------------- | | --output | -o | The name of the output file. | combicode.txt | | --dry-run | -d | Preview files without creating the output file. | false | | --include-ext | -i | Comma-separated list of extensions to exclusively include. | (include all) | | --exclude | -e | Comma-separated list of additional glob patterns to exclude. | (none) | | --skip-content | | Comma-separated glob patterns for files to include in tree but omit content. | (none) | | --llms-txt | -l | Use a specialized system prompt for context generated from an llms.txt file. | false | | --no-gitignore | | Do not use patterns from the project's .gitignore file. | false | | --no-header | | Omit the introductory prompt and file tree from the output. | false | | --version | -v | Show the version number. | | | --help | -h | Show the help message. | |

License

This project is licensed under the MIT License.