Your AI-powered creative companion for building stunning websites.
KODA.AI is a full-stack (MERN) AI website builder. Describe the site you want in plain English and KODA generates a complete, production-grade, fully responsive website using HTML, CSS, and JavaScript — ready to preview, edit, and deploy.
- 🤖 AI Website Generation — Turn a text prompt into a complete, responsive, multi-section website.
- 💬 Conversational Editing — Refine generated sites through follow-up chat messages.
- 🧠 Multiple AI Models —
Auto (Free)for everyone andDeepSeek V3unlocked for Pro/Enterprise plans, powered by OpenRouter. - 📝 In-Browser Code Editor — Tweak generated code directly with the Monaco editor.
- 👀 Live Preview — Instantly see your generated website.
- 🚀 One-Click Deploy — Publish any project to a shareable public URL with a unique slug.
- 🔐 Google Authentication — Secure sign-in via Firebase + JWT cookies.
- 💳 Credits & Billing — Plan-based credit system with Stripe checkout and webhooks.
| Plan | Price | Credits | Models |
|---|---|---|---|
| Free | ₹0 | 100 | Auto (Free) |
| Pro | ₹249 | 500 | Auto, DeepSeek V3 |
| Enterprise | ₹999 | 2200 | Auto, DeepSeek V3 |
Frontend (/client)
- React 19 + Vite 7
- Redux Toolkit (state management)
- Tailwind CSS 4
- React Router 7
- Monaco Editor
- Firebase Auth, Axios, Motion (animations)
Backend (/server)
- Node.js + Express 5
- MongoDB + Mongoose
- JWT + cookie-parser (auth)
- OpenRouter API (AI generation)
- Stripe (payments & webhooks)
KODA/
├── client/ # React + Vite frontend
│ └── src/
│ ├── pages/ # Home, Generate, Editor, Dashboard, Pricing, LiveSite
│ ├── components/ # Shared UI (e.g. LoginModal)
│ ├── redux/ # Store & user slice
│ ├── hooks/ # Custom hooks
│ └── firebase.js # Firebase config
│
└── server/ # Express backend
├── config/ # DB, OpenRouter, Stripe, plan definitions
├── controllers/ # auth, user, website, billing, stripe webhook
├── models/ # User & Website schemas
├── routes/ # API route definitions
├── middlewares/ # isAuth (JWT)
└── index.js # App entry point
- Node.js (v18+)
- A MongoDB database (local or Atlas)
- API keys for: OpenRouter, Stripe, and a Firebase project
git clone https://github.com/debabrataswainiitp/koda.git
cd kodacd server
npm installCreate a .env file inside server/:
PORT=5000
MONGODB_URL=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
OPENROUTER_API_KEY=your_openrouter_api_key
STRIPE_SECRET_KEY=your_stripe_secret_key
STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret
FRONTEND_URL=http://localhost:5173Run the server:
npm run devcd ../client
npm installCreate a .env file inside client/:
VITE_FIREBASE_API_KEY=your_firebase_api_keyNote: The backend base URL is defined as
serverUrlinclient/src/App.jsx. Update it tohttp://localhost:5000for local development.
Run the client:
npm run devThe app will be available at http://localhost:5173.
Base path: /api
| Method | Endpoint | Description |
|---|---|---|
| POST | /auth/google |
Sign in with Google |
| GET | /auth/logout |
Log out |
| Method | Endpoint | Description |
|---|---|---|
| GET | /user/me |
Get current user profile |
| Method | Endpoint | Description |
|---|---|---|
| POST | /website/generate |
Generate a new website from a prompt |
| POST | /website/update/:id |
Apply conversational changes |
| GET | /website/get-by-id/:id |
Fetch a website by ID |
| GET | /website/get-all |
List the user's websites |
| GET | /website/deploy/:id |
Deploy a website (returns URL) |
| GET | /website/get-by-slug/:slug |
Fetch a deployed site by slug |
| Method | Endpoint | Description |
|---|---|---|
| POST | /billing |
Create a Stripe checkout session |
| POST | /stripe/webhook |
Stripe webhook handler |
Client
npm run dev— Start the Vite dev servernpm run build— Build for productionnpm run preview— Preview the production buildnpm run lint— Run ESLint
Server
npm run dev— Start the server with nodemon
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the ISC License.