What server-driven UI means
In a server-driven UI the app ships a set of components, and a document from a server says which of them appear on a screen and in what order. Change the document and the screen changes, with no new app build. The server decides what the user sees.
TweakLane keeps the mechanism and moves the decision. A screen's layout is a JSON document stored per user, so the person using the app decides how it is arranged, and the hosted backend carries that choice from device to device.
Dynamic UI without downloaded code
A dynamic UI is one that changes after the app is installed. In TweakLane that change is always data. A layout document holds ids, keys and values from your catalog: no code, no expressions, no URLs. The SDK draws it only with components your app compiled in and registered, so every feature is already in the binary you submitted for review. See App Review for how this relates to App Store guideline 2.5.2 and Google Play's device and network abuse policy.
How a screen is drawn
- You register components in a catalog: a stable id, a builder, a props schema, the alternatives a component may be swapped for and a lock level.
- You provide a default document per screen. It is the screen as you ship it and the fallback for every failure.
- The engine reads the user's saved layout, validates it and draws it. A structural or lock failure renders your default document.
- Layouts use stacks, grids, scrolling sections, lists, forms and pagers. Users move, hide, resize, swap and restyle parts within what you allow.
Validation on the device and on the server
Every stored or received document passes the same order of checks: field types, schema version, screen id, each component against the catalog, size hints, structure, locks from your default document and limits of 1 to 500 nodes and 64 KB. On the server a document with any issue is refused with HTTP 422 and the list of issues. The SDKs and the server run the same shared fixture cases, so a layout valid on one platform is valid on all of them. Layout documents lists the format.
Offline-first sync and kill switches
At launch the cached layout renders straight from disk and the network is never awaited. Edits are marked pending on the device before any network call, retried with backoff and pushed in the background. When two devices save at the same time, the server answers HTTP 409 with its current copy and the default resolver keeps the later edit per screen. A fetched layout is never swapped in while the user is looking at the screen.
Kill switches give you the server's side of control. Switch off the whole app, one screen or one component in the dashboard and every affected screen renders your default document for every user, without deleting anything. Switch it back and their designs return. Read Sync and kill switches for the details.
Compared with other tools
Weighing TweakLane against something else? Read how it differs from DivKit, LaunchDarkly, Firebase Remote Config and Airship.
Platforms
The same document format runs on iOS, macOS, Android, Windows, Linux, the web (React), Flutter, .NET and Qt. Each platform listed on the site passed its own test run before it was named: the documentation has a quickstart for each.