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 { useEffect, useRef } from "react"import { h, render } from "preact"import { Grid } from "@/components/canvasui/Grid"function Panel() { return h( "div", { className: "flex h-full items-center justify-center p-6" }, h( "div", { className: "w-full max-w-sm rounded-xl border bg-background p-6 shadow-sm" }, h("h3", { className: "text-lg font-semibold" }, "Welcome back"), h( "p", { className: "mt-1 text-sm text-muted-foreground" }, "You have 3 unread messages and 2 tasks due today." ), h( "div", { className: "mt-4 flex justify-end gap-2" }, h( "button", { className: "rounded-md border px-3 py-1.5 text-sm" }, "Later" ), h( "button", { className: "rounded-md bg-primary px-3 py-1.5 text-sm text-primary-foreground" }, "Continue" ) ) ) )}export default function GridDemo() { const ref = useRef<HTMLDivElement>(null) useEffect(() => { const el = ref.current if (!el) return render( h(Grid as any, { className: "w-full", style: { height: 420 } }, h(Panel, null)), el ) return () => { render(null, el) } }, []) return <div ref={ref} className="w-full" />}