One build, fourteen apps: see the showcase

Generative UI

Generative UI your users can trust.

Generative UI means the interface changes because someone described what they want. TweakLane brings it into your shipped app: the user types a sentence, sees a preview, and taps Apply. Your catalog and your locks decide what is possible.

Request accessRead how AI works

What generative UI means in an app

In a generative UI, a model produces part of the interface instead of a designer drawing every state in advance. The idea is simple. The hard part is control: a model that can draw anything can also hide the price, drop the legal links or invent text your team never approved.

TweakLane answers that with a narrow definition. The model never writes screens from nothing. It proposes a change to the layout, theme, navigation or named designs your app already has, using only the components, text and values you registered. The result is a generative interface that behaves like the rest of your product.

From one sentence to a previewed change

In edit mode the tray gets a "Describe the change" field. The user writes a request in their own language. The hosted backend asks the model for a change, validates the answer against your catalog and locks, and returns a proposal. The SDK draws it as a preview with a list of what changes. The user taps Apply or Discard. Apply is validated again on the device, saved, synced to the user's other devices and recorded as one undo step.

What the AI can change

Three routes cover the whole app. One screen: layout, theme, options and style, and on a user's own screen it may place portable parts and generic pieces. The navigation: entries, menus and the start screen. Named designs: create, switch, rename, duplicate, delete, restore and undo. The model behind it is Claude by Anthropic.

Why a generated change cannot break your app

Everything the model returns is treated as untrusted input and passes the same checks as a manual edit:

  • A size cap, then a JSON object of at most 50 operations. Unknown fields are dropped.
  • No URL-like strings that are not already in the layout or your catalog.
  • AI policy: no new components on your own screens, none removed, swaps only within the alternatives you declared, props only set to values the app already uses.
  • The full server validator: catalog, locks, structure and limits. Any failure returns a rejection with its reasons and nothing is applied.
  • Proposals carry only your app's own text. Any string that is not in your catalog, the current document or the theme is refused.

Locks cannot be talked around. A request to hide the prices or drop Restore Purchases comes back rejected or as a safe substitute with a note, because locks are read only from your catalog and default documents. See Locks and Catalog.

Dynamic UI generation, on your catalog

Dynamic UI generation means the interface is assembled at runtime instead of fixed at build time. In TweakLane the assembly happens per user, from one sentence, and every result is a layout made of the components you registered. Nothing is generated as code, so there is nothing to review after the fact: a proposal is data, validated on the server and again on the device before it is applied.

Safety screening before the model sees a request

Every request is screened first. Deterministic checks normalise the text, strip invisible characters, limit it to 1 to 500 characters and refuse requests for the system prompt, keys or secrets and rule-override phrases. A classifier then reads the request and the names users typed into the screen, and returns allowed or a category such as violence, scam, off-task or injection. A refused request answers HTTP 422 and the SDK shows "TweakLane can only change how this app looks and is arranged." in the user's language.

Before the first request leaves the device, a sheet names the provider, says what is sent and asks for permission. Consent is stored per user on the device and on the server, and the server refuses prompts without it. App Review guideline 5.1.2(i) asks for exactly this disclosure and permission. Per-user and per-app limits apply by the minute, hour and day, users with repeated refused requests are paused, and owners can block AI for a single user from the dashboard. Every request is logged for the whole team to read, with prompt retention you set. The details are in How AI works.

FAQ

Generative UI,
question by question

The full flow, with every check, is in How AI works.

What is generative UI?

Generative UI is an interface that a model produces or changes in response to a request, rather than one fully drawn in advance. In TweakLane the request is a sentence from the user and the output is a validated change to their own copy of the app's layout, theme or navigation.

Can the AI add components I did not write?

No. On your own screens it cannot add or remove components. It can reorder, hide, resize, swap within the alternatives you declared and set values your app already uses. On a user's own screen it can place portable parts and generic pieces you allowed.

What if the model returns something invalid or unsafe?

The answer is rejected with reasons and nothing is applied. Requests are screened before the model sees them, answers are checked after, and a classifier that does not answer within 8 seconds ends the request instead of letting it through unscreened.

Does the user have to agree to AI first?

Yes. AI is off until you switch it on, and each user is asked for consent before the first request. Consent is tied to the provider name and a consent version, and users can turn AI off at any time.

Which language can users write in?

Their own. The request is free text and the SDK messages for refusals and limits are shown in the user's language.

Is generative UI the same as dynamic UI generation?

They describe the same idea from two sides. Generative UI is what the user sees: a change that appears because they described it. Dynamic UI generation is how it is built: the layout is assembled at runtime from your registered components, per user, instead of fixed at build time. For the non-AI side, see server-driven UI.

Where can I see it working?

The AI designer section shows real prompts and the designs they produced in Memory Tin, a real app running TweakLane, and the designs gallery shows what people made from one build.

Give every user the app
they describe.

One sentence from your user, one validated design in your app. SDKs, hosted backend, AI and dashboard, all in one.

MIT-licensed SDKs · Read the docs