Skip to content

AlwaysSany/visual-prompt-builder

Visual Prompt Builder

A modern, interactive React + TypeScript web app for visually composing project prompts and templates.

Working Demo

visual-prompt-builder

See at Live: Visual Prompt Builder

Project Overview

This project is a web application that allows users to visually compose project prompts and templates. It provides a user-friendly interface for selecting the project domain, language, framework, config files, and describing the project. The application generates a dynamic summary sentence and a detailed prompt in both Natural Language and JSON formats. Users can save templates for quick reuse and edit or update existing templates in place. The application also includes a confirmation dialog to prevent accidental loss of templates and provides options to copy or download the prompt.

Features & Usage

Core Functionality

  • Interactive Form
    • Select project domain, language, framework, and config files
    • Add custom descriptions and details
    • Dynamic form updates as you type

Smart Preview System

  • Live Prompt Preview
    • Real-time updates in both Natural Language and JSON formats
    • Dynamic summary sentence generation
    • Clean, readable output formatting

Template Management

  • Save & Reuse
    • Save frequently-used prompt configurations
    • One-click load for quick access
    • Inline editing of existing templates
    • Clear visual indicators for edit mode
    • Confirmation dialog for safe deletion

Enhanced User Experience

  • Modern UI Components

    • Built with Material-UI for consistent, responsive design
    • Accessible controls and labels
    • Smooth animations and transitions
  • Convenience Features

    • One-click copy to clipboard
    • Download prompt as a text file
    • Persistent storage using localStorage
    • Responsive layout for all devices

Getting Started

Prerequisites

  • Node.js (18+ recommended)
  • npm or yarn

Install dependencies

npm install
# or
yarn

Start the development server

npm run dev
# or
yarn dev

Open http://localhost:5173 to view the app.

Build for production

npm run build
# or
yarn build

Project Structure

  • src/ — App entry and main React code
  • components/ — Modular React components
  • VisualPromptBuilder.tsx — Main logic and state management
  • public/ — Static assets and index.html

Notes

  • Uses Vite for fast dev/build.
  • UI: Material-UI
  • TypeScript strict mode is enabled.

Roadmap

  • Add authentication for different users, prompt isolation.
  • Integrate LLM APIs to directly interact based on the generated text prompt.
  • Add a load balancer and make it scalable for handling a large request volume.
  • Add caching to provide a frequently used prompt.
  • Add bookmark feature for favorite prompt.
  • Add share prompt feature.
  • Upload files for context enhancement along with a visual prompt element.
  • Add chat UI and backend to integrate 3rd party LLMs and APIs
  • Drag-and-drop form builder if some advanced elements needed (see docs.md)
  • Backend integration for prompt persistence.
  • Export to YAML and other formats

For more, see docs.md.

About

A modern, interactive React + TypeScript web app for visually composing project prompts and templates.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published