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

prompt-for-ai

v2.0.2

Published

Interactive CLI prompt generator for AI — scans project structure and file contents.

Downloads

65

Readme

Prompt For AI

npm version npm downloads License: ISC

Prompt For AI is an interactive CLI tool that scans your project folder, displays its file structure, and lets you pick files to generate a ready-to-use prompt for AI models.

Features

  • 🗂️ Browse & Select: Navigate your project folders and pick specific files or entire directories.
  • 🌳 Tree View: Automatically generates a clean project tree structure.
  • Repeat Last Run: Instantly re-generate prompts using your last configuration.
  • 🔄 Back Navigation: Go back to any step (folder selection, file selection, project choice) without restarting.
  • ⚙️ Settings Menu: Configure language, export format, token limits, global exclusions, and more.
  • 📄 Multiple Formats: Export as Plain Text (.txt) or Compressed PDF (.pdf).
  • 📊 Token Estimation: See estimated token counts in real-time while selecting files.
  • 🌍 Multilingual: Supports English and Russian interfaces.
  • 🛡️ Smart Exclusions: Automatically skips node_modules, .git, dist, and other common ignored folders.
  • 📋 Clipboard Copy: Automatically copies the generated text prompt to your clipboard.

Installation

Install globally via npm:

npm install -g prompt-for-ai

Installation

Usage

Run the command:

create-prompt

Workflow

  1. Select Language (on first run): Choose between English and Russian.
  2. Select Project: Pick from favorites, recent projects, browse for a folder, or enter a path manually.
  3. Folder Analysis: Review folder sizes and choose which ones to include (or use y/n to include all).
  4. File Selection: Toggle individual files, entire folders, or use quick actions ("Select all", "Only code").
  5. Export: Choose format (.txt or .pdf).
  6. Done: The prompt is saved to your project root (and copied to clipboard if .txt).

Main workflow

Navigation

  • Use ↩️ Back at any step to return to the previous screen.
  • Use 🚪 Exit in the main menu to quit.
  • Press Ctrl+C at any time to immediately exit.

Repeat last run

Configuration

Global settings (language, favorites, token limits, exclusions) are stored securely in your system's app data directory using conf.

Per-project settings (last selected files, excluded folders) are also saved globally, so your projects stay clean.

The tool will automatically update your project's .gitignore to exclude generated prompt.txt and prompt.pdf files.

Settings

License

This project uses the ISC License.