Transform plain language into dynamic, multi-step forms with AI-powered precision.
PromptToForm.ai is an open-source platform that bridges the gap between idea and implementation, allowing teams to rapidly prototype, test, and deploy sophisticated forms through natural language descriptions.
Simply describe your form in plain English and watch it come to life with live previews, conditional logic, and multi-language support.
- Natural Language Processing: Describe your form in plain English
- Multi-LLM Support: OpenAI GPT-4, Anthropic Claude, Mistral, Google Gemini
- Intelligent Field Detection: Automatically determines appropriate input types
- Conditional Logic: Complex branching and validation rules from simple prompts
- Interactive Flow Editor: Drag-and-drop form structure visualization
- Real-time Preview: See changes instantly as you build
- Mermaid Diagrams: Visual representation of form logic flow
- Responsive Design: Forms work perfectly on all devices
- Multi-language Support: Built-in internationalization with translation management
- PDF Form Import: Upload existing PDF forms and convert them to interactive forms
- Expression Engine: Dynamic calculations and conditional field behavior
- Advanced Validation: WCAG-compliant error messages and accessibility features
- React Forms Library: Production-ready
@devhelpr/react-forms
component library - TypeScript Support: Full type safety and IntelliSense
- JSON Schema Export: Generate OpenAPI schemas for your forms
- Session Management: Persistent form editing with IndexedDB storage
- Netlify Integration: One-click deployment to Netlify
- Multi-step Wizards: Complex decision trees with conditional navigation
- Array Fields: Dynamic lists with add/remove functionality
- Slider Controls: Range selectors with real-time calculations
- Confirmation Pages: Review and summary pages with template variables
- Thank You Pages: Customizable post-submission experiences
- Product Teams: Rapidly prototype user onboarding flows
- Analysts: Convert requirements into interactive forms
- Developers: Generate production-ready form components
- Designers: Create complex user journeys without coding
- Business Users: Build forms without technical knowledge
- Visit https://app.prompttoform.ai
- Describe your form: "Create a 3-step job application form with conditional questions"
- Watch it generate instantly with live preview
- Export as React components or deploy directly
# Clone the repository
git clone https://github.com/devhelpr/prompttoform
cd prompttoform
# Install dependencies
npm install
# Start development server
npm run dev
# Open http://localhost:4200
# Install the form renderer library
npm install @devhelpr/react-forms
# Use in your React app
import { FormRenderer } from '@devhelpr/react-forms';
<FormRenderer formJson={formDefinition} />
Create a contact form with name, email, and message fields
Build a health insurance application with 4 steps:
1. Personal information
2. Medical history with conditional questions
3. Coverage selection based on previous answers
4. Review and confirmation page
Create a job application form that:
- Collects basic info first
- Shows different questions based on experience level
- Includes a skills assessment for technical roles
- Has a thank you page with next steps
Build a product configuration form with:
- Product selection
- Customization options with price calculations
- Shipping information
- Payment method selection
apps/prompttoform
: Main web applicationlibs/react-forms
: Production-ready React form libraryplaywright-tests
: Comprehensive end-to-end testing
- Frontend: React 19, TypeScript, Tailwind CSS v4
- Build System: Nx monorepo, Vite
- AI Integration: LangChain, multiple LLM providers
- Testing: Playwright, Vitest
- Deployment: Netlify integration
Forms follow a structured JSON schema that supports:
- Multi-page navigation with conditional logic
- Rich field types (text, email, select, slider, arrays)
- Validation rules with custom error messages
- Template variables for dynamic content
- Expression-based calculations
- Multi-language translations
- Multi-language Support: Complete i18n implementation with translation management
- PDF Import: Upload existing PDF forms and convert to interactive forms
- Expression Engine: Real-time calculations and dynamic field behavior
- Advanced Validation: WCAG-compliant accessibility features
- Session Management: Persistent editing with conflict resolution
- TypeScript: Full type safety across the entire codebase
- Testing: Comprehensive Playwright test suite
- Documentation: Detailed API documentation and examples
- Performance: Optimized rendering with React.memo and lazy loading
- Netlify Integration: One-click deployment
- Schema Export: Json-schema generation for validation
- Custom Styling: Complete theme customization support
We welcome contributions! Here's how you can help:
- Bug Reports: Found an issue? Open an issue
- Feature Requests: Have an idea? Start a discussion
- Code Contributions: Fork and submit a PR
- Documentation: Help improve our guides and examples
- Testing: Try the tool and report bugs or usability issues
- Feedback: Share your use cases and feature ideas
# Install dependencies
npm install
# Run tests
npm run test
# Run Playwright tests
npm run test-playwright
# Build the library
npm run build-react-forms
PromptToForm.ai is built with β€οΈ and maintained by a one man team. Your support helps me:
- Maintain Infrastructure: Keep the web app running smoothly
- Add New Features: Implement community-requested functionality
- Improve Performance: Optimize for better user experience
- Expand AI Capabilities: Integrate with more LLM providers
- β Star the Repository: Help others discover the project
- π Report Issues: Help us improve by reporting bugs
- π‘ Suggest Features: Share your ideas for new functionality
- π° GitHub Sponsors: Become a sponsor to support ongoing development
- π’ Spread the Word: Share with your network and communities
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI, Anthropic, Mistral, Google: For providing powerful AI models
- React Team: For the amazing React ecosystem
- Nx Team: For the excellent monorepo tooling
- Community: For feedback, contributions, and support
Made with β€οΈ, TypeScript, and a passion for making form creation accessible to everyone.
Transform your ideas into interactive forms in seconds, not hours.