Skip to content

jmandel/formtastic

Repository files navigation

Formtastic Studio

Greenfield Bun + TypeScript app for authoring evidence-grounded patient intake forms (FHIR R4 Questionnaire + SDC). Local CLI coding agents (Claude Code / Copilot CLI / Codex CLI) run sandboxed under bubblewrap and stage suggestions via a typed edit-op contract.

See plan.md for the design brief and phased build plan.

Layout

src/
  index.html          # HTML import — Bun bundles this and its <script> graph
  server.ts           # Bun.serve entry — HTML route + future API + SSE
  client/             # React UI (TSX)
  server/             # API routes, store, agent runner, adapters
  shared/             # FHIR types, extension URLs, prototype-fixture conversion
  styles/             # foundations/components/app CSS (locked design)

prototype/            # Static React prototype that is the visual reference
                      # (kept untouched; ported to TSX in P2)

data/                 # Per-form state — created at runtime, gitignored
fhir/                 # Profiles + canonical instrument fixtures (P2a)
skills/               # Markdown prompts the CLI agents are launched with (P5)

Develop

bun install
bun dev                 # http://localhost:5173 — bundled app with HMR
bun run prototype       # http://localhost:5174 — static prototype reference
bun run typecheck

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors