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 KeyValueDemo from "@/components/key-value-demo"// Preview runs in contexts where crypto.randomUUID may be missing (e.g. non-secure origins).// Provide a spec-compliant v4 UUID fallback built on getRandomValues.if ( typeof globalThis.crypto !== "undefined" && typeof globalThis.crypto.randomUUID !== "function") { Object.defineProperty(globalThis.crypto, "randomUUID", { configurable: true, writable: true, value: () => { const bytes = new Uint8Array(16) globalThis.crypto.getRandomValues(bytes) bytes[6] = (bytes[6] & 0x0f) | 0x40 bytes[8] = (bytes[8] & 0x3f) | 0x80 const hex = Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("") return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}` }, })}export default function Demo() { return <KeyValueDemo />}