PACE is a code editor that combines the power of CodeMirror with AI-driven prompt templates. It allows developers to create custom prompt templates and apply them to selected code snippets.
PACE was created by Chris Minnick as a demo project for his book, "A Developer's Guide to Integrating Generative AI into Applications" (Wiley Publishing, 2026, ISBN: 9781394373130).
- CodeMirror Integration: Full-featured code editor with syntax highlighting
- Custom Prompt Templates: Create and manage prompt templates with {{selection}}variables
- AI-Powered Completions: Send prompts to an LLM backend for intelligent code assistance
- Template Management: Add, edit, and organize prompt templates through an intuitive interface
- Real-time Processing: Get instant AI-generated responses for your code selections
- Node.js (v14 or higher)
- OpenAI API key (or compatible LLM service)
- 
Clone the repository: git clone <repository-url> cd pace 
- 
Install dependencies: npm install 
- 
Create a .envfile and add your OpenAI API key:OPENAI_API_KEY=your_api_key_here
- 
Start the development server: npm run dev 
- 
Open your browser and navigate to http://localhost:3000
- Writing Code: Use the CodeMirror editor to write your code
- Creating Prompt Templates: Click "Add an AI Feature" to create new prompt templates
- Using Templates: Select text in the editor and choose a template from the dropdown
- AI Processing: The selected text is processed by the AI and results are displayed
- Frontend: HTML, CSS, JavaScript with CodeMirror
- Backend: Node.js with Express
- AI Integration: OpenAI API (configurable for other providers)
© 2025 Chris Minnick. All rights reserved.
This software and associated documentation files (the "Software") are protected by copyright and other intellectual property laws. The Software is licensed, not sold.
This project is licensed under the MIT License - see the LICENSE file for details.