Better UI. Fewer retries.
Functional Minimalism is a design harness for AI-built interfaces.
Repeated redesigns cost time and tokens. Functional Minimalism puts a good design in place by default using useful design defaults, design systems, and accepted heuristics. The goal is a better first design concept with fewer corrective prompts.
Functional minimalism is our practical philosophy, inspired by Dieter Rams's principles. Reduce the effort needed to understand and act. Preserve labels, meaningful content, prices, permissions and recovery. Each product keeps its own character.
A local design harness with versioned design packs, composition patterns, screen contracts, scoped design memory, and source/rendered-evidence checks. Your coding agent performs the design, browser work and repair; Functional Minimalism supplies context and checks. The harness CLI itself makes no model calls, uses no credentials, and has no npm dependencies or telemetry. The optional prompt lab calls a host-configured free connector when available, or the provider a visitor connects.
v0.3.0 includes a live prompt lab, an approved Atelier component gallery, four recorded model runs, three working fixture flows, and one-command first-screen setup. Studio is an explicit reference system, not Alps. Nothing is published to npm.
Source · Contribute · Run a paired experiment
The public demo is hosted on GitHub Pages and opens without an account. Its route continues into /demo/. The recorded runs need no key. A host can deploy the included free connector so visitors also need no key; otherwise live generation uses a visitor key from OpenAI, Anthropic or OpenRouter. The source ZIP is also available from the workshop and offline preview. The separate Higgsfield draft is not part of this public release.
Open the demo workshop, choose Discover, Approve, or Organize, then select Get screen brief. Inspect, copy, or download the brief. It includes actual component mappings, essential information, and required states.
To try memory, accept a correction in Design memory, switch screens, and get another brief. Project decisions carry over; screen-only decisions do not. Starter exports use the paths installed by setup ../my-app. They do not write memory into your local project.
Clone the repository, or download and extract functional-minimalism-source.zip. From the functional-minimalism folder, with Node 18.16 or newer:
node bin/functional-minimalism.mjs setup ../my-app --template discovery --client both
node bin/functional-minimalism.mjs doctor --project ../my-appChoose discovery, invoice or project; agent adapters are codex, claude or both. Replace ../my-app with your new project's path.
Setup installs the Studio reference components, pinned pack, workflow, design rules, Rams reference, empty decision memory, a project-scoped screen contract, and .design-harness/START_HERE.md. It appends bounded blocks to agent instructions, preserving existing content. Existing harness installations and conflicting component files are refused.
Open the target project in your coding agent and ask:
Build the screen described in
.design-harness/START_HERE.md. Follow.design-harness/WORKFLOW.md. Render and exercise the result, repair findings, and report any verification limits.
The setup creates context and reusable components, not a running application. The host must load its instruction files; doctor cannot observe whether it did. Review the starter contract before building a real product.
The architecture guide explains how task scope, component adapters, compact briefs, rendered evidence and accepted memory work together. Start with the usable object and action; justify features before generating explanatory copy.
Map your actual tokens, components and source paths into a pack using the format guide. Component files must already exist in the target project.
node bin/functional-minimalism.mjs init ../existing-app --pack ./my-pack.json --client both
node bin/functional-minimalism.mjs brief ./my-screen.json --project ../existing-appDo not install Studio over an established design system. Custom packs keep their own palette, density, typography and behavior. A normalized token-map importer exists; live Figma/Code Connect import and an Alps pack are pending actual integration and source material.
node bin/functional-minimalism.mjs inspect-react --project ../existing-app
node bin/functional-minimalism.mjs connect-react --project ../existing-app --ui mui
node bin/functional-minimalism.mjs brief ./my-screen.json --compact --project ../existing-appUse this after init --pack with the application's own component mappings. Choose the adapter detected in that application; mui is an example. react-adapters lists all 13 adapters: nine UI systems and four supporting libraries. Connections preserve declared versions, reject ambiguous selections and detect relevant dependency/config drift. They provide implementation context, not installed components or certified runtime compatibility. No packages are installed or executed. See the adapter boundaries.
For new screens, a surface plan records primary, secondary and omitted features with task reasons, plus control names and text/icon choices. essentialByState keeps required information visible through confirmation and other states. The appliance contract demonstrates the planning format; it is not a running timer app.
node bin/functional-minimalism.mjs remember --project ../my-app \
--scope project --target my-app \
--rule "Keep unfamiliar actions visibly labelled." \
--reason "Explicit user feedback on navigation." --accept
node bin/functional-minimalism.mjs brief --compact --project ../my-appUse the projectId returned by setup as the target. Without --accept, a decision stays proposed and is excluded from briefs. Accepted memory supports global (*), pack, project, and screen (project-id/screen-id) scopes. --supersedes <id> replaces a decision only within the same scope and target. Regenerate the brief after changing a contract or memory; START_HERE.md is an initial snapshot, not a live file.
npm run build
npm run devOpen http://127.0.0.1:4178/demo/. The page starts with a prefilled invoice prompt and four real model results recorded on 18 November 2026. Each card is one model: Before is its own first draft; After is the same model with the Functional Minimalism brief, the Atelier visual system, the invoice fixture and the approved component gallery. Use the shared Before/After control to flip all four cards, or select a card to inspect that run at full size. The provenance line separates recorded output from a live run.
Write your own prompt and generate four designs, one per model. If the host configured the free connector, no key is needed. Otherwise connect an OpenRouter key; keys stay in this browser and are sent only to the provider. No real payment occurs. Set up gives the exact commands and downloadable source.
The approved components live in gallery/templates.json, a manually reviewed MIT dataset rendered at http://127.0.0.1:4178/gallery/. The review loop is deliberate: a generated design becomes a proposal, a person extracts and approves components, and the gallery is versioned. Nothing is trained automatically from an unapproved output.
BYOK is friction. The lab supports a host-configured free connector:
OPENCODE_API_KEY=... npm run devThe local server exposes a free-model allowlist at /api/lab; the browser detects it and shows Free local connector. The token stays in Node, never in the page.
For the public GitHub Pages demo, deploy the included Cloudflare Worker once and point demo/lab-config.json at it:
cd worker
npx wrangler secret put OPENCODE_TOKEN
npx wrangler deployVisitors then generate without a key. The Worker only accepts the free models, caps output, rate-limits by IP in its isolate, and keeps the token secret. See the connector guide. If no connector is configured, the four recorded designs remain and the visitor can use their own key.
Setup emits a compact brief that retains the task, source mappings, component rules and accepted decisions. Use brief --compact to regenerate it. npm run measure:context reports exact UTF-8 byte counts for full and compact example briefs. Bytes are not model tokens.
The harness adds context; the intended saving comes from avoiding repeated redesigns. No model benchmark or time-saving percentage is claimed. Follow the paired experiment to compare real usage and time under equal acceptance criteria.
The prompt lab sends two calls per model: a first draft with no harness context, then a harness pass with the compact brief, task guidance, visual system and approved gallery. Four models means eight calls. Free models are rate-limited and slower; a card reports its own failure instead of substituting a fake image. This is a demonstration, not a controlled comparison.
npm run benchmark:lab measures the archived v0 and current v1 runs at 1280 and 390px, writes the benchmark and docs/benchmark.json. The v1 after pass averaged 96.2/100 against 77.7 for v0 on the transparent craft heuristic, with 4 of 4 models improving. The heuristic rewards text restraint, one visible primary action, hierarchy, cohesion, whitespace, responsive integrity, facts and contrast. It is not a beauty model; see the benchmark limits.
npm test
npm run build
npm run check
npm run test:browserThe browser runner requires a local Chrome installation and permission to launch it. Set CHROME_BIN if needed. It tests the workshop at 390px and 1440px and writes evidence to artifacts/. It does not download a browser. See the verification record for actual results and restrictions.
For your own screen, use src/browser.mjs to collect each contract state at each viewport and create the documented evidence envelope, then run:
node bin/functional-minimalism.mjs audit screen.json evidence.json --project ../my-appChecks cover missing essential information, unnamed/clipped controls, overflow, annotated component/variant mismatches, missing primary actions, and state/viewport coverage. Small targets, competing actions and explanatory copy produce review findings. No word reduction can compensate for lost task information.
check --css path.css is lexical CSS analysis, not a full parser. Source checks validate paths and recognizable exports, not actual runtime component identity. DOM accessible names use a heuristic, not the full accessible-name algorithm. Caller-supplied evidence is not authenticated. These checks do not certify accessibility, aesthetics or usability.
Pack drift requires review and explicit pin. Memory is inspectable JSON, not model training. There is no autonomous repair engine or cross-model study.
Read workflow, rules, brand, audit, commands, status and Hardwire reference. The legacy design-harness.mjs entry point remains compatible. MIT license.