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

@uxname/pp

v1.1.2

Published

PrintProject (pp) — A lightning-fast CLI tool to bundle your codebase into a single context file for LLMs (ChatGPT, Claude, DeepSeek). Features smart prioritization, interactive history, and gitignore support.

Readme

pp (PrintProject)

PrintProject is a blazing fast CLI tool designed to prepare your codebase for Large Language Models (LLMs).

It scans your directory, ignores the junk (binaries, locks, node_modules), intelligently prioritizes critical files ( like package.json or README), and concatenates everything into a single text output.

New: Now includes a Code Cleanup tool to strip comments from your project!

License Version

✨ Features

  • 🚀 Fast & Lightweight: Built with Bun, runs anywhere Node.js runs.
  • 🧠 Context-Aware: Automatically puts package.json, docs, and entry points at the top of the file.
  • 🛡️ Smart Filtering:
    • Respects .gitignore.
    • Automatically excludes binary files, lockfiles, and huge directories (node_modules, .git, dist).
    • Skips files larger than 1MB by default.
  • 🧹 Code Cleanup: Safely remove all comments from JS/TS files (.ts, .js, .tsx, .jsx) to reduce token usage or minify code.
  • 📜 Interactive History: Run pp without arguments to select from your recent commands.
  • 📋 clipboard-ready: Output to a file or pipe directly to stdout.

📦 Installation

Install globally via npm:

npm install -g @uxname/pp

🚀 Usage

1. Bundle Context (Default)

Scan the current directory and generate a text file for LLMs.

# Basic usage
pp

# Specify output file
pp ./backend -o context.txt

# Pipe to clipboard (macOS)
pp . --stdout | pbcopy

2. Strip Comments (Cleanup)

Remove all comments (// ..., /* ... */) from JavaScript and TypeScript files in a directory.

⚠️ Warning: This command modifies files in place. Always commit your changes before running!

Dry Run (Check what will happen): See which files will be modified without actually touching them.

pp strip --dry-run

Execute Cleanup: This will ask for confirmation before proceeding.

pp strip
# or
pp strip ./src

Force Execute (No Prompt): Useful for scripts or CI/CD.

pp strip -y

⚙️ Options & Flags

Bundle Command (pp [path])

| Flag | Description | |-----------------------|-------------------------------------------------------------------------| | -o, --output <file> | Specify the output file path. | | -s, --stdout | Print to stdout instead of creating a file. | | --exclude <pattern> | Add custom glob patterns to exclude (e.g. --exclude "*.css"). | | --no-gitignore | Disable .gitignore parsing (scan everything except default excludes). |

Strip Command (pp strip [path])

| Flag | Description | |------------------|-------------------------------------------------------------| | -d, --dry-run | Show which files would be processed without modifying them. | | -y, --yes | Skip confirmation prompt (Danger!). | | -e, --exclude | Exclude patterns from stripping. | | --no-gitignore | Disable .gitignore parsing. |

🧠 How it Sorts (Priority Rules)

pp sorts files to maximize LLM understanding:

  1. Manifests: package.json, Cargo.toml, etc.
  2. Documentation: README.md, Dockerfile.
  3. Entry Points: index.ts, main.go.
  4. Config: Configuration files.
  5. Source Code: Files in src/, lib/.
  6. Tests: Test files are placed last.

🚫 Default Exclusions

pp automatically ignores:

  • Directories: .git, node_modules, dist, build, coverage, .vscode, __pycache__, etc.
  • Files: Lockfiles (package-lock.json, yarn.lock), .DS_Store, .env.
  • Extensions: Images, videos, archives, binaries.

🛠 Development

If you want to contribute or build locally:

# Clone repository
git clone https://github.com/uxname/pp.git
cd pp

# Install dependencies
bun install

# Run in dev mode
bun run dev

# Build for production
bun run build

License

MIT