Skip to content

Latest commit

 

History

History
140 lines (101 loc) · 8.68 KB

README.md

File metadata and controls

140 lines (101 loc) · 8.68 KB

Formspec — Work Tracking & Architecture Index

JSON-native declarative form specification. One definition renders on web, React, iOS, server — schema-constrained JSON throughout, AI-authorable directly. Built by Michael Deeb, TealWolf Consulting with Focus Consulting. Open-core: runtime under Apache-2.0, authoring under BSL 1.1.

Website · Features · Architecture · Blog


Architecture

The specification — 20 JSON Schemas, normative prose, FEL grammar — is the abstraction boundary. TypeScript ⇒ WASM, Python ⇒ PyO3. One Rust kernel (7 crates, ~47k lines, 1,533 tests), every platform.

  schemas/ (structural truth)    specs/ (behavioral truth)    FEL grammar (expression truth)
       │                                │
  ┌────┴─────────────┐         ┌───────┴──────────────┐
  │ TypeScript Engine │◄─WASM──│ Rust Shared Kernel    │──PyO3──► Python
  │  Reactive signals │         │  FEL eval, lint, map  │           │ Adaptors
  │  <formspec-render>│         │  assembler, registry  │           │ CLI/validate
  └───────────────────┘         └───────────────────────┘           └───────────

Crates: fel-core / formspec-core / formspec-eval / formspec-lint / formspec-changeset / formspec-wasm / formspec-py. TS packages: formspec-engine (L1), formspec-layout (L1), formspec-webcomponent (L2), formspec-core (L2), formspec-react (L2), formspec-assist (L2), formspec-adapters (L3). Layer fence: npm run check:deps.

Full architecture → CLAUDE.md. Stack-level context → ../VISION.md, ../thoughts/adr/TODO.md.


ADR follow-ups (code-validated 2026-05-14)

Per-ADR detail → thoughts/TODO.md. Blocked stack-level ADRs → ../thoughts/adr/TODO.md §4.

Active gaps

ADR % Remaining
0029 — Schema Parity Phase 1 ~75% 4 items in engine fixture only (not back-synced to examples/grant-application/definition.json): dataType:"uri", timing:"demand", {{expression}} interpolation, shape extensions. 6 component.json gaps: Stack.align, Stack.wrap, TextInput.inputMode, TextInput.suffix, Panel.position:left, Modal.trigger:auto. 2 constraintKind values (cardinality, shape) not exercised in submissions.
0030 — Schema Parity Phase 2 ~90% pages + regions + responsive overrides in main theme.json (exists only in theme-pdf.json).
0031 — Schema Parity Phase 3 ~65% registry.json missing from examples/grant-application/ (kitchen-sink fixture exists but incomplete: no retired status, examples arrays, mappingDslVersion, extensions). No source + static:true instance. Modal.trigger:"auto" missing.
0040 — MCP Tool Consolidation ~55% 49 actual tools (vs 28 target). outputSchema not wired (grep returns zero in formspec-mcp/). Actual tool count not updated in ADR.
0048 — i18n ~45% formatNumber() and formatDate() as callable FEL built-ins (helper functions exist but not in evaluator dispatch). Locale lint rules L101/L201/L301/L401 (zero matches in formspec-lint/). Conformance Tier 2.
0053 — WebMCP ~75% Assist draft.3: WebMCP binding tracks the 2026-09-15 draft (document.modelContext, annotations, AbortSignal lifecycle, 8-tool registration profile; no polyfill by design), compare-and-set stale-write guard on the engine's write source, value-free profile.match, capped help output, renderer marks assistant-written fields; declarative tool* root is opt-in (tool-name), not yet invokable (fs-8kpq). Missing: PostMessage/HTTP/MCPWebSocket transport adapters, conformance fixtures (fs-czl0), formspec-assist-chat package.

Blocked (design gate)

ADR Blocker