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 { createBend } from "@/components/canvasui/BendVanilla"export default function BendDemo() { const sourceRef = useRef<HTMLCanvasElement>(null) const contentRef = useRef<HTMLDivElement>(null) const outputRef = useRef<HTMLCanvasElement>(null) useEffect(() => { const source = sourceRef.current const content = contentRef.current const output = outputRef.current if (!source || !content || !output) return const bend = createBend({ source, content, output }) return () => bend?.destroy() }, []) return ( <div className="relative h-[400px] w-full max-w-lg"> <canvas ref={sourceRef} className="absolute inset-0 h-full w-full"> <div ref={contentRef} className="h-full overflow-y-auto bg-background p-6"> <article className="flex flex-col gap-4 text-sm leading-relaxed"> <p className="text-base font-semibold">Welcome to the studio</p> <p>Our team designs tools that feel calm, quick, and considered.</p> <p>Every project starts with a short conversation about what matters most to you.</p> <p>We sketch early, test with real people, and refine until the details disappear.</p> <p>Work is delivered in small milestones so you always know where things stand.</p> <p>When launch day arrives, we stay on hand to help with the first few weeks.</p> <p>Thanks for reading. Scroll on to see the edges fold as you reach the end.</p> </article> </div> </canvas> <canvas ref={outputRef} className="absolute inset-0 h-full w-full" /> </div> )}