- Parameter Substitution - Use
{{paramName}}syntax to create dynamic prompts - VS Code Integration - Seamlessly edit prompts in your favorite editor
- Instant Clipboard - Copies processed prompts directly to your clipboard
- Type Safety - Built with TypeScript for reliability and great developer experience
|
Save and organize your LLM prompts with an intuitive interface. Use your favorite editor or the terminal. |
Define variables with |
|
Execute prompts with parameters and get them instantly copied to your clipboard, ready to paste into any AI tool. |
Seamlessly write and edit prompts in VS Code with proper syntax highlighting and a comfortable editing experience. |
# Install globally
npm install -g prompta
# Verify installation
prompta --versionprompta createCreating Prompts
Run the command:
prompta createThis launches an interactive session where you:
- Enter a name for your prompt
- Choose between VS Code or terminal for writing your prompt
- Define parameters using
{{paramName}}syntax - Set default values for parameters
Listing Prompts
Run the command:
prompta listThis displays all saved prompts and allows you to:
- View details of specific prompts
- See parameter information
- Copy a prompt directly to clipboard
Editing Prompts
Run the command:
prompta editSelect a prompt to modify:
- Update the name
- Edit the content in VS Code or terminal
- Update parameters and default values
Executing Prompts
Run the command:
prompta runSelect a prompt to execute:
- Enter values for parameters (or use defaults)
- The processed prompt is automatically copied to clipboard
- View the final prompt with substituted parameters
# After running 'prompta create'
? Enter a name for the prompt: Code explanation
? Would you like to use VS Code to write your prompt? Yes
# In VS Code, write:
Explain the following {{language}} code like I'm {{level}}:
```{{code}}```
# After running 'prompta run'
? Select a prompt to execute: Code explanation
? Value for language: JavaScript
? Value for level: a beginner
? Value for code: function hello() { console.log("Hello world"); }
✅ Prompt copied to clipboard!
Executed Prompt:
Explain the following JavaScript code like I'm a beginner:
```function hello() { console.log("Hello world"); }```
Your prompts are stored in a local configuration file using the conf package. The location depends on your operating system:
| OS | Path |
|---|---|
| macOS | ~/Library/Preferences/prompta-nodejs |
| Windows | %APPDATA%\prompta-nodejs |
| Linux | ~/.config/prompta-nodejs |
npm install -g prompta# Clone the repository
git clone https://github.com/sanjaysunil/prompta.git
cd prompta
# Install dependencies
npm install
# Build the project
npm run build
# Link for local use
npm linkContributions are welcome! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
