The whole dashboard installs with one shadcn command. It writes 26 files — routes, shell, data and components — and the source stays yours to edit.
Run this in a project that already uses shadcn/ui on React and Tailwind CSS v4.
npx shadcn@latest add https://prequelui.terravidhal.me/r/focus.json"use client";
import { motion } from "motion/react";
import { ArrowDownRight, ArrowUpRight } from "lucide-react";
import { cn } from "@/lib/utils";
import { EventsTable } from "@/dashboards/focus/components/events-table";
import {
CardSkeleton,
PageHeader,
RefreshButton,
} from "@/dashboards/focus/components/primitives";
import { useRefresh } from "@/dashboards/focus/hooks";
import { eventRows } from "@/dashboards/focus/data/events";
const EASE: [number, number, number, number] = [0.22, 1, 0.36, 1];
type Stat = {
id: string;
label: string;
value: string;
delta: number;
deltaSuffix: string;
goodWhenDown?: boolean;
};
const STATS: Stat[] = [
{ id: "volume", label: "Events · 24h", value: "3,842", delta: 12.4, deltaSuffix: "%" },
{ id: "users", label: "Unique users", value: "1,204", delta: 6.8, deltaSuffix: "%" },
{ id: "errors", label: "Error rate", value: "0.4%", delta: -0.1, deltaSuffix: " pts", goodWhenDown: true },
];
function StatStrip() {
return (
<div className="grid grid-cols-1 gap-4 sm:grid-cols-3">
{STATS.map((stat, i) => {
const up = stat.delta >= 0;
const good = stat.goodWhenDown ? stat.delta < 0 : stat.delta > 0;
return (
<motion.div
key={stat.id}
initial={{ opacity: 0, y: 14 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5, delay: i * 0.06, ease: EASE }}
className="rounded-xl border border-border bg-card p-5 shadow-sm"
>
<div className="text-[13px] font-medium text-muted-foreground">
{stat.label}
</div>
<div className="mt-2 flex items-baseline justify-between gap-3">
<span className="text-[26px] font-semibold leading-none tracking-tight tabular-nums">
{stat.value}
</span>
<span
className={cn(
"inline-flex items-center gap-0.5 rounded-full px-1.5 py-0.5 text-[11px] font-medium tabular-nums",
stat.delta === 0
? "bg-muted text-muted-foreground"
: good
? "bg-success/10 text-success"
: "bg-destructive/10 text-destructive"
)}
>
{up ? (
<ArrowUpRight className="h-3 w-3" />
) : (
<ArrowDownRight className="h-3 w-3" />
)}
{`${up ? "+" : "−"}${Math.abs(stat.delta).toFixed(1)}${stat.deltaSuffix}`}
</span>
</div>
</motion.div>
);
})}
</div>
);
}
export default function EventsPage() {
const { refreshing, refresh } = useRefresh();
return (
<div className="flex flex-col gap-6">
<PageHeader
title="Events"
description="Every tracked interaction, from page views to purchases, in a live stream."
>
<RefreshButton refreshing={refreshing} onClick={refresh} />
</PageHeader>
{refreshing ? (
<>
<div className="grid grid-cols-1 gap-4 sm:grid-cols-3">
{[0, 1, 2].map((i) => (
<CardSkeleton key={i} bodyHeight={20} />
))}
</div>
<CardSkeleton bodyHeight={300} />
</>
) : (
<>
<StatStrip />
<EventsTable rows={eventRows} />
</>
)}
</div>
);
}
motion, lucide-react
npm install motion lucide-reactThese come from the free MIT registry and are installed with the dashboard.
The routes and the data are ordinary files in your app; change them like your own.
The dashboard mounts at /dashboards/focus. Every screen listed above is its own route under app/dashboards/focus.
The numbers, names and dates come from dashboards/focus/data.ts. Keep the exported shapes and every chart, table and filter keeps working.
Navigation, command search, notifications and the theme switch live in the shell. The switch reads PrequelUI's ThemeProvider, so wrap your root layout in it or point the switch at your own.
Free and MIT. Read the dashboard guide for project requirements and the manual install.