Developer guide Overview
Developer guide
How Archipelego is built, how to run it locally and how to change it.
On this page
This guide is for developers who run Archipelego from source, change it, or add to it. It assumes you know TypeScript, React and Node.
The stack
- The client is React 19 with TypeScript, built with Vite 8. It lives in
app/. - The server is plain Node with
wsand Yjs. It lives inserver/. - Real-time sync uses the y-websocket protocol. The browser also keeps a local copy in IndexedDB.
- AI calls go through a small router. Claude uses the official Anthropic SDK. Every other provider uses its OpenAI-compatible
/chat/completionsendpoint with streaming. - The look comes from the Archipelego design system in
design-system/. The app loads it and never copies it.
Pages in this guide
Overview:
- Architecture: the client, the sync server, the HTTP API, the router, the vault and the library.
- Repository layout: what each folder holds.
- Running locally: commands, ports and AI credentials for development.
Internals:
- Data model: the shared Yjs document and the portable canvas file.
- Sync server: the y-websocket compatible room server.
- LLM router: the model catalog, the router and how to add a provider.
- Architect protocol:
@architect,[[id]]references and Explain. - Rich chat UI: A2UI surfaces and MCP Apps in the chat.
- Library format: reference architecture entries and how they are built.
Design system:
- Design system workflow: tokens, the bundle, previews and Claude Design artifacts.
Contributing:
- Testing: what to check before you send a change.
- Contributing: the workflow and where to change what.
- Code style: the conventions the code follows.
Related guides
- The user guide explains every feature from the point of view of a workshop.
- The admin guide covers installation, configuration, AI keys and security.