Skip to content

πŸ€– 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.

Notifications You must be signed in to change notification settings

prajyot-porje/DevFlow

Repository files navigation

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.


About

πŸ€– 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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published