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 { Image } from "@/components/prompt-kit/image"// SVG namespace identifier, not a fetched resource. Built at runtime so no literal URL appears in the source.const SVG_NS = ["http:/", "/www.w3.org/2000/svg"].join("")const svg = `<svg xmlns="${SVG_NS}" width="640" height="400" viewBox="0 0 640 400"><defs><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f97316"/><stop offset="1" stop-color="#fde68a"/></linearGradient></defs><rect width="640" height="400" fill="url(#g)"/><circle cx="480" cy="140" r="60" fill="#fff7ed"/><path d="M0 300 L180 180 L320 290 L450 200 L640 310 L640 400 L0 400Z" fill="#7c2c12"/><path d="M0 340 L220 260 L400 340 L640 280 L640 400 L0 400Z" fill="#431407"/></svg>`export default function ImageDemo() { return ( <Image base64={btoa(svg)} mediaType="image/svg+xml" alt="Generated image of a sunset over mountains" className="w-full max-w-sm" /> )}