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

project-prompt

v1.2.2

Published

A Next.js application that lets users select local files, generate combined prompts, and apply JSON-based code changes

Readme

Project Prompt

A Next.js-powered application that helps you generate AI prompts from your local project files. This tool provides a web interface for selecting files, creating custom instructions, and generating combined prompts for AI tools. It also supports applying JSON-based code changes to your files via a server-side API.

Installation

Global Installation (Recommended)

npm install -g project-prompt

Local Installation

npm install project-prompt

Usage

Starting the Interface

To start Project Prompt with your project directory:

# If installed globally
pjp run /path/to/your/project

# If installed locally
npx pjp run /path/to/your/project

# Use the current directory as project root
pjp run .

# Use a custom port (if 3000 is already in use)
pjp run . --port 3001
# OR
pjp run . -p 3001

This will start a Next.js server on http://localhost:3000 (or your specified port) that provides a web interface for interacting with your project files.

Commands

  • pjp run <project-dir> [options] - Start Project Prompt with the specified project directory
  • pjp help - Show usage instructions
  • pjp version - Show version information

Options

  • --port, -p <port> - Specify the port to run on (default: 3000)

Features

  • Directory Selection: Browse and select your project files and directories
  • File Loading: Filter files using ignore patterns, select specific files or folders
  • Custom Instructions: Create, edit, reorder, or toggle additional instruction blocks
  • Prompt Generation: Combine instructions, custom instructions, and file contents
  • JSON-based File Changes: Apply code changes to your local files through the web UI
  • Light/Dark Themes: Toggle between visual themes
  • Port Configuration: Specify a custom port if the default port is in use

Usage Flow

  1. Start the application with your project directory
  2. Open the Web Interface at http://localhost:3000 (or your specified port)
  3. Select Files you want to include in your prompt
  4. Add Custom Instructions if needed
  5. Generate and Copy the final prompt for use with AI tools
  6. Optionally Apply Code Changes through the "Apply Changes" modal

Advanced Configuration

Configuration settings are stored in ~/pjp-config.json and automatically updated when you use the web interface.

Security Notes

  • The tool only makes file system changes within the specified project directory
  • Path sanitization prevents file operations outside the base directory
  • All file operations occur server-side through the Node.js API

Contributing

Contributions are welcome! See the development section below for more information.

Development

  1. Clone the repository:
    git clone https://github.com/yourusername/project-prompt.git
    cd project-prompt
  2. Install dependencies:
    npm install
  3. Run in development mode:
    npm run dev
  4. Build the package:
    npm run build

License

Distributed under the AGPL v3 license. See the LICENSE file for details.