Skip to main content
Version: 0.8.0

Monorepo Documentation

Welcome to the project documentation! This site covers the architecture, technologies, and implementation details of our offline-first desktop application.

What We've Built​

An offline-first desktop CRM with:

  • 📱 Tauri desktop app with React frontend
  • 🔄 Real-time sync between local and cloud databases
  • 📝 Rich text editing with collaborative features
  • 🔒 Type-safe APIs with full TypeScript support

Technology Stack​

CategoryTechnologies
FrontendReact, Tauri, WatermelonDB, Lexical.js, Material UI
BackendCloudflare Workers, D1, Hono, tRPC
SyncCustom pull/push protocol, Yjs CRDT
CommunicationREST, tRPC HTTP, tRPC WebSocket

Documentation Guide​

🚀 Quick Start​

🏗️ Architecture​

🔄 Data & Sync​

📚 Reference​

Key Features​

Offline-First​

The app works completely offline using WatermelonDB (SQLite). Changes sync automatically when online.

Type-Safe End-to-End​

tRPC provides full type inference from backend to frontend without code generation.

Collaborative Editing​

Rich text fields use Yjs CRDTs for conflict-free merging across multiple users.

Multiple Communication Protocols​

Choose between REST, tRPC HTTP, or tRPC WebSocket based on your needs.