A web-based prompt management system that stores LLM prompts as markdown files in your repository while using SQLite for fast searching and indexing.
- 📝 Store prompts as version-controlled markdown files
- 🔍 Fast full-text search using SQLite FTS5
- 🏷️ Organize prompts with categories and tags
- 📊 Track prompt versions and modifications
- 🔄 Automatic file watching and index synchronization
- 🚀 Web-based editor with syntax highlighting
- 💾 Git-friendly storage format
-
Clone the repository:
git clone https://github.com/protocolus/promptforge.git cd promptforge -
Install dependencies:
npm run install:all
-
Initialize the database:
npm run init-db
-
Start the development servers:
npm run dev
-
Open http://localhost:3000 in your browser
/prompts- Markdown files for all prompts (tracked in git)/server- Express.js backend API/client- React frontend applicationpromptforge.db- SQLite database (in .gitignore)
- Create and edit prompts through the web interface
- Prompts are saved as markdown files in the
/promptsdirectory - SQLite indexes these files for fast searching
- Changes to files are automatically detected and reindexed
- Push your
/promptsdirectory to git to share with your team
---
title: Your Prompt Title
model: claude-3-opus
tags: [tag1, tag2]
created: 2024-03-15
version: 1.0
---
# Your Prompt Title
Your prompt content goes here...npm run dev- Start both server and client in development modenpm run dev:server- Start only the servernpm run dev:client- Start only the clientnpm run build- Build the client for productionnpm start- Start the server in production modenpm run init-db- Initialize the SQLite database
GET /api/prompts- Get all prompts with optional search/filterGET /api/prompts/:id- Get single promptPOST /api/prompts- Create new promptPUT /api/prompts/:id- Update promptDELETE /api/prompts/:id- Delete promptGET /api/prompts/meta/categories- Get categories with counts
POST /api/sync/reindex- Manually trigger full reindex
Contributions 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 ISC License - see the LICENSE file for details.