Transform your project ideas into optimized AI prompts with intelligent question generation and multi-AI enhancement
Features β’ Demo β’ Quick Start β’ Documentation β’ Contributing
π Web Platform Coming Soon! | π° Save 40% on AI Tokens | β‘ 10x Faster Development
DevPrompter is a sophisticated AI-powered platform that revolutionizes how developers create prompts for AI coding assistants. Instead of writing prompts manually, DevPrompter uses intelligent questionnaires and multi-AI enhancement to generate production-ready, optimized prompts that deliver superior results while saving you tokens and costs.
- Multi-AI Enhancement Pipeline: Uses multiple AI providers (OpenAI, Anthropic) to create prompts superior to manual writing
- Context-Aware Intelligence: Analyzes your project requirements and generates tailored questions
- Production-Ready Output: Generates prompts that work immediately with any AI coding assistant
- Token & Cost Optimization: Smart prompts reduce AI agent token usage and development costs
- Time-Saving: Get optimized project setup in minutes instead of hours
- Dynamic Question Generation: AI generates contextual questions based on your project type
- Conditional Logic: Questions adapt based on previous answers for maximum relevance
- 12+ Question Types: TEXT, SELECT, MULTISELECT, BOOLEAN, EMAIL, URL, NUMBER, TECH_STACK, and more
- Smart Validation: Built-in validation with custom rules and real-time feedback
- Multi-AI Optimization: Uses OpenAI GPT-4 and Anthropic Claude for prompt enhancement
- Quality Scoring: AI validates prompt quality with scores for clarity, completeness, and technical accuracy
- Template-Based: Professional templates based on production prompts from Cursor, Windsurf, Devin AI
- Multiple Formats: Detailed, concise, step-by-step, or multi-stage execution formats
- Web Development: REST API, React SPA, E-commerce Website, Blog Platform, Landing Page
- Applications: SaaS Application, Mobile App, Progressive Web App, Admin Dashboard
- Tools & Extensions: CLI Tool, Chrome Extension, Discord Bot
- Portfolio & Content: Portfolio Website, Real-time Chat App
- APIs: GraphQL API, and more
- Real-time Streaming: Live AI response streaming with progress indicators
- Provider Failover: Automatic switching between AI providers for reliability
- Cost Optimization: Intelligent provider selection to minimize API costs and token usage
- Secure API Management: AES-256 encrypted API key storage
- Token Efficiency: Optimized prompts reduce AI agent costs by up to 40%
- Multiple Formats: Export as Markdown, JSON, or Plain Text
- One-Click Copy: Instant clipboard copying for quick sharing
- Download Options: Save prompts for future reference
- Syntax Highlighting: Beautiful code preview with multiple viewing modes
π Live Website: Coming Soon! We're launching a full web application with enhanced features.
π What's Coming: Advanced AI integrations, team collaboration, custom templates, and more!
- Node.js 20+ and npm
- PostgreSQL 15+
- (Optional) AI API Keys for enhanced features
- Clone the repository
git clone https://github.com/hamodywe/devprompter.git
cd devprompter- Backend Setup
cd backend
npm install
cp .env.example .env
# Edit .env with your database and API keys
npx prisma migrate dev
npm run db:seed
npm run dev- Frontend Setup
cd frontend
npm install
npm run dev- Access the application
- Frontend: http://localhost:3000
- Backend API: http://localhost:3001
Backend (.env)
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/devprompter
# Server
PORT=3001
NODE_ENV=development
FRONTEND_URL=http://localhost:3000
# AI Providers (Optional - for enhanced features)
OPENAI_API_KEY=your_openai_key_here
ANTHROPIC_API_KEY=your_anthropic_key_here
ENCRYPTION_KEY=your_32_character_encryption_key-
π― Select Project Type
- Choose from 15 available project types
- Each type has tailored questions and optimizations
-
π Answer Questions
- Fill out the intelligent questionnaire
- Questions adapt based on your previous answers
- Real-time validation ensures quality input
-
π€ AI Enhancement
- Multiple AI providers optimize your prompt
- Quality scoring ensures 85%+ effectiveness
- Real-time streaming shows the enhancement process
-
π€ Export & Use
- Copy the optimized prompt
- Paste into your AI coding assistant (Claude, GPT-4, Cursor, etc.)
- Download in multiple formats (.txt, .md, .json)
- Save up to 40% on AI tokens with our optimized prompts
- π― Optimized Prompts: Our AI-enhanced prompts are 40% more efficient than manual prompts
- π Reduced Token Usage: Smart prompt structure reduces unnecessary AI agent processing
- β‘ Faster Results: Get working code faster, reducing development iterations
- π Reusable Templates: Build once, use many times for similar projects
- π Cost Tracking: Monitor your AI usage and optimize for better results
- Multi-Stage Prompts: For complex projects, get 10 sequential prompts
- AI Provider Selection: Choose your preferred AI for enhancement
- Custom Templates: Create and save your own prompt templates
- Project History: Save and revisit your generated prompts
graph TB
A[User Input] --> B[Question Engine]
B --> C[AI Context Analysis]
C --> D[Multi-AI Enhancement]
D --> E[Quality Validation]
E --> F[Template Assembly]
F --> G[Final Prompt Generation]
H[OpenAI GPT-4] --> D
I[Anthropic Claude] --> D
J[Template Library] --> F
K[Best Practices DB] --> F
style A fill:#e3f2fd
style G fill:#e8f5e8
style D fill:#fff3e0
- Frontend: Next.js 15, React 19, TypeScript, Tailwind CSS, Framer Motion
- Backend: Node.js, Express, TypeScript, Prisma ORM
- Database: PostgreSQL with comprehensive schema
- AI Integration: OpenAI GPT-4, Anthropic Claude (more coming)
- UI Components: Radix UI with custom styling
- Validation: Zod for robust data validation
GET /api/project-types
GET /api/project-types/:id
GET /api/project-types/:id/questionsPOST /api/projects/:typeId/generate
Content-Type: application/json
{
"answers": {
"projectName": "My API",
"framework": "node-express",
"database": "postgresql"
},
"options": {
"format": "detailed",
"aiProvider": "openai"
}
}POST /api/ai/enhance
POST /api/ai/score-quality
POST /api/ai/stream-generationπ§ Advanced Configuration
- OpenAI: Get API key from OpenAI Platform
- Anthropic: Get API key from Anthropic Console
- Add to .env: Set
OPENAI_API_KEYandANTHROPIC_API_KEY
- PostgreSQL: Install and create database
- Prisma: Run migrations with
npx prisma migrate dev - Seed Data: Run
npm run db:seedfor project types
- Frontend: Deploy to Vercel/Netlify
- Backend: Deploy to Railway/Heroku
- Database: Use PostgreSQL on AWS RDS/Supabase
devprompter/
βββ frontend/ # Next.js React application
β βββ app/ # App router pages
β βββ components/ # Reusable UI components
β βββ lib/ # Utilities and API client
β βββ public/ # Static assets
βββ backend/ # Node.js API server
β βββ src/
β β βββ routes/ # API endpoints
β β βββ services/ # Business logic
β β βββ db.ts # Database connection
β βββ prisma/ # Database schema and migrations
βββ docs/ # Documentation and images
- Fork the repository
- Create feature branch:
git checkout -b feature/amazing-feature - Make your changes: Follow the coding standards
- Add tests: Ensure good test coverage
- Commit changes: Use conventional commits
- Push to branch:
git push origin feature/amazing-feature - Open Pull Request: Describe your changes
# Start development servers
npm run dev # Both frontend and backend
npm run dev:frontend # Frontend only
npm run dev:backend # Backend only
# Database operations
npm run db:migrate # Run database migrations
npm run db:seed # Seed with sample data
npm run db:reset # Reset database
# Testing
npm run test # Run all tests
npm run test:frontend # Frontend tests only
npm run test:backend # Backend tests only
# Build
npm run build # Build for production
npm run start # Start production serverWe welcome contributions! Please see our Contributing Guide for details.
- π Bug Reports: Open an issue
- π‘ Feature Requests: Open an issue
- π Documentation: Help improve our docs
- π§ Code: Submit pull requests
- 15 project types with intelligent questions
- Multi-AI enhancement pipeline
- Real-time streaming and quality scoring
- Multi-stage prompt generation
- Beautiful, responsive UI
- More AI Providers: Google Gemini, Groq, and Claude Sonnet integration
- Custom Template Creation: Build and share your own prompt templates
- Team Collaboration: Share projects and templates with your team
- Advanced Analytics: Token usage tracking and cost optimization insights
- π Web Platform Launch: Full-featured web application with enhanced UI
- Intelligent Prompt Generation for Programming Issues: Quickly resolve coding errors and bugs
- Intelligent Prompt Generation for Feature Expansion: Suggest new features or enhancements for real projects
- Machine Learning Optimization: AI learns from successful prompts to improve automatically
- Community Marketplace: Share and discover templates from the developer community
- Enterprise Features: SSO, advanced permissions, and team management
- API Ecosystem: Third-party integrations and developer marketplace
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for GPT-4 API
- Anthropic for Claude API
- Next.js Team for the amazing framework
- Vercel for hosting and deployment
- All contributors and users who make this project better
Hamody Web Project Owner & Lead Developer |
Ali Fawzi Idea Collaborator & Developer |