gmz.dev / docs / architecture
High-level view of current tools and systems.
draft; meant to be roughly right, not exhaustively complete.

Architecture overview

This document is a working description of how current tools fit together across front-ends, internal engines, and storage. It is intentionally general: specific edge cases and formulas live in per-system docs.

Top-level picture

Rough layers:

front-end (Next.js / SwiftUI)
        ↓
internal engine (logic / pipeline)
        ↓
storage layer (SQLite / Firestore / file export)

Front-ends

Web

iOS

Engines

Engines are where reasoning happens. They take plain structured inputs and return plain structured outputs, without knowing anything about UI or platform.

Examples

Rule of thumb: if something could be useful in more than one app, it should become an engine.

Storage

Current assumptions:

Cross-cutting ideas

Error handling

Versioning

Where to go next