promptlab
1.0.0
PromptLab is a powerful prompt engineering and management tool built with React and TypeScript. It allows you to create, test, and manage AI prompts using a pipeline-based approach.
git clone https://github.com/yourusername/promptlab.git
cd promptlabbun installbun run devsrc/ - Source code
lib/ - Core libraries and utilities
pltl/ - Prompt Lab Template Language implementation
templates/ - Template storage
prompts/ - Base prompt templatesassistants/ - Assistant templatesaddons/ - Pipeline addon templatesinterpreter.ts - PLTL interpreterloader.ts - Template loadertypes.ts - Type definitionscontext.tsx - React context providersutils.ts - Utility functionscomponents/ - React components
ui/ - Reusable UI componentsapp-sidebar.tsx - Sidebar componentcopyarea.tsx - Copy text areapipeline-processor.tsx - Pipeline processorhooks/ - Custom React hooks
pltl.ts - Pipeline operation hooksuse-mobile.tsx - Mobile detection hookApp.tsx - Main application componentmain.tsx - Application entry pointmain.css - Global stylesThe structure follows a modular approach where:
src/lib/pltl handles core PLTL functionalitysrc/components contains all React componentssrc/hooks provides custom hooks for state managementThe pipeline system allows you to:
Example usage with the usePipelineOperations hook:
const { addAddon, removeAddon, replaceBasePLTL, updateArguments } = usePipelineOperations();
// Set base prompt
replaceBasePLTL(template);
// Add addon
addAddon(addon);
// Update arguments
updateArguments({ key: "value" });MIT
Built with ⚡ by Torben Haack