Back to browse
Heroshot – Define screenshots once, regenerate with one command

Heroshot – Define screenshots once, regenerate with one command

by machala·Feb 26, 2026·1 point·0 comments

AI Analysis

●●●BangerSolve My ProblemSlickShip It

Visual picker kills manual selector hunting; regenerates all viewport+theme variants automatically.

Strengths
  • Visual picker removes CSS selector friction—click elements instead of hand-writing selectors.
  • True multi-variant generation—one config auto-generates desktop/tablet/mobile × light/dark permutations.
  • Native doc framework integrations (Next, Nuxt, VitePress, Docusaurus) with smart component delivery.
Weaknesses
  • Screenshot staleness is solved but narrow: only useful if you maintain docs with visuals.
  • Competes with Playwright/Puppeteer visual regression and Chromatic—needs strong adoption moat.
Target Audience

Documentation maintainers, technical writers, developers managing multi-variant UI docs

Similar To

Chromatic · Percy · Playwright visual testing

Post Description

I built Heroshot to solve a problem I kept hitting: documentation screenshots go stale and updating them manually is tedious.

With Heroshot you define what to capture in a JSON config (URLs, CSS selectors, viewports, light/dark mode), run `npx heroshot`, and get a browser with a visual picker. Click elements to configure captures, close the browser, run `heroshot capture`, and you're done.

Features that have been useful in practice: - Visual picker - click elements on a live page instead of writing selectors by hand - Per-domain element hiding - suppress cookie banners, chat widgets globally per domain - Dark/light mode - captures both variants in one run - Annotations - arrows, boxes, highlights baked into the PNG - Native integrations for SvelteKit, Next.js, Nuxt, VitePress - components that serve the right variant (dark/light, viewport) automatically - CI/CD ready - GitHub Actions workflow in one command

Two open-source projects adopted it: gander-tools/diff-voyager (replaced a custom Playwright script) and MRI-Lab-Graz/prism-studio (MRI research docs, even mentioned it in their JOSS paper).

Happy to answer questions about the design decisions.

Similar Projects

AI-Powered Web Automation APIs (Screenshot, Scrape, SEO, PDF)

Packages common web automation tasks — screenshots, scrapes, SEO checks and PDFs — into APIs, which is convenient but very crowded territory. The live share is broken (the page shows 'zrok share ... not found'), so you can't test reliability or AI value‑adds; unless it provides robust semantic SEO insights, evasion/anti-bot handling, or superior extraction accuracy, it's another Puppeteer/Playwright wrapper.

Ship ItNiche Gem
openclaw_ai
204mo ago