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 { StreamingMessage } from "@/components/bjork-ui/ai/streaming-message"export default function StreamingMessageDemo() { return ( <StreamingMessage className="max-w-lg" content={`Short answer: **debounce the writes, not the reads.** The editor already batches keystrokes, so the slow part is the \`persist()\` call.### What to change1. Wrap \`persist\` in a trailing debounce of about 400ms.2. Flush on \`visibilitychange\` so a closed tab never loses the last edit.3. Keep reads synchronous; the cache is already warm.`} streaming={false} /> )}