SPB Git

Repository Public License

08-renderer-logic-data.md 1.7 KB

# 8. Renderer, logic, and data runtime

Renderer. A schema-driven SwiftUI renderer over registered native components: nested layout, responsive resizing, themes, state binding, action routing, keyboard navigation, VoiceOver, focus order, localization readiness. The preview is the real app running, never a screenshot.

Theme system. Semantic colors, spacing scale, typography scale, radius, elevation, animation timing; dark, light, and high contrast. Ship a polished default; allow full customization.

Events and actions. Events: click, change, submit, selection, data updated, timer fired, app launched, external event. Actions: navigate, set state, validate, query data, transform, create/update/delete record, show notification, export file, run approved custom logic (per ADR 0003), invoke a permissioned service.

Reactivity. Explicit dependency graph, change propagation with cycle detection, debouncing, cancellation. State scopes: component, page, app, project.

Data. Per-app SQLite store with schema, migrations, transactions, crash-safe writes, CSV import/export.

Visual editor (Design mode). Component palette, drag-and-drop canvas, hierarchy tree, properties inspector with live edits, layout guides and snapping, spacing and alignment, theme tokens, multiselect, copy/paste, undo/redo. Edits such as changing a color or moving a panel are deterministic patches to the blueprint and make no model call. The prompt composer stays reachable from every mode.

Product modes (all views over the same blueprint): Create, Design, Logic, Code, Preview, Publish, Evolve, Library, Connections, Monitor. V1 needs Create, Preview, Evolve, Design, Publish, Library, and a basic Monitor (jobs, logs, token usage and cost).

Files main
Menu

Theme