Skip to content

hamodywe/devprompter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DevPrompter πŸš€

DevPrompter Logo

🎯 AI-Powered Prompt Engineering Platform

Transform your project ideas into optimized AI prompts with intelligent question generation and multi-AI enhancement

DevPrompter - AI-Powered Prompt Engineering Platform

Next.js React TypeScript Node.js PostgreSQL AI Providers

Features β€’ Demo β€’ Quick Start β€’ Documentation β€’ Contributing

🌐 Web Platform Coming Soon! | πŸ’° Save 40% on AI Tokens | ⚑ 10x Faster Development


🌟 What is DevPrompter?

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.

🎯 Core Innovation

  • 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

✨ Features

🧠 Intelligent Question Engine

  • 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

🎨 AI-Enhanced Prompt Creation

  • 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

πŸ“Š 15 Project Types Supported

  • 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

πŸš€ Advanced AI Integration

  • 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%

πŸ“€ Export & Integration

  • 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

🎬 Demo

🌐 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!


πŸš€ Quick Start

Prerequisites

  • Node.js 20+ and npm
  • PostgreSQL 15+
  • (Optional) AI API Keys for enhanced features

Installation

  1. Clone the repository
git clone https://github.com/hamodywe/devprompter.git
cd devprompter
  1. 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
  1. Frontend Setup
cd frontend
npm install
npm run dev
  1. Access the application

Environment Variables

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

πŸ“– Usage

Basic Workflow

  1. 🎯 Select Project Type

    • Choose from 15 available project types
    • Each type has tailored questions and optimizations
  2. πŸ“ Answer Questions

    • Fill out the intelligent questionnaire
    • Questions adapt based on your previous answers
    • Real-time validation ensures quality input
  3. πŸ€– AI Enhancement

    • Multiple AI providers optimize your prompt
    • Quality scoring ensures 85%+ effectiveness
    • Real-time streaming shows the enhancement process
  4. πŸ“€ 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

πŸ’° Why DevPrompter Saves You Money

  • 🎯 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

Advanced Features

  • 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

πŸ—οΈ Architecture

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
Loading

Tech Stack

  • 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

πŸ“š Documentation

API Documentation

Project Types

GET /api/project-types
GET /api/project-types/:id
GET /api/project-types/:id/questions

Generate Prompt

POST /api/projects/:typeId/generate
Content-Type: application/json

{
  "answers": {
    "projectName": "My API",
    "framework": "node-express",
    "database": "postgresql"
  },
  "options": {
    "format": "detailed",
    "aiProvider": "openai"
  }
}

AI Enhancement

POST /api/ai/enhance
POST /api/ai/score-quality
POST /api/ai/stream-generation

Configuration Guide

πŸ”§ Advanced Configuration

AI Providers Setup

  1. OpenAI: Get API key from OpenAI Platform
  2. Anthropic: Get API key from Anthropic Console
  3. Add to .env: Set OPENAI_API_KEY and ANTHROPIC_API_KEY

Database Setup

  1. PostgreSQL: Install and create database
  2. Prisma: Run migrations with npx prisma migrate dev
  3. Seed Data: Run npm run db:seed for project types

Production Deployment

  • Frontend: Deploy to Vercel/Netlify
  • Backend: Deploy to Railway/Heroku
  • Database: Use PostgreSQL on AWS RDS/Supabase

πŸ§ͺ Development

Project Structure

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

Contributing Workflow

  1. Fork the repository
  2. Create feature branch: git checkout -b feature/amazing-feature
  3. Make your changes: Follow the coding standards
  4. Add tests: Ensure good test coverage
  5. Commit changes: Use conventional commits
  6. Push to branch: git push origin feature/amazing-feature
  7. Open Pull Request: Describe your changes

Development Commands

# 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 server

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

How to Contribute

  • πŸ› Bug Reports: Open an issue
  • πŸ’‘ Feature Requests: Open an issue
  • πŸ“ Documentation: Help improve our docs
  • πŸ”§ Code: Submit pull requests

Contributors


πŸ“ˆ Roadmap

🎯 Current (v1.0)

  • 15 project types with intelligent questions
  • Multi-AI enhancement pipeline
  • Real-time streaming and quality scoring
  • Multi-stage prompt generation
  • Beautiful, responsive UI

πŸš€ Next (v1.1) - Coming Soon

  • 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

🌟 Future (v2.0) - Vision

  • 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

πŸ“Š Stats

Repobeats analytics

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • 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

πŸ‘¨β€πŸ’» Authors

Hamody Web
Hamody Web

Project Owner & Lead Developer
Ali Fawzi
Ali Fawzi

Idea Collaborator & Developer

⭐ Star this repo if DevPrompter helps you build better AI prompts!

GitHub stars Tweet

Made with ❀️ for the developer community

About

Smart AI prompt generator for developers building apps or solving coding problems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published