A workflow automation platform inspired by n8n and Zapier, built as a learning project to explore modern web development tools and practices.
- Visual Workflow Editor: Drag-and-drop interface for building automation workflows using React Flow
- Node-Based Architecture: Modular nodes for triggers, actions, and integrations
- Authentication: Secure authentication with Better Auth
- Background Processing: Event-driven workflows with Inngest
- Payment Integration: Subscription management with Polar
- Monitoring: Error tracking and performance monitoring with Sentry
- Database: PostgreSQL with Prisma ORM
- Real-time Updates: Live workflow execution updates
- Frontend: Next.js 16, React 19, TypeScript, Tailwind CSS
- UI Components: Radix UI, Lucide Icons, Shadcn UI
- State Management: Jotai, TanStack Query
- Backend: Next.js API Routes, tRPC
- Database: Prisma with PostgreSQL
- Authentication: Better Auth
- Workflow Engine: Inngest
- Payments: Polar
- Monitoring: Sentry
- Code Quality: Biome
-
Clone the repository
git clone <repository-url> cd n8n-clone
-
Install dependencies
npm install
-
Set up environment variables Create a
.env.localfile and add your configuration:DATABASE_URL="your-database-url" BETTER_AUTH_SECRET="your-key" BETTER_AUTH_URL="your-key" GITHUB_CLIENT_ID="your-key" GITHUB_CLIENT_SECRET="your-key" GOOGLE_CLIENT_ID="your-key" GOOGLE_CLIENT_SECRET="your-key" GOOGLE_GENERATIVE_AI_API_KEY="your-key" POLAR_ACCESS_TOKEN="your-polar-token" POLAR_SUCCESS_URL="your-polar-token" SENTRY_AUTH_TOKEN="your-key" NEXT_PUBLIC_APP_URL="your-key" NGROK_URL="your-key" (optional if you use ngrok) ENCRYPTION_KEY="your-key"
-
Set up the database
npx prisma migrate dev npx prisma generate
-
Run the development server
npm run dev
Or run all services:
npm run dev:all
- Open http://localhost:3000 in your browser
- Sign up or log in
- Complete upgrade process (can use random name and number if it's in sandbox mode)
- Create a new workflow
- Drag nodes from the sidebar to build your automation
- Connect nodes and configure their properties
- Save and execute your workflow
n8n-clone/
├── src/
│ ├── app/ # Next.js app router
│ ├── components/ # Reusable UI components
│ ├── features/ # Feature-based modules
│ │ ├── auth/ # Authentication
│ │ ├── workflows/ # Workflow management
│ │ ├── executions/ # Workflow execution
│ │ └── credentials/ # API credentials
│ ├── lib/ # Utilities and configurations
│ ├── trpc/ # tRPC setup
│ └── inngest/ # Background jobs
├── prisma/ # Database schema and migrations
└── public/ # Static assets
This project is private and for educational purposes only.
This project is a clone built for learning purposes. It is not affiliated with n8n or Zapier.