# iamgr007/slateboard architecture

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

- Interactive diagram: https://gitdiagram.com/iamgr007/slateboard
- Repository: https://github.com/iamgr007/slateboard

## Overview

Slateboard is a Rust core for a metadata-rich camera workflow: projects contain scenes, setups, and takes, with take ratings and capture metadata intended to make editor handoff easier. The CLI currently exercises project creation, metadata entry, and aggregate export; the core also exposes mobile bindings and documents sidecar JSON and SQLite persistence. Mobile apps are not yet present. Edges reflect shown calls or README statements; storage’s specific sidecar-writing path is not visible in the excerpts, so that connection is marked unverified.

Main entry points: [`core/slateboard-storage/src/lib.rs`](https://github.com/iamgr007/slateboard/blob/main/core/slateboard-storage/src/lib.rs) (Project storage), [`core/slateboard-domain/src/sidecar.rs`](https://github.com/iamgr007/slateboard/blob/main/core/slateboard-domain/src/sidecar.rs) (Take sidecar), [`core/slateboard-cli/src/main.rs`](https://github.com/iamgr007/slateboard/blob/main/core/slateboard-cli/src/main.rs) (Project CLI), [`core/slateboard-storage/src/aggregate.rs`](https://github.com/iamgr007/slateboard/blob/main/core/slateboard-storage/src/aggregate.rs) (Project aggregate)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Project workflow"]
  node_cli["Project CLI<br/>[main.rs]"]
end

subgraph group_domain["Metadata formats"]
  node_hierarchy["Project hierarchy<br/>[lib.rs]"]
  node_slate["Slate codes<br/>[slate.rs]"]
  node_sidecar["Take sidecar<br/>[sidecar.rs]"]
  node_schema["Sidecar schema<br/>[take-v0.1.json]"]
end

subgraph group_storage["Persistence"]
  node_store["Project storage<br/>[lib.rs]"]
  node_sqlite[("SQLite database")]
  node_aggregate["Project aggregate<br/>[aggregate.rs]"]
  node_projectjson["project.json"]
end

subgraph group_interfaces["Client interfaces"]
  node_ffi["UniFFI project handle<br/>[lib.rs]"]
end

node_creator(("Creator or operator"))
node_mobile(("Kotlin / Swift clients"))
node_editor(("Editor or companion"))

node_creator -->|"runs commands"| node_cli
node_cli -->|"calls operations"| node_store
node_store -->|"reads and writes"| node_sqlite
node_store -->|"uses aggregate"| node_aggregate
node_aggregate -->|"serialized as"| node_projectjson
node_store -.->|"writes sidecars"| node_sidecar
node_sidecar -->|"follows contract"| node_schema
node_hierarchy -->|"provides metadata"| node_sidecar
node_mobile -->|"uses bindings"| node_ffi
node_ffi -->|"delegates operations"| node_store
node_editor -->|"reads export"| node_projectjson

click node_cli "https://github.com/iamgr007/slateboard/blob/main/core/slateboard-cli/src/main.rs"
click node_hierarchy "https://github.com/iamgr007/slateboard/blob/main/core/slateboard-domain/src/lib.rs"
click node_slate "https://github.com/iamgr007/slateboard/blob/main/core/slateboard-domain/src/slate.rs"
click node_sidecar "https://github.com/iamgr007/slateboard/blob/main/core/slateboard-domain/src/sidecar.rs"
click node_schema "https://github.com/iamgr007/slateboard/blob/main/schema/take-v0.1.json"
click node_store "https://github.com/iamgr007/slateboard/blob/main/core/slateboard-storage/src/lib.rs"
click node_aggregate "https://github.com/iamgr007/slateboard/blob/main/core/slateboard-storage/src/aggregate.rs"
click node_ffi "https://github.com/iamgr007/slateboard/blob/main/core/slateboard-ffi/src/lib.rs"

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_cli,node_mobile toneBlue
class node_hierarchy,node_slate,node_sidecar,node_schema toneAmber
class node_store,node_sqlite,node_aggregate,node_projectjson toneMint
class node_ffi toneRose
class node_creator,node_editor toneIndigo
```

## Components

### Project workflow

- [Project CLI](https://github.com/iamgr007/slateboard/blob/main/core/slateboard-cli/src/main.rs): `core/slateboard-cli/src/main.rs`

### Metadata formats

- [Project hierarchy](https://github.com/iamgr007/slateboard/blob/main/core/slateboard-domain/src/lib.rs): `core/slateboard-domain/src/lib.rs`
- [Slate codes](https://github.com/iamgr007/slateboard/blob/main/core/slateboard-domain/src/slate.rs): `core/slateboard-domain/src/slate.rs`
- [Take sidecar](https://github.com/iamgr007/slateboard/blob/main/core/slateboard-domain/src/sidecar.rs): `core/slateboard-domain/src/sidecar.rs`
- [Sidecar schema](https://github.com/iamgr007/slateboard/blob/main/schema/take-v0.1.json): `schema/take-v0.1.json`

### Persistence

- [Project storage](https://github.com/iamgr007/slateboard/blob/main/core/slateboard-storage/src/lib.rs): `core/slateboard-storage/src/lib.rs`
- **SQLite database**
- [Project aggregate](https://github.com/iamgr007/slateboard/blob/main/core/slateboard-storage/src/aggregate.rs): `core/slateboard-storage/src/aggregate.rs`
- **project.json**

### Client interfaces

- [UniFFI project handle](https://github.com/iamgr007/slateboard/blob/main/core/slateboard-ffi/src/lib.rs): `core/slateboard-ffi/src/lib.rs`

### Other components

- **Creator or operator**
- **Kotlin / Swift clients**
- **Editor or companion**

## Connections

- Creator or operator → Project CLI: runs commands (evidence: `README.md`)
- Project CLI → Project storage: calls operations (evidence: `core/slateboard-cli/src/main.rs`)
- Project storage → SQLite database: reads and writes (evidence: `core/slateboard-storage/src/lib.rs`)
- Project storage → Project aggregate: uses aggregate (evidence: `core/slateboard-storage/src/lib.rs`)
- Project aggregate → project.json: serialized as (evidence: `core/slateboard-storage/src/aggregate.rs`)
- Project storage → Take sidecar: writes sidecars
- Take sidecar → Sidecar schema: follows contract (evidence: `core/slateboard-domain/src/sidecar.rs`)
- Project hierarchy → Take sidecar: provides metadata (evidence: `core/slateboard-domain/src/sidecar.rs`)
- Kotlin / Swift clients → UniFFI project handle: uses bindings (evidence: `README.md`)
- UniFFI project handle → Project storage: delegates operations (evidence: `core/slateboard-ffi/src/lib.rs`)
- Editor or companion → project.json: reads export
