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 { useState } from "react"type Point = { x: number; y: number } | nullexport default function CrosshairDemo() { const [pos, setPos] = useState<Point>(null) const y = pos ? `${pos.y}px` : "50%" const x = pos ? `${pos.x}px` : "50%" return ( <div className="relative h-72 w-full max-w-lg cursor-none overflow-hidden rounded-md border bg-muted" onMouseMove={(e) => { const b = e.currentTarget.getBoundingClientRect() setPos({ x: e.clientX - b.left, y: e.clientY - b.top }) }} onMouseLeave={() => setPos(null)} > <div className="pointer-events-none absolute left-0 h-px w-full bg-foreground/70" style={{ top: y }} /> <div className="pointer-events-none absolute top-0 h-full w-px bg-foreground/70" style={{ left: x }} /> </div> )}