The System

The Anatomy

How she's built — the organs beneath the skin

5 min read13 sections

Beneath Chloe's animated exterior is a carefully designed system. Here's how all the pieces connect — from the Live2D renderer in your browser to the Solana blockchain millions of miles away.

System Overview

Hover over each node to see what it does. The connections show how data flows through the system.

cursormessagescoderequestquotesRPCpromptexpressions
👤
You
🎭
Live2D
💬
Chat AI
⌨️
Code Editor
API Server
🔄
Jupiter
💎
Solana
🧠
AI Engine
hover to explore

The Layers

CHLOE operates in three distinct layers:

🖥️Client Layer

Everything in your browser — Live2D rendering, chat UI, code editor, wallet connection. This is what you see and touch.

Server Layer

Next.js API routes running on the backend. They proxy requests to external services so your API keys stay safe and CORS doesn't block you.

🌐External Layer

The outside world — Solana blockchain for transactions, Jupiter for swap routing, AI models for conversation intelligence.

How Data Flows

All data moves in one direction. Here's what happens when you do something:

01

You Act

Type a message, click swap, move your mouse — any interaction starts here.

02

Client Processes

Your browser handles immediate reactions (Live2D eye tracking, editor rendering) and sends requests to the API when external data is needed.

03

Server Proxies

The API server forwards your request to the right external service — Jupiter for swaps, AI for chat, Solana RPC for balances.

04

Response Returns

Data flows back the same way: external service → server → client → you see the result.

Space Architecture

Each page in CHLOE is independently structured but shares common infrastructure:

SpaceClient ComponentsAPI Dependencies
AgentLive2D, Chat, Terminal, AMM SimulatorChat API, Price API
DEXSwap Form, Portfolio, Price Ticker, Wallet AssistantJupiter API, Solana RPC, Price API
CoderMonaco Editor, Live Preview, File Tree, ChatCode Generation API
DocsInteractive renderer, TOC, SearchNone (all static)
LabsExperiment cards, Expression testerNone
end of document