Overview
Kaireon is a single Next.js application that serves both the web UI and REST API routes. This monolithic architecture simplifies deployment while maintaining clear module boundaries internally.System Architecture
Key Components
| Component | Technology | Purpose |
|---|---|---|
| Frontend | React 18, Tailwind CSS, React Query | Platform UI with dark theme |
| API | Next.js API Routes | RESTful endpoints under /api/v1/ |
| Database | PostgreSQL via Prisma 7 | All persistent state |
| Cache | Redis (Upstash) | Enrichment data caching, rate limiting |
| Flow Editor | React Flow (@xyflow/react) | Visual pipeline and journey editors |
| AI Assistant | Vercel AI SDK, multi-provider | In-app AI chat with 40+ tools |
| Auth | NextAuth.js | Session-based authentication with RBAC |
Deployment
Production runs on AWS App Runner with Supabase (PostgreSQL) and Upstash (Redis). The platform is available atplayground.kaireonai.com.
Docker images are pushed to Amazon ECR and tagged with the git SHA.