Skip to content

Generative UI

Generative UI lets you describe an application in plain English and get a live, interactive React app rendered directly in your chat session. No boilerplate, no build step, no deployment — just describe what you want and use it immediately.

How It Works

  1. You describe — Tell the agent what you need in natural language.
  2. Agent generates JSX — The AI writes a React component with Tailwind CSS styling.
  3. Instant rendering — Sucrase compiles the JSX to JavaScript in ~5ms and renders it in a secure sandboxed iframe.
  4. Iterate — Refine with follow-up messages until it's exactly right.
  5. Save — Promote the result to a named App that persists and stays accessible.
You:    "Build me a dashboard showing my team's sprint velocity over
         the last 6 sprints with a bar chart and current sprint progress"
Agent:  [generating app] I'll create a sprint dashboard with velocity
        tracking and progress indicators.

        [renders live interactive dashboard in chat]

        Here's your sprint dashboard. It shows velocity as a bar chart
        and current sprint progress as a radial gauge. Want me to
        connect it to your Jira data?

What's Available

Generated apps have access to pre-bundled libraries — no installation needed:

LibraryPurpose
React 19Component framework
RechartsCharts and data visualization
Lucide ReactIcon library
Tailwind CSS v4Utility-first styling

For data connectivity, apps use data hooksuseAppData for fetching, useAppAction for mutations, useAppAI for LLM calls, and useAppState for persistent storage — all backend-proxied so credentials never reach the browser.

Comparison to Alternatives

Astonish Generative UIClaude ArtifactsChatGPT Canvas
Live data connectivityYes (MCP, REST, OAuth)NoNo
Persistent stateYes (per-user DB)NoNo
Team sharingYes (publish/fork)Share linkShare link
LLM calls from appYes (useAppAI)NoNo
Iterative refinementYesYesYes
Saved as first-class conceptYes (Apps)ArtifactsNo

Apps as a Top-Level Concept

Generated UIs are saved as Apps — a first-class entity in Astonish alongside Flows and Fleet agents. Apps appear in the Studio sidebar, can be pinned for quick access, and maintain their own persistent state per user.

The Compilation Pipeline

Astonish uses Sucrase for JSX transformation instead of Babel or a full bundler. This gives:

  • ~5ms compilation — No perceptible delay between generation and rendering.
  • No Node.js dependency — The transform runs in the browser.
  • Hot updates — Each refinement recompiles and re-renders instantly.

The rendered app runs in a sandboxed iframe with restricted permissions. Network requests are proxied through the Astonish backend, ensuring credentials and API keys never reach the client.

Getting Started