Skip to content

AbhinRustagi/gen-ui-benchmark

Repository files navigation

Gen UI Benchmark

This project was bootstrapped using AI-assisted code generation to quickly evaluate generative UI frameworks. The focus of this experiment was on architecture, testing different approaches, and drawing insights from each framework’s behavior.

Compare generative UI libraries side by side. Send the same prompt to three different approaches and see how they render, how fast they respond, and what they produce.

The Contenders

Library Approach
Thesys C1 API middleware generates UI markup, SDK renders it
Tambo Register React components with Zod schemas, AI picks and streams props
Vercel AI SDK streamText with tool calls, client renders components from tool output

Setup

npm install
cp .env.local.example .env.local

Add your API keys to .env.local:

npm run dev

Open http://localhost:3000.

How It Works

  • Type a prompt or click a preset (sales dashboard, comparison table, pie chart, etc.)
  • All three panels receive the same prompt simultaneously
  • Each panel shows time-to-first-render (TTFR) and total render time
  • Thesys generates its own UI from scratch; Tambo and Vercel AI SDK render the same shared React components (Chart, DataTable, InfoCard, Dashboard) so you can compare apples to apples on those two

Deploy

Deploy with Vercel

Tech Stack

  • Next.js 15 (App Router)
  • Tailwind CSS v4 + shadcn/ui
  • Recharts
  • TypeScript

About

Comparative display between Tambo & Thesys C1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors