An advanced, full-stack web application that uses Gemini AI API to help developers write, fix, and understand code with ease.
- Code Generator - Generate complete code snippets in selected languages by describing the task in natural language
- Bug Fixing Assistant - Automatically detect and fix bugs in user-submitted code using Gemini's smart analysis
- Code Explainer - Understand unfamiliar code with AI-powered natural language explanations
- AI Chat Assistant - Chat with Gemini like a programming partner
- Prompt History - View all past queries and AI responses, stored locally
- Theme Switcher - Toggle between professional dark mode and clean light mode
- Smart Prompt System - Automatically structure and enhance user input for better accuracy
- Export Feature - Download generated code or explanations as files
- Frontend: React 18, TypeScript, TailwindCSS, Monaco Editor
- Backend: Hono, TypeScript
- AI: Gemini Pro API
- Storage: Local storage for history, SQLite for backend data
- Extras: File export, notifications, responsive design
- Set up your Gemini API key in environment variables as
GEMINI_API_KEY
- The app will be available at the HTTP endpoint
- Start coding with AI assistance!
āāā backend/
ā āāā index.ts # Main Hono server
ā āāā routes/
ā ā āāā gemini.ts # Gemini API integration
ā ā āāā static.ts # Static file serving
ā āāā database/
ā āāā queries.ts # Database operations
āāā frontend/
ā āāā index.html # Main HTML template
ā āāā index.tsx # React entry point
ā āāā components/ # React components
ā āāā styles/
āāā shared/
ā āāā types.ts # Shared TypeScript types
āāā README.md
GEMINI_API_KEY - Your Google Gemini API key (required)
Navigate to the app and start using the various AI-powered coding features:
- Generate code by describing what you need
- Fix bugs by pasting problematic code
- Get explanations for complex code snippets
- Chat with the AI for coding help
- Export your results and view your history