About
A blind model comparison arena with two anonymized answers, latency, token and throughput metadata, a round progress rail, vote or tie actions, a reveal with per-model speed comparison, a ranked leaderboard with win share, multiple rounds and a reset.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Model Arena to your project and fits it to your theme.
Code
How Model Arena is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
/**
* PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
*/
import { ModelArena, type ArenaRound } from "@/components/ui/model-arena";
const ROUNDS: ArenaRound[] = [
{
id: "r1",
prompt: "Explain rate limiting to a new backend engineer in three sentences, without jargon.",
responses: [
{
id: "r1a",
modelName: "Astrum-1",
latency: 640,
tokens: 58,
text: "Rate limiting is a cap on how many requests a client can make in a window of time. It protects shared systems from spikes and keeps one noisy client from slowing everyone else down. When the cap is reached, the server rejects or queues extra requests until the window resets.",
},
{
id: "r1b",
modelName: "Beacon-2",
latency: 810,
tokens: 72,
text: "Think of rate limiting as a queue at a busy counter. Each client gets a fixed number of turns per minute, and once those turns are used the request waits or gets a clear refusal. The goal is fairness, stability and predictable capacity rather than blocking traffic for its own sake.",
},
],
},
{
id: "r2",
prompt: "Write a two-sentence release note for saved views that keep filters between sessions.",
responses: [
{
id: "r2a",
modelName: "Beacon-2",
latency: 520,
tokens: 42,
text: "Saved views now remember your filters between sessions and can be shared with teammates. Reopen a view to pick up exactly where you left off, without rebuilding the search each time.",
},
{
id: "r2b",
modelName: "Astrum-1",
latency: 460,
tokens: 38,
text: "You can now name a view and keep its filters for later, even after closing the app. Share a view with your team so everyone opens the same slice of the data in one click.",
},
],
},
];
export default function ModelArenaDemo() {
return (
<main className="flex min-h-screen w-full items-start justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
<ModelArena
rounds={ROUNDS}
initialScores={{ "Astrum-1": 3, "Beacon-2": 2 }}
title="Blind model comparison"
/>
</main>
);
}
















