Server
Mosaic Rust backend overview
Server
The Mosaic server is built with Rust, Actix Web, and PostgreSQL.
Tech Stack
- Web Framework: Actix Web
- Database ORM: SQLx
- Database: PostgreSQL + pgvector
- Auth: JWT (access + refresh tokens)
Project Structure
server/
βββ src/ # Server source code
βββ migrations/ # SQL migrations
βββ admin-ui/ # Admin dashboard (Vite + React)API Endpoints
| Endpoint | Description |
|---|---|
/api/auth/login | User login |
/api/memos | Memo CRUD |
/api/diaries | Diary management |
/api/bots | Bot configuration |