Skip to content
← All posts
Build noteNovember 2026

Schema-driven connector UIs with React Hook Form and Zod

Generating configuration screens from a schema instead of hand-coding them.

Our workflow platform connects to many kinds of systems: databases, APIs, cloud services and file storage. Each connector needs a configuration screen where someone enters connection details and authenticates. I architected the Connector Configuration Framework so those screens are generated from a schema instead of being hand-coded one by one.

The problem with hand-built forms

A hand-built configuration form for every connector looks fine at first. Then the number of connectors grows. Each form gets its own validation, its own error messages and its own quirks, and fixing a bug in one form does nothing for the others. Adding a connector means building a new screen before anyone can use it.

One schema, one source of truth

In the framework, each connector describes its configuration as a schema. Zod defines what each field is, which fields are required and what valid values look like. React Hook Form renders the form and manages its state.

Because the same Zod schema drives the screen, the validation and the TypeScript types, they can never drift apart. If a field is required, the form shows it as required, the validation rejects an empty value, and the code that reads the configuration knows the field is there.

What the framework handles

Building the shared pieces once means every connector gets them for free:

  • Rendering. Text, secrets, choices and nested settings come from field types in the schema.
  • Validation. Errors are reported consistently across every connector, from the same rules.
  • Authentication. Connectors that need credentials share one approach to entering and checking them.
  • Performance. React Hook Form keeps re-renders to a minimum, which matters on long forms with many fields.

Reuse is the point

Schema-driven forms are one half of a larger idea. On the platform, connectors and subflows are reusable building blocks: configure a connection once and use it across workflows. Together they reduced the time to build an integration by about 70%.

What it unlocked

Adding a connector became mostly a matter of describing it rather than building UI for it. The pattern also shaped how I approach front ends in general now: when many screens share a shape, describe the shape once and let the framework do the repetitive work. Everyone gets consistent behaviour, and fixes land in one place.