DevFlow
š¤ DevFlow is an AI-powered code generation platform built with Next.js, TypeScript, Convex, and Gemini LLM ā featuring live code previews using WebContainers, prebuilt templates, project browsing, and a full system dashboard with authentication, account settings, and project management.
Install / Use
/learn @prajyot-porje/DevFlowREADME
DevFlow
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.
Features
- ⨠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
File Structure
.
āāā 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)
Getting Started
1. Clone the repository
git clone https://github.com/your-username/devflow.git
cd devflow
2. Install dependencies
npm install
# or
yarn
# or
pnpm install
3. Set up environment variables
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).
4. Start Convex (required for backend)
In a separate terminal, run:
npx convex dev
5. Run the development server
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 in your browser to use DevFlow.
Example Environment File
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
Deployment
The easiest way to deploy your Next.js app is with Vercel.
See Next.js deployment documentation for more details.
Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
