# openmaker-dev/openmaker architecture

> Architecture diagram of the GitHub repository openmaker-dev/openmaker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/openmaker-dev/openmaker
- Repository: https://github.com/openmaker-dev/openmaker

## Overview

OpenMaker is a Rust replacement for Claris FileMaker: desktop and mobile clients work with local or hosted .fmp12 files, while OpenMaker Server hosts files for clients. The main workflow is opening a file, rendering its layouts, finding and editing records, and saving changes; calculation, scripting, and SQL engines support both client and server. The repository also includes an administration console and an agent-oriented authoring service. Relationships below rely on README statements and the provided SOURCE INDEX; unsampled implementation details are not inferred.

Main entry points: [`crates/om-gui/src/app.rs`](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-gui/src/app.rs) (Desktop client), [`crates/om-server/src/server.rs`](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-server/src/server.rs) (OpenMaker Server), [`crates/om-gui/src/worker.rs`](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-gui/src/worker.rs) (Provider worker), [`crates/om-provider/src/lib.rs`](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-provider/src/lib.rs) (Data providers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client apps"]
  node_desktop["Desktop client<br/>[app.rs]"]
  node_open["File opening<br/>[open_file.rs]"]
  node_worker["Provider worker<br/>[worker.rs]"]
  node_layout["Layout rendering<br/>[document.rs]"]
  node_mobile["OpenMaker Go<br/>[lib.rs]"]
  node_mobileui["Mobile launch UI<br/>[MainActivity.kt]"]
end

subgraph group_engines["File and runtime engines"]
  node_provider["Data providers<br/>[lib.rs]"]
  node_session["File session<br/>[session.rs]"]
  node_calc["Calculation engine<br/>[lib.rs]"]
  node_scripts["Script runtime<br/>[mod.rs]"]
  node_query["Find and SQL<br/>[exec.rs]"]
  node_filedata["File data engine<br/>[mod.rs]"]
  node_store[("Persistent storage<br/>[store.rs]")]
end

subgraph group_hosting["Server hosting"]
  node_protocol["Client protocol<br/>[lib.rs]"]
  node_server["OpenMaker Server<br/>[server.rs]"]
end

subgraph group_operations["Operations and authoring"]
  node_admin["Admin console<br/>[app.rs]"]
  node_adminviews["Admin views and API<br/>[mod.rs]"]
  node_backend["Admin backend<br/>[backend.rs]"]
  node_author["Authoring service<br/>[service.rs]"]
  node_mcp["Authoring entry point<br/>[main.rs]"]
end

node_user(("FileMaker user"))

node_user -->|"uses"| node_desktop
node_desktop -->|"opens files"| node_open
node_desktop -->|"dispatches requests"| node_worker
node_worker -->|"requests data"| node_provider
node_provider -.->|"uses session"| node_session
node_desktop -->|"renders layouts"| node_layout
node_desktop -->|"evaluates calculations"| node_calc
node_desktop -->|"runs scripts"| node_scripts
node_desktop -->|"finds and sorts"| node_query
node_server -->|"hosts files"| node_filedata
node_filedata -.->|"persists data"| node_store
node_server -->|"serves clients"| node_protocol
node_server -->|"runs calculations"| node_calc
node_server -->|"runs scripts"| node_scripts
node_server -->|"runs SQL"| node_query
node_user -->|"uses"| node_mobile
node_mobileui -->|"launches client"| node_mobile
node_admin -->|"routes views"| node_adminviews
node_adminviews -->|"reads and changes"| node_backend
node_mcp -->|"starts service"| node_author

click node_desktop "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-gui/src/app.rs"
click node_open "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-gui/src/open_file.rs"
click node_worker "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-gui/src/worker.rs"
click node_provider "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-provider/src/lib.rs"
click node_session "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-data/src/host/session.rs"
click node_layout "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-gui/src/document.rs"
click node_calc "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-calc/src/lib.rs"
click node_scripts "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-scripts/src/runtime/mod.rs"
click node_query "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-query/src/exec.rs"
click node_filedata "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-server/src/engine/mod.rs"
click node_store "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-store/src/store.rs"
click node_protocol "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-protocol/src/lib.rs"
click node_server "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-server/src/server.rs"
click node_admin "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-admin/src/app.rs"
click node_adminviews "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-admin/src/views/mod.rs"
click node_backend "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-admin/src/backend.rs"
click node_author "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-author/src/service.rs"
click node_mcp "https://github.com/openmaker-dev/openmaker/blob/main/crates/om-author/src/main.rs"
click node_mobile "https://github.com/openmaker-dev/openmaker/blob/main/mobile/core/src/lib.rs"
click node_mobileui "https://github.com/openmaker-dev/openmaker/blob/main/mobile/android/src/main/java/dev/openmaker/go/MainActivity.kt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_desktop,node_open,node_worker,node_layout,node_mobile,node_mobileui,node_user toneBlue
class node_provider,node_session,node_calc,node_scripts,node_query,node_filedata,node_store toneAmber
class node_protocol,node_server toneMint
class node_admin,node_adminviews,node_backend,node_author,node_mcp toneRose
```

## Components

### Client apps

- [Desktop client](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-gui/src/app.rs): `crates/om-gui/src/app.rs`
- [File opening](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-gui/src/open_file.rs): `crates/om-gui/src/open_file.rs`
- [Provider worker](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-gui/src/worker.rs): `crates/om-gui/src/worker.rs`
- [Layout rendering](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-gui/src/document.rs): `crates/om-gui/src/document.rs`
- [OpenMaker Go](https://github.com/openmaker-dev/openmaker/blob/main/mobile/core/src/lib.rs): `mobile/core/src/lib.rs`
- [Mobile launch UI](https://github.com/openmaker-dev/openmaker/blob/main/mobile/android/src/main/java/dev/openmaker/go/MainActivity.kt): `mobile/android/src/main/java/dev/openmaker/go/MainActivity.kt`

### File and runtime engines

- [Data providers](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-provider/src/lib.rs): `crates/om-provider/src/lib.rs`
- [File session](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-data/src/host/session.rs): `crates/om-data/src/host/session.rs`
- [Calculation engine](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-calc/src/lib.rs): `crates/om-calc/src/lib.rs`
- [Script runtime](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-scripts/src/runtime/mod.rs): `crates/om-scripts/src/runtime/mod.rs`
- [Find and SQL](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-query/src/exec.rs): `crates/om-query/src/exec.rs`
- [File data engine](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-server/src/engine/mod.rs): `crates/om-server/src/engine/mod.rs`
- [Persistent storage](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-store/src/store.rs): `crates/om-store/src/store.rs`

### Server hosting

- [Client protocol](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-protocol/src/lib.rs): `crates/om-protocol/src/lib.rs`
- [OpenMaker Server](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-server/src/server.rs): `crates/om-server/src/server.rs`

### Operations and authoring

- [Admin console](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-admin/src/app.rs): `crates/om-admin/src/app.rs`
- [Admin views and API](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-admin/src/views/mod.rs): `crates/om-admin/src/views/mod.rs`
- [Admin backend](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-admin/src/backend.rs): `crates/om-admin/src/backend.rs`
- [Authoring service](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-author/src/service.rs): `crates/om-author/src/service.rs`
- [Authoring entry point](https://github.com/openmaker-dev/openmaker/blob/main/crates/om-author/src/main.rs): `crates/om-author/src/main.rs`

### Other components

- **FileMaker user**

## Connections

- FileMaker user → Desktop client: uses (evidence: `README.md`)
- Desktop client → File opening: opens files (evidence: `crates/om-gui/src/app.rs`)
- Desktop client → Provider worker: dispatches requests (evidence: `crates/om-gui/src/app.rs`)
- Provider worker → Data providers: requests data (evidence: `README.md`)
- Data providers → File session: uses session
- Desktop client → Layout rendering: renders layouts (evidence: `README.md`)
- Desktop client → Calculation engine: evaluates calculations (evidence: `README.md`)
- Desktop client → Script runtime: runs scripts (evidence: `README.md`)
- Desktop client → Find and SQL: finds and sorts (evidence: `README.md`)
- OpenMaker Server → File data engine: hosts files (evidence: `crates/om-server/src/server.rs`)
- File data engine → Persistent storage: persists data
- OpenMaker Server → Client protocol: serves clients (evidence: `README.md`)
- OpenMaker Server → Calculation engine: runs calculations (evidence: `README.md`)
- OpenMaker Server → Script runtime: runs scripts (evidence: `README.md`)
- OpenMaker Server → Find and SQL: runs SQL (evidence: `README.md`)
- FileMaker user → OpenMaker Go: uses (evidence: `README.md`)
- Mobile launch UI → OpenMaker Go: launches client (evidence: `README.md`)
- Admin console → Admin views and API: routes views (evidence: `crates/om-admin/src/app.rs`)
- Admin views and API → Admin backend: reads and changes (evidence: `crates/om-admin/src/views/mod.rs`)
- Authoring entry point → Authoring service: starts service (evidence: `crates/om-author/src/service.rs`)
