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 { LogViewer, type LogLine } from "@/components/ui/log-viewer";const lines: LogLine[] = [ { id: 1, time: "2025-01-15T14:03:10.112Z", level: "info", source: "api", message: "Server started on port 8080" }, { id: 2, time: "2025-01-15T14:03:10.540Z", level: "debug", source: "db", message: "Connection pool initialized (size 10)" }, { id: 3, time: "2025-01-15T14:03:11.031Z", level: "info", source: "api", message: "GET /health 200 3ms" }, { id: 4, time: "2025-01-15T14:03:12.408Z", level: "warn", source: "cache", message: "Redis latency above 50ms" }, { id: 5, time: "2025-01-15T14:03:13.256Z", level: "info", source: "api", message: "POST /orders 201 48ms" }, { id: 6, time: "2025-01-15T14:03:14.902Z", level: "error", source: "payments", message: "Card authorization timed out after 5000ms" }, { id: 7, time: "2025-01-15T14:03:15.117Z", level: "info", source: "api", message: "GET /orders/1042 200 12ms" },];export default function LogViewerDemo() { return ( <LogViewer lines={lines} streaming label="Server logs" height={260} className="w-full max-w-lg" /> );}