A2UI Three.js Renderer
An interface arriving as a stream
A renderer that turns streamed Agent-to-UI component trees into interactive 3D surfaces, with a protocol inspector alongside the scene.

An interface assembled as it arrives
This renderer takes Agent-to-UI messages and turns them into a spatial interface. A stream can progressively add cards, text and buttons, or update the data behind them. The scene gives the arriving component tree depth, lighting, parallax and hover behavior, while a protocol inspector shows the messages that produced it.
The rendering path
React handles stream state and message processing. A simplified flex-style layout engine computes absolute positions, and Three.js maps Surface, Row, Column, Card, Text and Button components into scene objects. Post-processing adds bloom, noise and vignette.
The implementation handles heartbeat, surfaceUpdate and dataModelUpdate messages. It runs with a mock stream by default, making the protocol behavior inspectable without a model connection. An optional Gemini-backed generator supplies a second stream source.
Where the experiment is useful
The project separates the description of an interface from its rendering medium. New component mappings can be added without changing the entire stream pipeline, and the mock stream can be replaced with another source. The experiment focuses on that boundary; its layout system implements a limited subset of flex behavior rather than full Yoga semantics.
Implementation at a glance
- Handles surface and data-model update messages.
- Maps rows, columns, cards, text and buttons into a Three.js scene.
- Includes a simplified flex-style layout pass and an optional Gemini-backed stream.
Project status
Experimental component and layout support. The public implementation uses a simplified layout engine and does not include a configured automated test suite.