readied.docs
Architecture

Architecture Overview

Clean architecture with strict separation of concerns — monorepo structure, package dependencies, and data flow

Architecture Overview

Readied follows a clean architecture with strict separation of concerns.

Monorepo Structure

+ 11 more packages

16 packages organized by domain responsibility.

Key Boundaries

Data Flow

┌──────────────────────────────────────────────────────────────────┐
│                      Renderer Process                            │
│  ┌──────────┐  ┌──────────┐  ┌──────────┐  ┌──────────────┐    │
│  │ React UI │->│ TanStack │->│  Zustand  │->│   Preload    │    │
│  │          │  │  Query   │  │  Stores   │  │   Bridge     │    │
│  └──────────┘  └──────────┘  └──────────┘  └──────┬───────┘    │
└───────────────────────────────────────────────────┼─────────────┘
                                                    │ IPC
┌───────────────────────────────────────────────────┼─────────────┐
│                      Main Process                 │             │
│  ┌──────────┐  ┌──────────┐  ┌──────────┐  ┌─────┴───────┐    │
│  │  SQLite  │<-│   Core   │<-│  Plugin  │<-│    IPC      │    │
│  │ (better  │  │Operations│  │  System  │  │  Handlers   │    │
│  │ -sqlite3)│  │          │  │          │  │             │    │
│  └──────────┘  └──────────┘  └──────────┘  └─────────────┘    │
│                                    │                            │
│                              ┌─────┴───────┐                    │
│                              │  Sync Core  │                    │
│                              │  (Supabase) │                    │
│                              └─────────────┘                    │
└─────────────────────────────────────────────────────────────────┘

Security Model

RuleDescription
No nodeIntegrationRenderer is sandboxed
IPC whitelistTyped channels only
No executeSQLNo raw SQL in renderer
Preload minimalOnly necessary APIs exposed
Plugin sandboxPlugins run in isolated context

Technology Stack

LayerTechnology
RuntimeElectron
Buildelectron-vite
DatabaseSQLite (better-sqlite3)
EditorCodeMirror 6
UI StateTanStack Query + Zustand
StylingCSS Modules + CSS custom properties
SyncSupabase (via sync-core)
Monorepopnpm + turborepo