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 { UsageTable, type UsageItem } from "@/components/billingsdk/usage-table"export default function UsageTableDemo() { const usageHistory: UsageItem[] = [ { model: "gpt-4o", inputWithCache: 184320, inputWithoutCache: 42680, cacheRead: 912640, output: 38420, totalTokens: 1178060, apiCost: 2.84, costToYou: 3.41, }, { model: "claude-3.5-sonnet", inputWithCache: 96540, inputWithoutCache: 28120, cacheRead: 544320, output: 24680, totalTokens: 693660, apiCost: 1.76, costToYou: 2.11, }, { model: "gemini-2.0-flash", inputWithCache: 74200, inputWithoutCache: 18300, cacheRead: 326400, output: 16900, totalTokens: 435800, apiCost: 0.42, costToYou: 0.5, }, ] return ( <UsageTable title="Usage Summary" description="Per-model token usage and costs for this billing period." usageHistory={usageHistory} /> )}