Public gallery
VisualCI can serve the screenshots your tests take on your own pages: the docs, a README, a product page. Each published screenshot has one stable URL that always serves its approved version on the default branch, so the pictures on your site change when an agent approves a change, with no images in git.
Two examples: VisualCI's own screenshots page and the images on its homepage, and Fleetlayer's screenshots.
Show it on your site
A gallery library turns the manifest into a screenshots page: a tab for each group, a card for each screen, light/dark and desktop/phone switches, and a full-size view with previous and next. Pick the one for your site's stack:
- JavaScript: any page, with a script tag or a bundler, or rendered at build time.
- Astro: a component that renders at build time.
- React and Next.js: a server component for Next.js's app router, or HTML you render yourself.
- Docusaurus: a plugin and an MDX component.
- VitePress: a Vite plugin and a Vue component.
- MkDocs: a fenced block in any page, with Material for MkDocs.
- Hugo: a shortcode in any page, or a partial in a layout.
- Ruby: Rails, or any Rack app.
- Python: Django, Flask, or Jinja.
- Rust: Askama, Loco and axum, or plain.
They all render the same HTML, take the same options, and take your site's look through CSS variables. A page built at deploy time fails its build when the manifest can't be read, so it never ships without its screenshots.
For one screenshot in a page or a README, in the reader's light or dark mode, see One screenshot.
To set one up from a prompt, an agent with VisualCI's MCP server loads the visualci-gallery skill with get_skill, or reads this page's Markdown copy.
The steps, for any stack:
- Name your screenshots so the gallery can pair them:
<screen>/<width>-<theme>(screenshots/app/billing/1440-light) or<screen>-<theme>[-<width>](overview-dark-390). See Naming screenshots. - Publish them: a
gallery:section invisualci.yml(below), merged, and the gallery switched on in the project's settings. - Check the manifest,
https://app.visualci.com/g/<org>/<project>/gallery.json, lists them. It answers 404 until a build on the default branch has published something. - Add the page with your stack's library, pinned to a version, and set its
--vg-*variables to your site's colours.
Choose what's public
First turn the gallery on: a new project's gallery is off, so nothing it names is public until someone with admin rights switches it on in the project's Settings tab, or with update_project and gallery_enabled: true over MCP. While it's off, each build whose visualci.yml names a gallery says so in its warnings.
Then name groups of screenshots in visualci.yml. Nothing is public unless a group includes it:
gallery:
groups:
- name: iOS
include: ["ios/**"]
- name: Web
title: In the browser
include: ["screenshots/**/1440-*", "screenshots/**/390-*"]
The gallery section needs VisualCI's CLI 0.2.4 or later (and the GitHub Action at v0.2.4 or later): an older CLI refuses a visualci.yml with fields it doesn't know.
Each group has a name, an optional title, and include: snapshot globs, where * stays within one segment of the name and ** crosses them. A screenshot belongs to the first group that includes it. Only screenshots (images) are published, and only from one environment: ci, what CI runs send, unless environment names another. A laptop's visualci check runs are never published. To feed the gallery from your own machine instead of CI, see Publish from your laptop.
The newest CI build on the default branch decides the groups, so a change to them goes live when it merges.
What's served
Always the approved version on the default branch: what the next build there would compare with. A pull request's change, a pending change or a rejected one never reaches the public URL. Approving the change is what publishes it.
- One image per screenshot:
https://app.visualci.com/g/<org>/<project>/<name>.png, for example/g/acme/web/screenshots/home/1440-light.png. It serves the image exactly as your test saved it, in its own format (.png,.jpgor.webp). A name that exists on more than one platform gets@<platform>before the extension. - A thumbnail of each screenshot:
https://app.visualci.com/g/<org>/<project>/<name>.thumb.webp, a WebP for cards and previews: 640 px wide with the screenshot's aspect ratio, or at the screenshot's own size when it's 640 px wide or narrower (a phone's full-page shot, about a third of the PNG's bytes). A narrow screenshot that isn't a PNG, is under 16 KB, or that a WebP saves little on, has none (the original is small enough), and neither do-2xcopies (use the 1x screenshot's). It follows approvals like the screenshot's own URL, a few seconds behind, and goes when the screenshot leaves the gallery. - The manifest:
https://app.visualci.com/g/<org>/<project>/gallery.jsonlists the groups in order, and each screenshot's name, platform, URL, size in pixels and bytes, hash, and thumbnail when it has one. Its earlier URL,/g/<org>/<project>.json, still works, but ad blockers block it when the project is named like an analytics script (umami,plausibleormatomo), so usegallery.json:
{
"project": "acme/web",
"groups": [
{
"name": "Web",
"title": "In the browser",
"items": [
{
"name": "screenshots/home/1440-light",
"platform": "",
"url": "https://app.visualci.com/g/acme/web/screenshots/home/1440-light.png",
"width": 1440,
"height": 900,
"bytes": 182344,
"sha256": "9f2c…",
"since": "2026-12-01T09:12:44+00:00",
"snapshot": "https://app.visualci.com/acme/web/builds/42/snapshots/0193…",
"thumb": {
"url": "https://app.visualci.com/g/acme/web/screenshots/home/1440-light.thumb.webp",
"width": 640,
"height": 400,
"bytes": 23110
}
}
]
}
]
}
since is when that picture first appeared: a build that keeps it as it was doesn't move it. When the project's builds are public, snapshot is the page in VisualCI where the picture came from (the change that made it, beside the picture before); a private project's manifest leaves it out and says nothing else about its builds either.
Once the project reports versions, the manifest also lists them, each with a manifest of its own that keeps the gallery as it was at that release.
The manifest changes only when an image does, so a site can build its own gallery from it. Light and dark, or phone and desktop, are separate screenshots with their own URLs; pairing them is up to your page.
Every gallery URL works from any site (Access-Control-Allow-Origin: *), including one that turns on cross-origin isolation (Cross-Origin-Resource-Policy: cross-origin). They take no query parameters: anything else is a 404.
Caching and cost
Cloudflare keeps each image, thumbnail and the manifest for a day, and VisualCI clears its copy of exactly the URLs an approval changes, so a new version shows up within seconds. Browsers check again after five minutes.
An image or thumbnail VisualCI's own servers send (the first request after an approval, or after Cloudflare's day runs out) costs its organization one credit. Requests Cloudflare answers, 304s, 404s and the manifest are free. A gallery keeps working when the organization is out of credits; see Credits and plans.
See and turn off
The project's Settings tab lists everything that's public, with a switch that takes the whole gallery down. get_project over MCP returns the same list as gallery, and update_project with gallery_enabled: false turns it off.