Architecture

Three layers. Zero lock-in.

Every component is open, inspectable, and independently replaceable. Swap the database, the logic layer, or the UI without touching the others. This is how you stay ahead of an AI landscape that changes weekly.

01 Data Layer

PostgreSQL + Supabase

Your single source of truth. Every piece of business data lives in one PostgreSQL database managed by Supabase. Row Level Security ensures multi-tenant isolation. Real-time subscriptions push changes to connected clients instantly.

Database PostgreSQL 15 via Supabase
Auth Supabase Auth with JWT + RLS
Multi-tenancy Organisation-scoped with Row Level Security
Real-time Supabase Realtime for live updates
Storage Supabase Storage for files & attachments
Vectors pgvector for RAG embeddings
Federation Foreign Data Wrappers for external DBs
Engine n8n (self-hosted)
Trigger types Webhook, Cron, Database, Email
Integrations 400+ pre-built nodes
AI orchestration LangChain nodes + custom functions
Error handling Visual error branches + retry logic
Monitoring Execution history with full replay
02 Logic Layer

n8n Automation

Every piece of business logic is a visual workflow. Email processing, knowledge extraction, API integrations, scheduled reports, AI pipelines. You can see every decision branch, test every node, and debug with full execution history.

03 Interface Layer

SvelteKit + Agentic AI Engine

SvelteKit applications handle the UI: AI Chat, Data Studio, and a full vibe coding environment. 40+ Edge Functions handle agentic orchestration, LLM streaming, tool execution, and RAG retrieval. Frontier AI capabilities from every provider, leveraged through a unified orchestration layer.

Framework SvelteKit 2 with Svelte 5
AI Orchestration Agentic execution with self-correction
LLM Support Claude, GPT, Gemini, open-source
Edge Functions 40+ Supabase Deno functions
Vibe Coding Full container environment
Deployment Docker Compose on any VPS
SSL Caddy reverse proxy with auto-HTTPS

Deployment is simple

Docker Compose on any VPS. From a clean Ubuntu server to a fully running platform.

terminal
# Clone and configure
$ git clone your-repo && cd your-repo
$ cp .env.example .env
$ nano .env  # Add your API keys

# Launch everything
$ docker compose up -d

# That's it. Services running:
 SvelteKit Chat App     → chat.yourdomain.com
 SvelteKit Data Studio  → app.yourdomain.com
 Supabase (PostgreSQL)  → db.yourdomain.com
 n8n Automation         → auto.yourdomain.com
 Caddy (SSL)            → reverse proxy + auto-HTTPS

Built to absorb whatever ships next

AI capabilities are evolving weekly. The separated architecture means you can adopt new models, new orchestration techniques, and new interfaces without rebuilding your platform.

Swap Any Layer

Replace the database, logic layer, or UI independently. Move from Supabase to bare Postgres. Switch from n8n to a different automation engine. Rebuild the UI in React. Each layer is a clean boundary.

New Models, Day One

When a new frontier model drops -- from Anthropic, OpenAI, Google, or anyone else -- it's available immediately. No waiting for a vendor to add support. No migration required.

Agentic Orchestration

The platform leverages the same orchestration techniques behind Claude Code and CoWork. As these techniques improve, the platform improves with them.

No Vendor Dependency

If any single AI provider changes pricing, quality, or terms, you switch to another. Your data, your workflows, and your users are unaffected.

Your data never leaves your server

Self-hosted means self-controlled. The only external calls are to LLM APIs for AI responses, and those are your own API keys on your own accounts.

Row Level Security

PostgreSQL RLS ensures every query is scoped to the authenticated user's organisation. Multi-tenant by default.

JWT Authentication

Supabase Auth handles user sessions with JWT tokens. Server-side session validation on every request.

Your API Keys

LLM API keys are yours. Token usage is tracked per user and per organisation. You control the spend.

No Telemetry

No usage data sent anywhere. No analytics scripts. No tracking. The code is yours to audit.

Want to look under the hood?

Book a technical deep-dive. We'll walk through the codebase, architecture decisions, and deployment options.