A workflow automation platform that allows users to create automated workflows (Zaps) by connecting different services and triggers.
- Email-based signup/signin
- OTP verification
- Forgot password flow
- JWT-based authentication with refresh tokens
- Cookie-based session management
- Visual workflow editor using React Flow
- Drag-and-drop interface
- Real-time validation
- Save and edit workflows
- Built with AI SDK (@ai-sdk/react, @ai-sdk/openai)
- Natural language workflow creation
- Smart suggestions for actions
- Context-aware help
- Markdown rendering with syntax highlighting
- Custom email templates
- OTP delivery
- Transactional emails
- Email verification
- Next.js 15.4 - React framework with App Router
- React 19.1 - UI library
- TypeScript - Type safety
- Tailwind CSS - Styling
- AI SDK (@ai-sdk/react, @ai-sdk/openai) - AI-powered chat interface
- @xyflow/react - Interactive node-based workflow editor
- Radix UI - Accessible UI primitives
- Zustand - State management
- React Hook Form with Zod - Form handling and validation
- React Markdown - Markdown rendering with syntax highlighting
- Express 5.1 - Node.js web framework
- TypeScript - Type safety
- Prisma - Type-safe ORM with PostgreSQL
- JWT - Authentication with jsonwebtoken
- bcrypt - Password hashing
- Cookie Parser - HTTP cookie parsing
- CORS - Cross-origin resource sharing
- Turborepo - Monorepo build system
- Node.js >=18 - Runtime environment
- npm 10.9.2 - Package manager
- ESLint & Prettier - Code quality and formatting
This is a monorepo managed with Turborepo:
apps/
├── frontend/ # Next.js web application
├── primary-backend/ # Main API server
├── processor/ # Event processor service
├── worker/ # Background job worker
└── hooks/ # Shared React hooks
packages/
├── database/ # Prisma schema and migrations
├── http-status/ # HTTP status codes and messages
├── mailer-config/ # Email templates and config
├── zod-schemas/ # Shared validation schemas
└── ui/ # Shared UI components
POST /api/user/signup # Create new account
POST /api/user/signin # Login
POST /api/user/signout # Logout
POST /api/user/refresh-token # Refresh access token
POST /api/user/forgot-password # Generate reset OTP
POST /api/user/verify-email # Email verification
POST /api/zap # Create new zap
GET /api/zap # List all zaps
GET /api/zap/:zapId # Get single zap
DELETE /api/zap/:zapId # Delete zap
GET /api/trigger/available # List available triggers
GET /api/action/available # List available actions
-
Form Builder
- Custom form creation
- Form analytics
- Multiple form templates
-
Advanced AI Actions
- Text analysis
- Image processing
- Natural language processing
- Custom model integration
-
Event Processing
- Kafka integration
- Transaction Outbox pattern
- Async job processing
- Event replay capability
- Clone the repository
git clone https://github.com/Atif-27/AutoChain- Install dependencies
npm install- Set up environment variables
cp .env.example .env- Start development servers
npm run devMIT
Built with ❤️ using modern web technologies


