Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { Histogram, binValues, summarize } from "@/components/dashboardblocks/distribution"const latencies = [120, 340, 95, 410, 220, 180, 260, 310, 150, 390, 205, 275, 130, 320, 240]const bins = binValues(latencies, [0, 100, 200, 300, 400, 500])const stats = summarize(latencies)export default function DistributionDemo() { return ( <div className="w-full max-w-lg"> <Histogram bins={bins} describe={(index) => `${bins[index].count} requests between ${bins[index].x0} and ${bins[index].x1} ms`} threshold={{ label: "SLO 300ms", value: 300 }} markers={[{ label: "Median", value: stats.median }]} formatEdge={(value) => `${value}ms`} > Hover a bar to see its request count. </Histogram> </div> )}