A full-stack AI Workflow Builder inspired by Weavy.
Create, connect, and execute visual AI pipelines with support for:
- 🧠 LLM processing
- 🖼 Image cropping
- 🎬 Video frame extraction
- 📊 Workflow run history
- 🔐 Authentication
- ⚡ Real-time node execution status
Built using modern production-grade technologies.
- Drag-and-drop nodes
- Connect nodes visually
- Directed Acyclic Graph (DAG) validation
- Real-time execution state (idle → running → success/error)
- LLM Node (text + image support)
- Image Crop Node
- Video Frame Extraction Node (FFmpeg powered via Trigger.dev)
- Server-side execution
- Node-by-node execution tracking
- Topological sorting
- Background run processing
- Live polling updates
- Per-workflow run history
- Node-level output replay
- Status tracking
- Clerk-based authentication
- User-specific workflows
- Protected API routes
- Supabase PostgreSQL
- Prisma ORM (v7)
- WorkflowRun & NodeRun tracking
- Zustand (global workflow state)
- Zod (input validation)
- Fully compatible with Vercel
- Prisma Accelerate supported
- Serverless-safe architecture
| Layer | Technology |
|---|---|
| Frontend | Next.js 14 (App Router) |
| UI | React + TailwindCSS |
| Graph Engine | React Flow |
| Backend | Next.js API Routes |
| Auth | Clerk |
| Database | Supabase PostgreSQL |
| ORM | Prisma v7 |
| Background Tasks | Trigger.dev |
| Media Processing | FFmpeg |
| Media Saving | Transloadit |
| State Management | Zustand |
| Validation | Zod |
| Deployment | Vercel |
- User builds workflow visually
- Workflow auto-saves
- On Run:
- WorkflowRun created
- Nodes execute in DAG order
- NodeRun created for each node
- Status updated in real-time
- UI polls run-status API
- Node borders update live
- Outputs stored in database
- History available for replay
git clone https://github.com/yourusername/weavy-clone.git
cd weavy-clonenpm installCreate .env:
GOOGLE_API_KEY=
TRIGGER_SECRET_KEY=
NODE_ENV=development
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_AFTER_SIGN_OUT_URL=/sign-in
NEXT_PUBLIC_TRANSLOADIT_TEMPLATE_ID=
NEXT_PUBLIC_TRANSLOADIT_KEY=
TRANSLOADIT_SECRET=
DATABASE_URL=npx prisma generatenpm run devIt is optional because if you use development api then
npx trigger.dev devapp/
├── dashboard/
├── api/
├── run-workflow/
├── run-status/
components/
trigger/
prisma/
lib/
store/ (Zustand)
✔ Visual Workflow Builder ✔ Node-based execution ✔ DAG validation ✔ AI integration ✔ Image + Video processing ✔ Auth system ✔ Database storage ✔ Run history ✔ Real-time UI updates ✔ Production deployment
• Auto Save on change • Workflow templates • Drag-and-drop sidebar • Execution logs panel • Multi-user collaboration • Performance optimization • Better mobile UI
Built with ❤️ by Samarth Gupta