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 { createGlassObject } from '@/components/canvasui/GlassObjectVanilla'const svg = "<svg viewBox='0 0 100 100'><path d='M50 6 L94 50 L50 94 L6 50 Z' fill='#066aff'/></svg>"const src = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(svg)export default function GlassObjectDemo() { const ref = useRef<HTMLCanvasElement>(null) useEffect(() => { const canvas = ref.current if (!canvas) return const glass = createGlassObject({ canvas }, { src, tint: '#066aff', tintDensity: 1 }) return () => glass?.destroy() }, []) return ( <div className='w-full max-w-md'> <canvas ref={ref} role='img' aria-label='Glass logo' style={{ width: '100%', height: 340 }} /> </div> )}