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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@uxname/pp

v1.0.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.

Ideal for pasting context into ChatGPT, Claude, or DeepSeek to get better code assistance.

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 so the LLM understands the project structure first.
  • 🛡️ Smart Filtering:
    • Respects .gitignore.
    • Automatically excludes binary files, lockfiles, and huge directories (node_modules, .git, dist).
    • Skips files larger than 1MB by default.
  • 📜 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

The command pp will now be available in your terminal.

🚀 Usage

Basic Usage

Run in the current directory. By default, it creates a file named after the directory (e.g., my-project.txt).

pp

If you run it without arguments, it may also show a history menu of previous commands.

Specify Directory and Output

Scan a specific folder and save to a specific file:

pp ./backend -o context.txt

Pipe to Clipboard (macOS/Linux)

Use the stdout flag to pipe content directly to your clipboard:

# macOS
pp . --stdout | pbcopy

# Linux (xclip)
pp . --stdout | xclip -selection clipboard

⚙️ Options & Flags

| Flag | Description | |------|-------------| | [directory] | The directory to scan (default: .) | | -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). |

Examples

Exclude all CSS and test files:

pp . --exclude "*.css" --exclude "*.test.ts"

Ignore gitignore rules (include everything):

pp . --no-gitignore

🧠 How it Sorts (Priority Rules)

pp doesn't just dump files alphabetically. It sorts them to maximize LLM understanding:

  1. Manifests: package.json, Cargo.toml, go.mod, etc.
  2. Documentation: README.md, Dockerfile.
  3. Entry Points: index.ts, main.go, app.py.
  4. Config: Configuration files.
  5. Source Code: Files in src/, lib/, etc.
  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 (.png, .exe, .zip, etc.).

🛠 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