Skip to main content
Version: 0.8.0

Architecture Overview

This document provides a high-level view of the system architecture.

System Context Diagram​

High-Level Architecture​

Technology Stack​

LayerTechnologyPurpose
FrontendReact 19UI Components
Tauri 2Desktop runtime (Rust)
WatermelonDBOffline-first local database
Lexical.jsRich text editor
Material UIComponent library
BackendCloudflare WorkersServerless runtime
Cloudflare D1SQLite database
HonoREST API framework
tRPCType-safe RPC
SyncCustom ProtocolPull/Push sync
YjsCRDT for text collaboration
CommunicationHTTPREST & tRPC queries
WebSocketReal-time tRPC

Data Flow​

Key Concepts​

Offline-First​

The app works completely offline. All data is stored locally in WatermelonDB (SQLite). When online, changes sync bidirectionally with the server.

Type Safety​

tRPC provides end-to-end type safety. Types defined in the Worker are automatically available in the Tauri app via workspace linking.

CRDT Collaboration​

Rich text fields use Yjs (CRDT) for conflict-free merging. Multiple users can edit the same document, and changes are merged on the server.

Next Steps​