XML Prompt Builder is a visual tool for creating structured XML prompts for AI systems. This project helps prompt engineers and AI enthusiasts to create, edit, and format complex XML structures without dealing with manual syntax and formatting issues.
- Visual XML Building: Create structured XML elements through an intuitive interface
- Nested Structures: Easily create parent-child relationships with proper nesting
- Real-time Preview: See your XML structure update in real-time as you build
- Drag & Drop Reordering: Rearrange elements with simple up/down controls
- Collapsible Elements: Toggle visibility of complex nested structures
- Copy to Clipboard: Export your finished XML with one click
- Click "Add Element" to create a new XML tag
- Select any element to edit its name and content
- Add child elements to create nested structures
- Toggle elements to collapse/expand them
- Use the up/down arrows to rearrange elements
- Child elements will stay within their parent when rearranged
- Preview your XML on the right panel
- Copy the final XML with the copy button when you're done
XML Prompt Builder is built using:
- React + TypeScript for a robust component architecture
- Vite for lightning-fast development experience
- Tailwind CSS for responsive and customizable styling
- shadcn/ui for beautiful UI components
- Lucide React for crisp, scalable icons
# Clone the repository
git clone https://github.com/lolrazh/xml-prompt-builder.git
# Navigate to project directory
cd xml-prompt-builder
# Install dependencies
npm install
# Start development server
npm run dev
- Creating structured prompts for large language models
- Designing XML-based templates for API requests
- Generating configuration files with proper formatting
- Teaching XML structure and syntax to beginners
Contributions are welcome! Feel free to submit pull requests or open issues for new features, bug fixes, or improvements.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with ♥ for prompt engineers and AI enthusiasts
- Find me on GitHub @lolrazh