PromptAI is a cutting-edge web application that revolutionizes how developers and content creators interact with AI models. Built with modern web technologies and featuring a sleek, professional interface inspired by industry-leading design systems, PromptAI transforms basic prompts into sophisticated, results-driven instructions.
- π AI-Powered Enhancement - Intelligent prompt optimization using advanced language models
- π¨ Modern UI/UX - Clean, intuitive interface with smooth animations and interactions
- π± Fully Responsive - Seamless experience across desktop, tablet, and mobile devices
- β‘ Real-time Processing - Instant prompt enhancement with live feedback
- π§ Multiple Enhancement Modes - Professional, Creative, SEO, and Concise options
- π One-Click Copy - Easy clipboard integration for enhanced prompts
- π Dark Theme - Professional dark interface optimized for extended use
- Professional Mode: Transform casual prompts into business-ready, formal instructions
- Creative Mode: Add imaginative flair and engaging language to boost creativity
- SEO Optimized: Enhance prompts with search-friendly keywords and structure
- Concise Mode: Streamline verbose prompts into clear, direct instructions
- Interactive Chat Interface: Modern conversational UI with typing indicators
- Real-time Enhancement: Live processing with visual feedback and progress indicators
- Smart Suggestions: Quick-start examples and prompt templates
- Copy & Share: One-click copying with visual confirmation
- Responsive Design: Optimized for all screen sizes and devices
- Type-Safe Development: Full TypeScript implementation for robust code
- Modern React Patterns: Hooks, context, and functional components
- Performance Optimized: Code splitting, lazy loading, and optimized bundles
- Accessibility First: WCAG compliant with keyboard navigation support
| Category | Technology | Version | Purpose |
|---|---|---|---|
| Framework | Next.js | 15.5.2 | React framework with App Router |
| Language | TypeScript | 5.9.2 | Type safety and developer experience |
| Styling | Tailwind CSS | 3.4.17 | Utility-first CSS framework |
| UI Library | React | 19.1.0 | Component-based user interface |
| Icons | Lucide React | 0.542.0 | Beautiful, customizable icons |
| Package Manager | pnpm | Latest | Fast, efficient dependency management |
Ensure you have the following installed:
- Node.js 18.0 or higher
- pnpm (recommended) or npm/yarn
- Git for version control
- Clone the repository
git clone https://github.com/ainedushimire/promptai.git
cd promptai- Install dependencies
pnpm install
# or
npm install- Start development server
pnpm dev
# or
npm run dev- Open in browser Navigate to http://localhost:3000
Create a .env.local file in the root directory:
# Add your environment variables here
NEXT_PUBLIC_APP_URL=http://localhost:3000prompt-enhancer/
βββ π public/ # Static assets
β βββ dev2.jpg # Hero section image
β βββ mockup.jpg # Features section mockup
β βββ *.svg # Icon assets
βββ οΏ½ src/
β βββ π app/ # Next.js App Router
β β βββ globals.css # Global styles & Tailwind
β β βββ layout.tsx # Root layout component
β β βββ page.tsx # Home page
β βββ π components/ # React components
β β βββ Navigation.tsx # Header navigation
β β βββ HeroSection.tsx # Landing hero section
β β βββ FeaturesSection.tsx # Features showcase
β β βββ PromptEnhancer.tsx # Main enhancement tool
β β βββ TestimonialsSection.tsx # Customer testimonials
β β βββ HowItWorksSection.tsx # Process explanation
β β βββ CTASection.tsx # Call-to-action
β β βββ CopyButton.tsx # Clipboard functionality
β β βββ LoadingSpinner.tsx # Loading animations
β βββ π lib/ # Utility functions
β β βββ enhance.ts # AI enhancement logic
β βββ π types/ # TypeScript definitions
β βββ puter.d.ts # Puter.js type definitions
βββ π tailwind.config.cjs # Tailwind configuration
βββ π next.config.ts # Next.js configuration
βββ π tsconfig.json # TypeScript configuration
βββ π package.json # Dependencies & scripts
- Navigate to the enhancement section
- Enter your original prompt in the text area
- Select your preferred enhancement mode
- Click "Enhance" to process with AI
- Copy the enhanced result to your clipboard
| Mode | Best For | Example Use Case |
|---|---|---|
| Professional | Business communications | Email templates, proposals, documentation |
| Creative | Content creation | Marketing copy, storytelling, social media |
| SEO | Web content | Blog posts, product descriptions, meta tags |
| Concise | Quick instructions | API documentation, user guides, summaries |
- Quick Examples: Use pre-built prompt templates
- Real-time Preview: See enhancements as you type
- History: Access previously enhanced prompts
- Export Options: Download or share enhanced prompts
/* Update global styles in src/app/globals.css */
.midday-card {
@apply bg-[#0A0A0A] border border-[#1A1A1A] rounded-xl;
}
/* Customize component styles */
.custom-button {
@apply midday-btn-primary hover:scale-105 transition-transform;
}// In src/lib/enhance.ts
export type EnhancementMode = 'professional' | 'creative' | 'seo' | 'concise' | 'custom';
const enhancementPrompts = {
custom: "Transform this prompt with your custom logic...",
// Add your custom enhancement logic
};Each component is designed for easy customization:
- Modify props and styling independently
- Add new sections by creating new components
- Update content without affecting functionality
# Install Vercel CLI
npm i -g vercel
# Deploy to Vercel
vercel --prod# Build for production
pnpm build
# Start production server
pnpm startFROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["npm", "start"]| Command | Description |
|---|---|
pnpm dev |
Start development server with hot reload |
pnpm build |
Build optimized production bundle |
pnpm start |
Start production server |
pnpm lint |
Run ESLint for code quality |
pnpm type-check |
Run TypeScript compiler check |
# Run unit tests
pnpm test
# Run tests in watch mode
pnpm test:watch
# Generate coverage report
pnpm test:coverageWe welcome contributions from the community! Here's how to get started:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow the existing code style and conventions
- Add tests for new features
- Update documentation as needed
- Ensure all tests pass before submitting
- Use TypeScript for all new code
- Follow React best practices and hooks patterns
- Use Tailwind CSS for styling
- Maintain component modularity and reusability
- Lighthouse Score: 95+ across all metrics
- Bundle Size: < 200KB gzipped
- First Contentful Paint: < 1.5s
- Time to Interactive: < 3s
- Input sanitization and validation
- XSS protection with React's built-in safeguards
- CSRF protection via Next.js security headers
- Environment variable protection
This project is licensed under the MIT License - see the LICENSE file for details.
Aine Dushimire
- Email: ainedushimire@gmail.com
- GitHub: @ainedushimire
- LinkedIn: Aine Dushimire
- Design Inspiration: Midday.ai for the clean, professional aesthetic
- Icons: Lucide React for beautiful, consistent iconography
- AI Integration: Puter.js for powerful AI capabilities
- Community: Thanks to all contributors and users who make this projer
- Multi-language Support - Internationalization for global users
- Advanced AI Models - Integration with GPT-4, Claude, and other models
- Prompt Templates - Pre-built templates for common use cases
- Team Collaboration - Shared workspaces and prompt libraries
- Analytics Dashboard - Usage insights and performance metrics
- API Integration - RESTful API for third-party integrations
- Mobile App - Native iOS and Android applications
Built with β€οΈ by Aine Dushimire
β Star this repo β’ π Report Bug β’ π‘ Request Feature