Smart Gallery Block
- from @localmode
- by LocalMode
Adaptive, device-aware CLIP photo ingest (streamEmbedManyImages at a computeOptimalBatchSize batch size shown on an adaptive-batch-card) with per-item progress, per-batch zero-shot categorization (other/0 fallback), and a grid/list gallery with filename + category + confidence + similar-count — per-photo delete, clear-all, and a cancellable ingest. Own usePhotoLibrary instance; CLIP downloads only behind an explicit Load. Split from ui/blocks/photo-search (Gallery tab).
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @localmode/ui/blocks/photo/smart-galleryRegistry dependencies6
- @localmode/ui/lib/utils
- @localmode/ui/local-first/model-selector
- @localmode/ui/local-first/model-downloader
- @localmode/ui/local-first/adaptive-batch-card
- @localmode/ui/media-vision/media-dropzone
- @localmode/ui/media-vision/image-result-gallery
