Wikimedia Commons is one of the best free image collections in the world, but it was built as a "file warehouse," rather than as a compelling user experience.
CommonsVibe aims to provide an easy-to-use, modern, visually rich, and serendipitous feed explorer and discovery tool for Wikimedia Commons categories.
Designed for the curious browser rather than a technical expert, it brings a "Pinterest-style" feel to Commons categories, making it easy to explore collections visually and quickly navigate the Commons category tree.
- Visually examine a specific category by selecting a category from the pull-down menu, and "Minimal" mode to isolate just the images.
- Use shuffle mode on a large category with the "Detailed" setting to quickly explore the variety of a category.
- Dial the tile density with the S/M/L control — from a 6-column wall of thumbnails down to big single-column previews — and the grid reflows instantly.
- ⚡ Lite mode — the speed-over-quality toggle: 1× thumbnails with no retina variants (~7× less image data on hiDPI screens), full resolution always preserved in the viewer. Toggle it in the header or via
?lite=1. - Jump to different categories by selecting the image's "tag" button to bring up Commons categories you can click on, visible or hidden.
- Browse the category tree via the sitemap button: see subcategories to a chosen depth (1–5) with file counts, click any node to explore it. The chips row above the grid shows the current category's parents and subcategories. Big trees load 500 at a time with a "Load more" extension — cyclic cross-listings are deduped.
- Shuffle or browse an entire subtree with Deep mode: the feed samples from the category and all its subcategories — or walks them in order (
deep=1&sort=alpha, or the tree modal's Browse Entire Subtree), subcategories first and the category's own files last. The sampler walks the tree client-side (cached) and draws exact random files from a weighted subcategory; the banner shows the ≈ size of the whole subtree. - Shareable tree views:
&tree=1&depth=Nboots with the tree modal open at your chosen depth. - Quickly scrub and play video by visiting a category of WebM videos and hovering your pointer over a tile to preview it without sound. (On mobile, tapping a tile opens the file page on Commons.)
- Spin the 🎲 roulette to hop into a random subcategory, and filter by media type (images / video / audio / 3D models) from the header.
- Spin 3D models in place — STL tiles render an interactive WebGL viewer on hover: drag to spin (yaw/pitch), wheel to zoom, auto-rotating until you grab it. Posters stay until you hover, bytes load on intent, and files too big to spin (40MB+) keep their thumbnail.
- Feed it a PetScan query or PagePile — append
?pet=<Category>&petdepth=N,?psid=<id>or?pile=<id>to the URL and the list becomes a browsable, shareable feed, or typepile:116948/psid:12345/pet:Category:Name&depth=2in the Jump box (pasted PagePile/PetScan URLs work too). Opened lists are remembered in the source menu's Lists group alongside your categories. - Clip images into a personal collection — hit the bookmark button on any tile (or "✂ Clip this" in the viewer); your collection lives in the browser and browses as its own feed via the header chip or
?clips=1. - Export or print a feed — the download button in the header exports the current feed (or your clips) as JSON, CSV, a plain
File:list, or wiki<gallery>markup, and the PDF/Print button renders the feed as a light 3-column contact sheet through your browser's print dialog.
A running version can be found at: https://commons-vibe.toolforge.org/
CommonsVibe uses a responsive masonry grid to showcase images in a fluid, visual layout.
- Infinite Discovery: As you scroll, the app automatically fetches more content, creating a seamless "infinite scroll" that keeps the inspiration flowing.
- Lazy Loading: High-quality media loads efficiently only as you need it — video bytes aren't even fetched until you hover — keeping the interface quick and modern.
- Instant Revisits: API responses are cached client-side, so categories you've already visited render instantly on return, no network round-trip.
- Self-healing tiles: if a thumbnail request fails (the thumbnail servers shed load under bursts), the tile retries in place — no page reload, so a shuffle session is never thrown away. If some tiles still won't load, a Fix images chip appears in the header and repairs them by re-resolving just those files.
Most users aren't familiar with the intricate category tree of Wikimedia Commons. To assist in this:
- Curated Seeds: Start your journey with "Best of" collections like Pictures of the Year, Featured Pictures, or Quality Images.
- Custom Entry: If you know a specific category name, simply enter it in to generate a custom feed instantly.
- Deep Context: Every image tile includes a description. Want to go deeper? A simple pop-up menu reveals every category the file belongs to, allowing you to "teleport" to related areas quickly, whether they are visible or hidden categories.
The entire state of your browser is captured in the URL.
- Instant Sharing: Your current category, layout settings (detailed vs. minimal), and sort filters are all stored as URL parameters (
?cat=&sort=&view=). - What You See is What They Get: Send a link to a friend, and they will see the exact same view you are looking at.
CommonsVibe supports distinct ways to interact with media:
- Alphabetical Mode: The classic organized approach. Browse through a category's contents in order, with 12 tiles loaded at a time as you scroll. (When a media-type filter is active in this mode and the type is sparse — e.g. 3D files — matches are drawn directly so tiles appear immediately rather than after a long alphabetical crawl.)
- Shuffle Mode: For true serendipity. Using Wikimedia's CirrusSearch, this mode pulls 12 random tiles at a time from never-repeating draws, creating a unique, never-ending discovery session. Deep mode extends this across a whole subtree: each batch draws from several distinct subcategories (weighted by size), so no single subject floods the screen. The media-type filter applies server-side here.
Both modes work in Detailed (full case-faithful filename + 3-line description — long names wrap instead of truncating) and Minimal (edge-to-edge images, metadata on hover) views.
CommonsVibe is evolving from a browser into a personal curation tool. Planned features include:
Category Tree Exploration— shipped in v1.6: tree modal (depth 1–5, lazy expand, file-count badges), parent/subcategory chip row, and Deep mode (deepcategoryshuffle across the whole subtree,?deep=1in the URL). Still open from the original plan: multi-select union feeds, "category roulette", tree-awarepath=URL state.- List Mode — v1.11 shipped the first slice: feed PagePiles (
?pile=), saved PetScan queries (?psid=), or live PetScan queries (?pet=&petdepth=). v1.18 added "clip this image": a personal collection stored in your browser (bookmark button on any tile or in the viewer; browse it via?clips=1). Still open: named collections and hand-curated shareable file-ID lists. Personal Collections— first slice shipped in v1.18: clip any tile or viewer file into a personal collection (localStorage, no account); browse it as a feed via the header chip or?clips=1. Still open: named collections, sync across devices.- Stateful Storage: User accounts to sync your favorite categories and collections across devices.
- Enhanced Search: Natural language tools to find "vibes" without needing to know exact category names.
Filtering— shipped in v1.11: media-type filter (images / video / audio) in the header, applied server-side in shuffle mode and client-side elsewhere. Still open: granular filters (e.g. exclude TIFF specifically).Lite mode— shipped in v1.20: speed-over-quality toggle (1× thumbs, no retina candidates, viewer stays full-res) via the header chip or?lite=1.Export— first slice shipped in v1.22: the header Export button exports the current feed or your clips as JSON / CSV / plain text / wiki gallery markup (copy or download), or prints the feed as a light 3-column PDF contact sheet via the browser's own print-to-PDF. v1.28 added PagePile publishing: the export dialog's Create PagePile button turns the current feed or your clips into a public, static list on commonswiki — consumable by PetScan, GLAMorous, WQS and others, and reopenable in CommonsVibe via?pile=. Still open (issue #30): enriched metadata (artist/license), PetScan handoff for whole large categories, and JSON re-import as a shareable session (issue #33).
The app is dependency-free vanilla JS — no build step, no package manager.
# serve the repo locally (any static server works)
python3 -m http.server 8123
# then open http://127.0.0.1:8123/See HANDOFF.md for the test checklist, API integration notes, and the exact deploy procedure.
Live at https://commons-vibe.toolforge.org/ (Toolforge tool commons-vibe, php8.4 webservice, Kubernetes backend). Files are synced directly into /data/project/commons-vibe/public_html/:
cat index.html | ssh alih@dev.toolforge.org \
'sudo -niu tools.commons-vibe sh -c "cat > /data/project/commons-vibe/public_html/index.html"'Repeat for app.js, style.css, categories.txt, .htaccess, and the vendor/ libraries (three.js + Tailwind build). Static-file changes need no webservice restart. Full procedure (with verification steps) in HANDOFF.md.
CommonsVibe is built to be lightweight and URL-driven.
- Engine: Vanilla JavaScript (ES module) — no framework, no build step. The app ships as
index.html+app.js+style.cssand boots instantly (previously PyScript/Pyodide; replaced August 2026). All JavaScript is served same-origin from Toolforge (Wikimedia infrastructure): three.js is vendored invendor/, and the Tailwind Play CDN build is vendored too (v1.19) — no third-party JS is ever contacted, protecting visitor privacy. - API: Interacts directly with the Wikimedia Action API and CirrusSearch, with a client-side response cache (localStorage + in-memory, TTL per endpoint kind) so repeat visits and back-navigation are instant. Category-tree data (v1.6: parents, subcats, counts) flows through the same cache — tree re-opens are instant.
- Correctness details: generator + prop responses arrive in pageid order, so alpha mode sorts by title client-side; list mode restores PetScan/PagePile order. All requests pass through a global pacing throttle (polite to Wikimedia's APIs, immune to self-inflicted 429s).
- Infinite Scroll: One-batch prefetch lookahead keeps the grid feeding smoothly; stale requests are aborted.
- Media: Hover-to-play video with
preload="none"(no bytes until hover), retina-aware thumbnails derived from the 600px base thumb, robust video/audio detection via APImediatype/mimefields. - Routing: Heavy emphasis on URL parameter persistence to ensure the "Shareable View" philosophy.
- Frontend: Designed for high-performance image rendering and "lazy loading" patterns.
