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 * as React from "react"import { createField, resolveColor, shineForBackdrop } from "@/components/ui/field"import { packUniforms, type Blob } from "@/components/ui/geometry"export default function GlassPillDemo() { const canvasRef = React.useRef<HTMLCanvasElement>(null) React.useEffect(() => { const canvas = canvasRef.current if (!canvas) return const tint = resolveColor("oklch(0.3 0.02 280)") const backdrop = resolveColor("oklch(0.15 0.01 280)") const accent = resolveColor("oklch(0.7 0.2 300)") const field = createField({ canvas, colors: { tint, backdrop, accent, shine: shineForBackdrop(backdrop) }, }) if (!field) return const width = 240 const height = 56 const dpr = window.devicePixelRatio || 1 field.resize(width, height, dpr) const blob: Blob = { cx: width / 2, cy: height / 2, hw: width / 2 - 4, hh: height / 2 - 4, r: height / 2 - 4, } const packed = packUniforms({ blobs: [blob], necks: [], k: 14 }, dpr, height) field.draw({ packed, k: 14, time: 0, wobble: 0, alpha: 1 }) return () => field.dispose() }, []) return ( <div className="w-full max-w-sm"> <canvas ref={canvasRef} style={{ width: 240, height: 56 }} /> </div> )}