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 { createBlaze } from '@/components/canvasui/BlazeVanilla'import { Button } from '@/components/ui/button'export default function BlazeDemo() { 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 blaze = createBlaze({ source, content, output }) return () => blaze?.destroy() }, []) return ( <section className='relative h-[400px] w-full max-w-lg overflow-hidden rounded-lg bg-neutral-950'> <canvas ref={outputRef} aria-hidden='true' className='pointer-events-none absolute inset-0 h-full w-full' /> <canvas ref={sourceRef} className='relative h-full w-full'> <div ref={contentRef} className='flex h-full flex-col items-center justify-center gap-4 text-center text-white' > <Button variant='secondary'>Get started</Button> </div> </canvas> </section> )}