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.
npm install -g project-prompt
npm install project-prompt
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.
-
pjp run <project-dir> [options]
- Start Project Prompt with the specified project directory -
pjp help
- Show usage instructions -
pjp version
- Show version information
-
--port, -p <port>
- Specify the port to run on (default: 3000)
- 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
- Start the application with your project directory
- Open the Web Interface at http://localhost:3000 (or your specified port)
- Select Files you want to include in your prompt
- Add Custom Instructions if needed
- Generate and Copy the final prompt for use with AI tools
- Optionally Apply Code Changes through the "Apply Changes" modal
Configuration settings are stored in ~/pjp-config.json
and automatically updated when you use the web interface.
- 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
Contributions are welcome! See the development section below for more information.
-
Clone the repository:
git clone https://github.com/yourusername/project-prompt.git cd project-prompt
-
Install dependencies:
npm install
-
Run in development mode:
npm run dev
-
Build the package:
npm run build
Distributed under the AGPL v3 license. See the LICENSE file for details.