@canvas-ui/force-field-vanillaloading the log…
NO RECENT BUILD
Pipeline
  1. Docsusage, props, keywords
  2. Demosrc/demo.tsx
  3. Buildshadcn add → vite
  4. Capturelight, dark, motion
  5. 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 { createForceField, supportsHtmlInCanvas } from "@/components/canvasui/ForceFieldVanilla"import { Button } from "@/components/ui/button"import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"export default function ForceFieldDemo() {  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 || !supportsHtmlInCanvas()) return    const field = createForceField({ source, content, output })    return () => field?.destroy()  }, [])  return (    <div className="relative h-[360px] w-full max-w-lg">      <canvas ref={sourceRef} className="absolute inset-0 h-full w-full">        <div ref={contentRef} className="flex h-full w-full items-center justify-center p-6">          <Card className="w-full max-w-sm">            <CardHeader>              <CardTitle>Shield online</CardTitle>              <CardDescription>Your workspace is protected.</CardDescription>            </CardHeader>            <CardContent>              <p className="text-sm text-muted-foreground">All systems are running normally.</p>            </CardContent>            <CardFooter>              <Button className="w-full">Engage</Button>            </CardFooter>          </Card>        </div>      </canvas>      <canvas ref={outputRef} className="pointer-events-none absolute inset-0 h-full w-full" />    </div>  )}