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 { createAsciify } from "@/components/canvasui/AsciifyVanilla"import { Button } from "@/components/ui/button"export default function AsciifyDemo() { 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 instance = createAsciify( { source, content, output }, { charset: "ascii", radius: 0.35 }, ) return () => instance?.destroy() }, []) return ( <section className="relative h-[380px] w-full max-w-xl" style={{ position: "relative" }}> <canvas ref={sourceRef} className="h-full w-full" style={{ width: "100%", height: "100%" }}> <div ref={contentRef} className="flex h-full flex-col items-center justify-center gap-4 p-8 text-center"> <p className="text-2xl font-semibold">Ship faster with fewer moving parts.</p> <p className="text-muted-foreground">Move your cursor across the page to reveal the text.</p> <Button>Get started</Button> </div> </canvas> <canvas ref={outputRef} className="absolute inset-0 h-full w-full" style={{ position: "absolute", inset: 0, width: "100%", height: "100%" }} /> </section> )}