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 { Button } from "@/components/ui/button"import { createParticleReveal, type ParticleRevealInstance } from "@/components/canvasui/ParticleRevealVanilla"export default function ParticleRevealDemo() { const sourceRef = useRef<HTMLCanvasElement>(null) const contentRef = useRef<HTMLDivElement>(null) const outputRef = useRef<HTMLCanvasElement>(null) const instanceRef = useRef<ParticleRevealInstance | null>(null) useEffect(() => { const source = sourceRef.current const content = contentRef.current const output = outputRef.current if (!source || !content || !output) return instanceRef.current = createParticleReveal({ source, content, output }) return () => { instanceRef.current?.destroy() instanceRef.current = null } }, []) return ( <div className="relative w-full max-w-lg"> <canvas ref={sourceRef} style={{ display: "block", width: "100%", height: 320 }}> <div ref={contentRef} className="flex h-full flex-col items-start justify-center gap-4 bg-background p-8" > <p className="text-3xl font-semibold tracking-tight">Hello, dust.</p> <p className="text-muted-foreground"> Move your cursor over the text to bring it back into focus. </p> <Button>Get started</Button> </div> </canvas> <canvas ref={outputRef} style={{ position: "absolute", inset: 0, width: "100%", height: "100%", pointerEvents: "none", }} /> </div> )}