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

@kleosr/pe2-cli

v4.0.1

Published

🚀 KleoSr PE2-CLI: Convert raw prompts to PE2-optimized prompts using adaptive intelligence

Readme

PE2-CLI

Command-line tool that takes a rough prompt (text or file), calls a configured LLM, and returns a structured PE2-style prompt. Release line is 4.0.0 (npm semver); the CLI labels the generation as Code V4 in the banner.

Requirements

  • Node.js 18.17 or newer

You need an API key (or base URL for Ollama) for whichever provider you pick. The tool does not ship bundled models.

Install

npm install -g @kleosr/pe2-cli

Or run without a global install:

npx @kleosr/pe2-cli --help

Usage

No arguments starts interactive mode (and will ask for config on first run if nothing is saved):

npx @kleosr/pe2-cli

Other entry points:

npx @kleosr/pe2-cli --config
npx @kleosr/pe2-cli "Your prompt as plain text"
npx @kleosr/pe2-cli path/to/prompt.txt
npx @kleosr/pe2-cli "Some text" --iterations 3
npx @kleosr/pe2-cli "Some text" --provider ollama --model llama3
npx @kleosr/pe2-cli "Some text" --auto-difficulty

For the full flag list, use:

npx @kleosr/pe2-cli --help

Configuration

Settings are stored in ~/.kleosr-pe2/config.json (Unix) or the equivalent under your user profile on Windows. Run --config to change provider, model, and API key.

Supported providers in code: openai, anthropic, google, openrouter, ollama. Default in the project constants targets OpenRouter with a small model id; you can override per run with --provider and --model.

Output

Unless you pass --output-file, session output can be written under pe2-prompts/ in the current working directory (see src/paths.js and src/engine.js).

Development

git clone https://github.com/kleosr/PE2-CLI.git
cd PE2-CLI
npm ci
npm test
npm start

Tests use Node’s built-in runner: node --test ./tests/*.test.js.

Package

License

ISC (see package.json).