Frontend web application for Cerberus — an intelligent token-optimization decision layer and multi-tier LLM routing platform. Built with a restrained editorial dark void design system, interactive 3D pipeline visualization, and real-time observability.
The application consists of three primary surfaces:
- Interactive 3D Pipeline Hero: Real-time Spline 3D scene representing the 4 core pipeline stages (Query Ingestion, Semantic Cache, Context Classifier, and Model Router).
- Editorial Dark Void Palette: Strict aesthetic (
#0A0A0Avoid,#F5F4EFfog,#D4A854gold accent) designed for technical clarity without gratuitous decorative noise. - Architecture & Interactive Breakdown:
- Step-by-step visual pipeline (
Semantic Cache→Context Classifier→Model Router). - Side-by-side Cache Hit vs. Router Miss comparison cards with
<CacheTag />status indicators. - Hub-and-spoke service isolation explanation.
- Step-by-step visual pipeline (
- Two-Pane Layout: Slim NavRail (
w-48) with navigation, conversation history drawer, and link to the telemetry dashboard. - Content-First Thread: Zero assistant message bubbles — assistant responses render as plain high-contrast typography (
max-w-[75%]) with cache-tier badges. - Authentic Pipeline Feedback: Real-time simulated streaming and
<CacheTag />status badges (RAM Exact Hit,DB Semantic Hit,LLM Generation Miss). - Pre-seeded Prompts: Clickable suggested prompts demonstrating sub-millisecond RAM retrieval, vector cache hits, and model router dispatch.
- Efficiency Bento Grid: Real-time metrics tracking Cache Hit Rate (68.4%), Cumulative Tokens Saved (140k+), Cost Reduction (73.8%), and Mean Turn Latency (184ms).
- Model Cascade Distribution: Visual distribution breakdown across Small (Groq), Medium (Flash), and Large (Frontier) model tiers.
- Request Audit Stream: Filterable log table (
All,RAM,DB,LLM) with an expandable JSON payload trace inspector.
- Framework: React 19 + TypeScript
- Bundler & Dev Server: Vite 7
- Styling: Tailwind CSS 3
- 3D Runtime: @splinetool/react-spline
- Icons: lucide-react
- Routing: React Router 7
| Token | Class | Hex Value | Purpose |
|---|---|---|---|
| Void | bg-void |
#0A0A0A |
Main page background |
| Surface | bg-surface |
#111111 |
Card containers, user message bubbles |
| Fog | text-fog |
#F5F4EF |
Primary high-contrast text |
| Mist | text-mist |
#8A8A85 |
Secondary metadata, labels, placeholders |
| Line | border-line |
rgba(245, 244, 239, 0.12) |
Hairline structural borders |
| Gold | text-gold / bg-gold |
#D4A854 |
Primary brand accent & active state CTA |
src/
├── components/
│ ├── chat/ # NavRail, Composer, ChatThread, Message, ChatHeader, EmptyState
│ ├── landing/ # HeroScene (Spline), LandingNav, HowItWorks, Architecture, Example
│ └── ui/ # CacheTag, status badges, UI primitives
├── context/
│ └── ThemeContext.tsx # Global theme provider (Void dark default)
├── pages/
│ ├── LandingPage.tsx # Single-scroll editorial landing page (/)
│ ├── ChatPage.tsx # Dedicated chat surface (/chat)
│ └── DashboardPage.tsx # Observability & telemetry dashboard (/dashboard)
├── services/
│ └── pipelineEngine.ts # Client-side inference simulation & cache-seed logic
├── types/
│ └── telemetry.ts # TypeScript interfaces & pipeline contracts
├── App.tsx # Root route declarations
├── main.tsx # Application entrypoint
└── index.css # Tailwind base styles & typography imports
- Node.js:
18.xor higher - npm:
9.xor higher
-
Install dependencies:
npm install
-
Start local dev server:
npm run dev
Open http://localhost:5173 in your browser.
-
Typecheck and build for production:
npm run build