Skip to main content

Frontend

Backend

Database and Storage

There is no ORM. All database access uses raw SQL with parameterized queries through the pg driver, organized in a repository pattern.

AI and Machine Learning

Async Processing

Testing

Code Quality

Infrastructure and DevOps

Service Architecture

Web App

Port 3000 — Next.js 15 frontend with React 19, Tailwind CSS, Shadcn/ui

API Gateway

Port 4000 — Fastify with CORS, Helmet, rate limiting, JWT verify middleware

Auth Service

Port 4001 — JWT auth, org management, RBAC, platform config, email (Resend)

Bot Service

Port 4002 — LangChain chat, OpenRouter models, RAG retrieval, billing

Realtime Audio

Port 4003 — ElevenLabs voice cloning, LiveKit WebRTC, Whisper STT

Knowledge Service

Port 4005 — RAG pipeline, content connectors, embeddings, knowledge graph

Key Libraries

Model Selection

Brainstormer V2 supports 300+ AI models via OpenRouter, auto-synced every 60 minutes:

Embedding Strategy

Brainstormer V2 uses Gemini Embedding 2 (gemini-embedding-exp-03-07) for all embeddings, with native multimodal embedding support across text, images, video, and audio content at 3072 dimensions.