DevFlow is an AI-powered code generation platform for building, editing, and previewing full-stack React (Vite) projects. It features a modern workspace, project templates, collaborative coding, and a real-time backend powered by Convex. Instantly generate production-ready code with Tailwind CSS, shadcn/ui, and more. DevFlow uses WebContainers to run and preview projects directly in your browser.
- β¨ AI-powered code generation (Gemini API) for React (Vite) projects
- ποΈ Project templates (Todo App, Notes App, Expense Tracker, Gallery, etc.)
- π» Live code editor with file explorer and instant preview (powered by WebContainers)
- π¨ Tailwind CSS and shadcn/ui integration for modern UI
- π₯ User authentication with Clerk
- βοΈ Real-time backend and project storage with Convex
- π¦ Download generated projects as a ZIP
- π Light/dark theme support
.
βββ app/ # Next.js app directory (routes, pages, API)
βββ components/ # UI and custom components (editor, loaders, sidebar, etc.)
β βββ custom/
β βββ ui/
βββ configs/ # AI model and configuration files
βββ context/ # React context providers
βββ convex/ # Convex backend functions and schema
βββ data/ # Project templates, static data, and types
βββ hooks/ # Custom React hooks
βββ lib/ # Utility functions and authentication logic
βββ public/ # Static assets
βββ services/ # WebContainer and backend services
βββ .env.local # Environment variables (not committed)
βββ .gitignore
βββ components.json
βββ eslint.config.mjs
βββ middleware.ts
βββ next-env.d.ts
βββ next.config.ts
βββ package.json
βββ postcss.config.mjs
βββ README.md
βββ tsconfig.json
βββ ... (other config/build files)
git clone https://github.com/your-username/devflow.git
cd devflow
npm install
# or
yarn
# or
pnpm install
Copy the example environment file and fill in your own keys:
cp .env.local.example .env.local
Edit .env.local
with your API keys and URLs (see below for details).
In a separate terminal, run:
npx convex dev
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 in your browser to use DevFlow.
Create a .env.local.example
file like this:
// Gemini API (for AI code generation)
GEMINI_API_KEY=your_gemini_api_key
// Clerk (authentication)
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
// Convex (real-time backend)
CONVEX_DEPLOYMENT=your_convex_deployment
CONVEX_DEPLOYMENT_KEY=your_convex_deployment_key
NEXT_PUBLIC_CONVEX_URL=https://your-convex-url.convex.cloud
The easiest way to deploy your Next.js app is with Vercel.
See Next.js deployment documentation for more details.
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.