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

@toriality/projector-cli

v0.0.9

Published

Concatenate file contents for AI context

Readme

Projector CLI (Node.js)

Projector is a TypeScript-based command-line tool that concatenates the contents of files in a directory into a single document. It is designed to bridge the gap between your local codebase and Large Language Models (LLMs).

Features

  • Fast Performance: Rewritten in TypeScript for high-speed file crawling.
  • AI-Ready: Formats output perfectly for ChatGPT, Claude, and Gemini context windows.
  • Smart Filtering: Supports glob-style ignore patterns (e.g., **/dist/**, *.log) and regex include patterns.
  • Interactive Wizard: Guided setup when run without arguments.
  • Token Estimation: Previews estimated token count with warnings for LLM context limits.
  • File Preview: See which files will be processed before committing.
  • Dry Run: Preview which files will be processed without reading them.
  • Clipboard Support: Copy output directly to clipboard for instant pasting.
  • Zero Configuration: Sensible defaults (ignores node_modules and .git by default).

AI Integration

Projector is a "Context-as-a-Service" tool for AI-assisted development. By feeding your entire codebase into an LLM via Projector, you enable:

  • Holistic Refactoring: The AI sees the impact of a change across multiple files.
  • Bug Hunting: Find logic errors that span across the relationship between modules.
  • Instant Documentation: Generate a full README.md or API spec based on the actual source code.

Installation

You can run Projector without installing it using npx:

npx @toriality/projector-cli
# Or the commmand below, if available
npx projector

Or install it globally:

npm install -g @toriality/projector-cli

Usage

projector [directory] [options]

If no directory is provided, Projector launches an interactive wizard to guide you through the options.

Options

| Option | Alias | Description | | ------------------- | ----- | -------------------------------------------------------- | | --ignore | -i | Patterns to exclude (default: node_modules, .git) | | --output | -o | Save result to a specific file | | --clipboard | -c | Copy result to clipboard | | --include-hidden | | Include hidden files (dotfiles) | | --preview | | Preview file list before processing | | --include | | Regex pattern for files to include | | --dry-run | | Show what would be processed without actually doing it |

Examples

Interactive mode (launches wizard):

projector

Basic usage (current directory):

projector .

Preview files before processing:

projector src --preview

Copy to clipboard for immediate pasting:

projector . --clipboard

Filter with regex pattern and save to file:

projector . --include "\.(ts|tsx)$" -o codebase.txt

Include hidden files and ignore additional patterns:

projector . --include-hidden -i dist build temp

Dry run to see what would be processed:

projector . --dry-run

Preview Mode

When using --preview or in interactive mode, Projector displays:

  • List of files to be processed with relative paths
  • Individual file sizes
  • Total size of all files
  • Estimated token count for LLM context
  • Warnings if token count exceeds common LLM limits

This helps you avoid overwhelming LLM context windows before processing.

Output Format

Projector uses a clear delimiter system:

<<path/to/file.ts>>

[File Content Here]

--------------

License

MIT