Architecture
Mosaic system architecture overview
Architecture
Mosaic follows a client-server monorepo structure.
Directory Structure
Mosaic/
βββ mobile/ # Expo React Native app
βββ server-go/ # Go backend (production)
βββ server/ # Rust backend (reference implementation) + shared admin UI
βββ packages/ # Shared TypeScript packages
βββ docsite/ # This documentationTechnology Stack
| Layer | Technology |
|---|---|
| Mobile | Expo (React Native) + TypeScript |
| Server | Go + chi + pgx |
| Reference server | Rust + Actix Web + SQLx |
| Database | PostgreSQL + pgvector |
| Package Manager | Bun |
| Build Orchestration | Turborepo |
The Go server in server-go/ is the deployed backend. It is a drop-in
replacement for the Rust server: same schema, same storage/ layout, same HTTP
contract, and the same admin UI build.