Build guide
How this was built
The honest version. What the brief actually asked, what runs where, and how to stand the whole thing up yourself in under a minute.
The thesis
The NexCell brief is a reasoning task: eleven prompts about how you would design and build a dashboard for watching live AI conversations. Code was not required, and most candidates answer with a one to two page document.
We did both. We answered all eleven prompts in a senior voice, and we built the dashboard they describe as a working product, so every claim in the reasoning has a live element you can click into. The name is the argument: a glass box is the opposite of a black box.
The stack
/backend that implements the exact REST + WebSocket contract. Runnable, not deployed.pnpm test. RTL, MSW and Playwright are the planned UI-layer checks.Three data modes
The same UI runs against three sources, labelled honestly. It codes against the ConversationSource interface, so switching modes changes nothing in the components.
Simulation
A seeded engine drives 240 conversations client-side and streams replies token by token. Zero cost, no key, no backend, always works. This is what the deployed demo runs.
Live AI
Bring your own Groq or OpenRouter key. The key is stored only in your browser and sent straight to the provider, never to our server. Real AI text, streamed over SSE.
Reference backend
The FastAPI + WebSocket app in /backend. Run it locally to exercise the real REST + WS contract: seq, idempotency, takeover, resume replay.
The honest Vercel note
Why the deployed demo simulates
Vercel has no persistent WebSocket server on any plan. Serverless and edge functions are request-scoped; there is no long-lived process to hold socket state. A dashboard whose whole point is a live push stream cannot run its socket layer there, so the deployed site runs the simulation client-side. The WebSocket design is real and lives in /backend and on the architecture page.
This limitation does not touch the live-AI path. That path is browser to provider directly, so it needs no server of ours whether the site is deployed or running on your machine.
Zero cost
No paid APIs. No accounts required to use the demo. The default simulation runs on nothing but the browser; live AI is optional and uses your own key on a free model tier.
Run it yourself
The frontend needs only the two commands. The reference backend is optional and stands up on its own.
pnpm installpnpm devcd backendpython -m venv .venvpip install -r requirements.txtuvicorn app.main:app --reload --port 8000