Home / Projects
MorphScreen
Your model writes text and your users see real UI: cards, charts, photos, quizzes and forms, drawn while the answer streams. Every line is checked against the components your app allows, and when one breaks a rule, the same model fixes only that line.
- Language
- Rust, TypeScript
- Started
- 2026-10-10
- Updated
- 2026-11-03
- Live
- morphscreen.com
- Source
- github.com/morphscreen/morphscreen
The answer format is Markdown with JSX-style tags, so half an answer is always a valid start of the whole one. One catalog of 75 components generates the prompt and the validator; the prompt for every component is 2,954 tokens, against 14,041 for OpenUI's chat library.
The core is Rust: a streaming parser that takes text in chunks and emits UI operations, a validator, a layout planner and an HTML renderer, built for WebAssembly, C and JNI. A 24-hour fuzz run over 91.7 million answers found no failures. The web and React SDK is on npm as @morphscreen/web; the SwiftUI and Compose SDKs share the same core.
The API, also Rust, takes chat completions and AG-UI streams, repairs broken lines with the same model, and keeps accounts, keys, plans and metering in PostgreSQL, with billing through Dodo Payments.
On OpenUI's own benchmark, it is ahead on 37 of 64 measures, behind on 4 and even on 23; 66.3% against 31.5% valid answers on a small open model; 0 accessibility violations against 599.