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 { MediaLibrary } from "@/components/media-library/media-library"import type { MediaNode } from "@/components/media-library/types"import { photoImage } from "@/preview/images"const nodes: MediaNode[] = [ { id: "marketing", name: "Marketing", type: "folder", parentId: null, children: [ { id: "hero", name: "hero-banner.png", type: "file", parentId: "marketing", mimeType: "image/png", size: 2516582, modifiedAt: "2025-03-14T10:22:00Z", url: photoImage("hero banner", 800, 600), thumbnailUrl: photoImage("hero banner", 400, 300), }, ], }, { id: "product", name: "Product", type: "folder", parentId: null, children: [ { id: "guide", name: "brand-guidelines.pdf", type: "file", parentId: "product", mimeType: "application/pdf", size: 1048576, modifiedAt: "2025-02-28T09:40:00Z", }, ], }, { id: "readme", name: "README.txt", type: "file", parentId: null, mimeType: "text/plain", size: 512, modifiedAt: "2025-01-20T08:00:00Z", },]export default function MediaLibraryDemo() { return ( <MediaLibrary className="w-full" nodes={nodes} storage={{ used: 6442450944, total: 16106127360 }} /> )}