GolemUI

The Declarative Form Engine

React + React Hook Form

76 Lines
8 Branches
  • Schema serialization (forms as JSON)
  • A11y, keyboard, ARIA out of the box
  • i18n adapter — bring your own library
35 Lines
0 Branches
  • Schema serialization (forms as JSON)
  • A11y, keyboard, ARIA out of the box
  • i18n adapter — bring your own library

…and more (keep scrolling ↓)

Numbers from a basic 9-field signup form rendered in each stack — same widgets, same conditionals, written idiomatically. Cross-field rules excluded (not first-class everywhere).

The form we're comparing

Source code

The New Paradigm for building forms.

Walk through the form below to see how a few lines of declarative schema produce a fully reactive form — one feature unlocks at each step, with the code that drives it.

Save token$. Breeze through review$.

{gui.} is small enough for your agent to emit cleanly — and small enough for your team to review at a glance. Same code, both jobs.

React + React Hook Form

0 tokens

76 lines of form code · tokenized with cl100k_base

GolemUI

0 tokens

35 lines · −41% on the same form

Forms compose. Schemas serialize.

Click a fragment to add it to the form. Watch the schema rebuild on the right — flip between gui.* (the developer DSL) and JSON (the same schema serialized). Same shape, two surfaces. Serialize it when you need to — persist in a DB, ship from a CMS, generate with an LLM — or just write it inline. The buttons below show the save / restore round-trip.

Your forms can live anywhere.

Because the schema is data, not code, your form definition can travel where code can't. Most form libraries can't leave the codebase. GolemUI schemas can.

Persist

Save forms in a database.

Store form definitions in any data store. Version them. Diff them. Roll them back. The same way you treat content.

Ship

Serve forms from a CMS.

Marketers and ops teams can publish, update, and A/B test forms — no deploys, no engineering tickets.

Generate

Generate forms with an LLM.

Ask a model for a form schema and render it instantly. Auto-build flows from a prompt, a doc, or a database column list.

Your brand. Your rules.

Pick a theme and watch the form re-skin instantly. GolemUI ships sensible defaults — your brand layers on top by overriding native CSS variables, no rebuild, no compile step, no glue code. Author a complete custom theme or just nudge a token.

Built for speed.

Tiny library, sub-millisecond render, perfect Lighthouse. The forms above run on the same engine — these are its numbers.

Library Weight

0 kb

gzipped

LCP

0 ms

Largest Contentful Paint

Lighthouse

0

Perfect Score

A forms engine, total freedom.

Click any field's pill to swap its source — our built-ins, Material, Shoelace, or your own components. Because GolemUI is the engine, not a widget set, every field can come from anywhere: ship our defaults, drop in a third-party library, or wire up your own. Mix and match in the same form.

Three things every form needs. Already done.

Accessibility, internationalization, validation — wired into the engine. Three categories that quietly eat months of project time, all handled before you write a single field.

Accessibility

Accessible by default.

WCAG 2.1 AA, full keyboard nav, semantic HTML, ARIA managed for you. Errors wired to aria-describedby. Screen-reader friendly out of the gate.

Internationalization

Global by design.

Bring your own i18n library — i18next, Lingui, custom — through a simple adapter. Translate labels, hints, validators, dates. Switch languages live. Automatic RTL.

Validation

Bulletproof data.

Schema-driven, @standard-schema/spec compliant. Built-in rules plus your own custom validators. Localized error messages with smart timing that respects user interaction.

Ready to Start Building?

Stop fighting with form state and logic. Start defining smarter, serializable forms in minutes with GolemUI.