37 comments

  • CyberShadow14 hours ago
    Same, I&#x27;ve added a .#screenshots derivation. High up-front effort but almost zero maintenance afterwards.<p>Bonus: since you&#x27;re generating screenshots programmatically anyway, you can generate a pair of each with your app&#x27;s light&#x2F;dark theme, and swap them in&#x2F;out depending on prefers-color-scheme: dark. &lt;picture&gt; elements work in GitHub READMEs, too: <a href="https:&#x2F;&#x2F;github.com&#x2F;CyberShadow&#x2F;CyDo#readme" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;CyberShadow&#x2F;CyDo#readme</a>
    • 9dev3 hours ago
      The &lt;picture&gt; in README trick works like magic. Thank you! I&#x27;m going to steal it.
    • neobrain7 hours ago
      +1 for this approach. For a mobile app, I made Nix spawn an ephemeral Android emulator instance for generating up-to-date screenshots, requiring no prior setup and leaving no lingering data around after running. Setting it up wasn&#x27;t that high-effort in my case either; coming up with the idea was the hard part, the Nix code was one-shot by your favorite LLM.<p>Granted manually updating the screenshots isn&#x27;t the most laborious task in the world, but the &quot;upload-apk + take-screenshot + transfer-back-to-PC + edit&quot; process is usually barely annoying enough that you end up almost never doing it otherwise (similar to the OP&#x27;s experience in the closing paragraph).
  • markaius32 minutes ago
    This reminds me of an small app I wrote and didn&#x27;t do anything with-- You would choose an API &#x2F; endpoint to grab data from, then choose how to display that text on a prebuilt or custom uploaded picture. On the ping it would rebuild the image and put the updated text from the api on it so you could have images with more current information (every 5&#x2F;10&#x2F;30 mins, etc.) Updating readmes with new screenshots on push is probably a much less cpu and better way to do dynamic image generation, for this use case.<p>I never ended up using the idea the way I wanted, but this makes me think there&#x27;s potential in this dynamic image domain yet!
  • Nashooo8 hours ago
    Hey, you need to make your code examples horizontal scrollable on mobile! I could still guess their content based on context clues but still.
  • spuz3 hours ago
    The only problem with this idea I can forsee is that the application and therefore the screenshots can change but the documentation does not. For example, if the documentation says press &quot;Options &gt; Customize&quot; but the application is updated so this becomes &quot;Preferences &gt; Advanced&quot; then the screenshot will show the new text but the documentation will still show the old labels. This would be very confusing as it would be hard to correlate what is being shown on the screenshot with the text. If the user saw the old screenshot they could more easily identify that they were looking at an out of date documentation.<p>Having said that, have a process to automatically grab screenshots is going to make it significantly easier for a developer to update the docs so the motivation to keep the text up to date is going to be much higher.
  • amiga3865 hours ago
    If the author is reading this, please note your code blocks don&#x27;t scroll (and in fact overflow the white text onto the white background) on mobile layouts. You need an &quot;overflow-x: scroll&quot; or such.
  • martylamb37 minutes ago
    Very nice. I did something in a similar spirit eons ago for capturing CLI tool output directly into my docbook-based documentation. In my case it was also part of a build, generating intermediate .xml prior to running the docbook build.<p>Ancient historical reference: <a href="https:&#x2F;&#x2F;martiansoftware.com&#x2F;lab&#x2F;rundoc" rel="nofollow">https:&#x2F;&#x2F;martiansoftware.com&#x2F;lab&#x2F;rundoc</a>
  • furyofantares14 hours ago
    Very cool.<p>For the small casual games I&#x27;ve been vibe coding, I always start from a place where the application has a CLI where it can run headless, rendering to offscreen texture, with a a screenshot command as well as performance instrumentation. It takes no time to include all this, and gives the agent a way to automate the ui and inspect important things. It also lets me trivially have the agent update screenshots.<p>Not as neat as being part of the build process, but I will now add that.
    • vidarh4 hours ago
      I was toying with a DragonRuby game a while back, and did something like that. But DR also comes with recording reproducible playbacks, screenshotting etc. built in, couple hot reloading and easily being able to inject code into the running game, and it was great putting in place instructions so the agent could run the game fully and show off things for me in addition to allowing it to test things. I think we&#x27;ll see more and more frameworks built to enable this - it&#x27;s nice for human development, but it <i>really</i> pays off when you&#x27;re working with an agent to have everything nicely runnable from a CLI and fully introspectible.
    • sho_hn12 hours ago
      I do the same :-)<p>I have an offscreen screenshot path, as well as a CLI arg for world pos&#x2F;camera view vector, and scripted benchmark runs with a simple text-based input format that has rows of named segments of n game ticks length with control inputs per segment. Use that extensively for A&#x2F;B testing of visuals and performance while working on the game code.
    • _fzslm12 hours ago
      Would you mind sharing a link to some of these casual games? I ask cuz I&#x27;m also interested in how vibe coding can make game development easier.<p>We had such a vibrant indie game scene when Adobe flash was about and since then nothing&#x27;s really touched that level of ease of development. I think vibe coding is the first tool that actually exceeds it.
      • furyofantares19 minutes ago
        Unfortunately I can&#x27;t right now, I&#x27;m going to release a few things simultaneously but they aren&#x27;t public yet. They will eventually show up on <a href="https:&#x2F;&#x2F;kellydornhaus.com" rel="nofollow">https:&#x2F;&#x2F;kellydornhaus.com</a>
      • ryanjshaw7 hours ago
        Search for #vibejam on X, there’s a contest running right now with lots of people sharing their dev experiences.
        • crefiz5 hours ago
          Since you cannot seem to be able to share the url: <a href="https:&#x2F;&#x2F;x.com&#x2F;search?q=%23vibejam&amp;src=typed_query" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;search?q=%23vibejam&amp;src=typed_query</a><p>And for those of you: <a href="https:&#x2F;&#x2F;XCancel.com&#x2F;search?q=%23vibejam&amp;src=typed_query" rel="nofollow">https:&#x2F;&#x2F;XCancel.com&#x2F;search?q=%23vibejam&amp;src=typed_query</a>
    • avaer10 hours ago
      &gt; It takes no time to include all this<p>In some cases it does. Which engine?
      • furyofantares1 hour ago
        I don&#x27;t use an engine for vibing, they tend to be built around managing content and using their editors. You can drive engines from code but they are more built for invoking code from content usually. So I just use frameworks like SDL, Raylib C# and ebitengine. Most stuff I&#x27;ve done recently was ebitengine because I felt golang was the best thing to have LLMs writing when I started them.<p>Right now I have my own framework which has a host written in Rust but game code is written in AssemblyScript - too early to tell how well this will work out but it is very promising to me right now.<p>If I were just getting started I would probably pick some framework in Rust, or maybe Bevy which I believe is considered an engine but is code-centered.
  • merelysounds12 hours ago
    This is very useful in mobile projects.<p>App stores require screenshots, but generating N images for NUMBER_OF_SCREEN_SIZES times NUMBER_OF_LOCALIZATIONS can be a chore.<p>In the past I wrote my own scripts for that, today tools like Fastlane[1] help.<p>I use Fastlane for my logic puzzle game Nonoverse[2], you can see sample screenshots in its App Store page.<p>I also automated App Preview video recording, complete with multiple scenes. If anyone wants to read more let me know, perhaps this is a good topic for an article.<p>[1]: <a href="https:&#x2F;&#x2F;fastlane.tools&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fastlane.tools&#x2F;</a><p>[2]: <a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;nonoverse-nonogram-puzzles&#x2F;id6748441182">https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;nonoverse-nonogram-puzzles&#x2F;id6...</a>
    • jdnebdbd9 hours ago
      That sounds enticing! I can&#x27;t figure out if it&#x27;s a paid service or a local OS application though
      • merelysounds8 hours ago
        Fastlane is a local, open source CLI tool.<p>&gt; 100% open source under the MIT license<p>See: <a href="https:&#x2F;&#x2F;docs.fastlane.tools&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.fastlane.tools&#x2F;</a><p>It doesn’t support App Preview automation, this is something that I had to script myself.
  • LeoDaVibeci1 day ago
    I&#x27;ve needed this so many times. BTW this should be a meme: &quot;I think this might be the neatest thing I’ve built in X that nobody will ever notice.&quot;
  • Mackser7 hours ago
    Super cool! Love that you can declare the screenshots inline in the markdown document.<p>For my desktop app I created a solution that generates screenshots in multiple languages, light&#x2F;dark mode, removes noise and adds Windows&#x2F;macOS window frames.<p>Wrote about it here: <a href="https:&#x2F;&#x2F;maxschmitt.me&#x2F;posts&#x2F;cakedesk-website-redesign#screenshots" rel="nofollow">https:&#x2F;&#x2F;maxschmitt.me&#x2F;posts&#x2F;cakedesk-website-redesign#screen...</a><p>It&#x27;s currently a separate script (which is a pain to maintain). I should look into making it a part of the markdown&#x2F;mdx. Thanks for the inspiration!
  • infogulch1 hour ago
    Can you do the same thing for websites with playwright&#x2F;selenium?
  • amelius3 hours ago
    Speaking of screenshots.<p>Can we please agree that the OS should not send any event to applications while a screenshot is being made?<p>It is very annoying if you press a screenshot button and suddenly menus disappear. Or much worse, the application sends a &quot;screenshot taken&quot; message back to the social media platform.
    • reddalo2 hours ago
      I also can&#x27;t stand Android preventing me from taking a screenshot. It&#x27;s on my screen, I have the right to take a screenshot.<p>I understand the technical limit of taking screenshots of DRM-protected content (e.g. Netflix), but why would my bank app be allowed to stop me from taking screenshots?
      • Ylpertnodi34 minutes ago
        Ask them?
      • pwdisswordfishs2 hours ago
        Solution: don&#x27;t use mobile bank apps.
        • reddalo9 minutes ago
          I&#x27;m forced to use a bank app in order to authenticate, even if I want to login on the desktop website. I think it&#x27;s because of an EU regulation for strong authentication.
    • cbm-vic-203 hours ago
      The MacOS built-in screenshot tool has an optional &quot;timed delay&quot; feature, where you can click &quot;screenshot in 5 seconds&quot;. With that time, you can open menus, or do anything that requires events to be processed by the application. Very handy for screenshots that require something to be clicked on.
      • amelius3 hours ago
        I mean, I can probably do the same in X11 using xwd, with a sleep.<p>But I just don&#x27;t want my screenshot button to do anything else than taking a screenshot.
  • schneems13 hours ago
    This is neat. I wrote <a href="https:&#x2F;&#x2F;github.com&#x2F;zombocom&#x2F;rundoc" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zombocom&#x2F;rundoc</a>. It has a similar feature. The main driver is to produce tutorials so it also puts the output of commands run back in the document.
  • taspeotis14 hours ago
    I’ve wondered about doing screenshots from the e2e test run, even keeping docs&#x2F; all together in the same repo so when you update the documentation and need a new screenshot you add a new test
  • cocoto9 hours ago
    Wouldn’t a real live render approach work in this case? Have a live preview of your tool inside a rectangle. If the tool is light it should be optimal visually: it will respect browser rendering settings like accessibility parameters or custom addons.
    • kristopherleads4 hours ago
      Don&#x27;t we already have this in HTML5?
    • boxed8 hours ago
      Or just statically build the HTML. That&#x27;s what we do for iommi docs: <a href="https:&#x2F;&#x2F;kodare.net&#x2F;2025&#x2F;01&#x2F;14&#x2F;iframes-not-screenshots.html" rel="nofollow">https:&#x2F;&#x2F;kodare.net&#x2F;2025&#x2F;01&#x2F;14&#x2F;iframes-not-screenshots.html</a>
    • npodbielski8 hours ago
      Also it would be a security issue?
  • maderalabs13 hours ago
    Nice! I actually started to build this exact thing a couple years back, and ended up abstracting it out to something more generic with <a href="https:&#x2F;&#x2F;picshift.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;picshift.io&#x2F;</a>. That said, I still love the screenshot use case - the original name of this project was ScreenSync ;)
    • Barbing11 hours ago
      Neat, good job, and good to have these different approaches out there
  • efortis1 day ago
    same here, but linking to the screenshots used for pixel diffing, which get committed to the repo.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ericfortis&#x2F;mockaton&#x2F;tree&#x2F;main&#x2F;pixaton-tests&#x2F;tests" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ericfortis&#x2F;mockaton&#x2F;tree&#x2F;main&#x2F;pixaton-tes...</a>
  • kalb_almas12 hours ago
    I&#x27;m sometimes getting<p>NoMethodError at &#x2F;self-updating-screenshots undefined method `name&#x27; for nil:NilClass<p>Ruby title-for: in handle, line 12 Web GET interblah.net&#x2F;self-updating-screenshots<p>followed by a very detailed traceback when I try to access the page
  • Biganon9 hours ago
    You should set DEBUG=False in your Django settings.
  • xp8412 hours ago
    Bravo. This is incredibly useful, and really improves the quality of documentation, especially for many applications whose design and UI are always in flux.
  • borplk7 hours ago
    Site appears to be down intermittently with a Django error<p>If author sees this: Turn off Django debug mode
  • bobek11 hours ago
    Plus we had a visual diff on the top of that as a part of the CI pipeline. It prevented a bunch of mishaps ;)
  • willm10 hours ago
    I approve of this approach.<p>The docs for Textual (TUI library for Python) build screenshots along with the docs. Technically not really screenshots, they are SVGs, but principle is the same. They never get out of date.<p><a href="https:&#x2F;&#x2F;textual.textualize.io&#x2F;widgets&#x2F;markdown&#x2F;#example" rel="nofollow">https:&#x2F;&#x2F;textual.textualize.io&#x2F;widgets&#x2F;markdown&#x2F;#example</a>
  • est14 hours ago
    I maintain an internal wiki, the contents were generated by each CI&#x2F;CD and always reflects from latest running code.
  • dhruv300610 hours ago
    This is very cool - I think I will try having this in <a href="https:&#x2F;&#x2F;voiden.md&#x2F;" rel="nofollow">https:&#x2F;&#x2F;voiden.md&#x2F;</a>.
    • Diti6 hours ago
      “Crafted with care”, but the website has all the telltale signs of LLM slop.
  • boxed8 hours ago
    For web projects, consider not doing screenshots at all and just embedding the html: <a href="https:&#x2F;&#x2F;kodare.net&#x2F;2025&#x2F;01&#x2F;14&#x2F;iframes-not-screenshots.html" rel="nofollow">https:&#x2F;&#x2F;kodare.net&#x2F;2025&#x2F;01&#x2F;14&#x2F;iframes-not-screenshots.html</a><p>You can get responsive design <i>in &quot;screenshots&quot;</i> with this. Super nice, and people can copy paste, look at the code (useful for dev tools), etc.
  • davidtio9 hours ago
    Interesting app, definitely will reduce a lot of work updating documentation.
  • 3eb7988a166314 hours ago
    shot-scraper is another project in this vein.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;simonw&#x2F;shot-scraper" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;simonw&#x2F;shot-scraper</a>
  • ekjhgkejhgk6 hours ago
    &gt; Your users might not notice, but you know, and it gnaws at you.<p>The users WILL DEFINITELY notice if the screenshots don&#x27;t match what they have in front of their eyes.
  • npodbielski6 hours ago
    I do not know why but looking at the title I was sure that this involves something like webserver that updates static file it serves by some external webhook.
  • irishcoffee13 hours ago
    I wrote a gui app once that ran on a safety-critical platform. I ended up stuffing a rendering of the gui (rendered offscreen) into shmem at I think 24hz, and rendered that screenshot into the safety critical application. I passed clicks (no typing for this gui) back from the statically rendered image updating on a cadence, to the offscreen GUI.<p>Worked well. Not quite the same as this, but that’s what this reminds me of.
    • yjftsjthsd-h12 hours ago
      I don&#x27;t think I follow. What is that giving you that you wouldn&#x27;t get by just having the user click in the application and see its real interface directly? Or are you saying you were embedding one application inside another?
      • jfim12 hours ago
        My guess is that it&#x27;s to ensure that the UI logic crashing or hanging doesn&#x27;t bring down the safety critical process.
        • irishcoffee4 hours ago
          The rendering of the safety-critical application was written completely in C using OpelGLSC (<a href="https:&#x2F;&#x2F;www.khronos.org&#x2F;openglsc&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.khronos.org&#x2F;openglsc&#x2F;</a>) to render the GUI, and had to pass a formal validation suite (MISRA was the big one IIRC). Simply put, the safety critical application essentially was not allowed to &quot;fail in an unsafe manner&quot; in the DO-178 sense. Using javascript, or some c++ gui library was very much out of the question.<p>Fortunately, this was not an airborne platform, so failing safely was much simpler than what a true aviation stack or medical stack would need to do.
  • sublinear7 hours ago
    Why wouldn&#x27;t you want to version the screenshots along with the text? That&#x27;s a feature, not a bug.<p>At best, this seems to require an unpublished draft state for all automatic screenshot updates until explicitly approved so that mistakes don&#x27;t leak out to everyone else.<p>At worst, this is an unrealistic level of discipline to keep things in sync that is far greater than just updating the docs normally with the next major version release.<p>My alternative suggestion would be to make sure your test suite takes screenshots with every build. They&#x27;re already perfectly organized and in the context of what you&#x27;re documenting.
  • immanuwell1 day ago
    nice, embedding the capture instructions right in the markdown as comments is a dead-simple solution that&#x27;ll age way better than any fancy external tooling
    • oneeyedpigeon3 hours ago
      Except that it&#x27;s brittle—HTML comments can be stripped. I wonder why they chose this approach vs. frontmatter.
  • erikmay10 hours ago
    Awesome! Now you could even go a step further and add satori to the pipeline to add content to the the fresh screenshot. This way annotation could be easily added to the screenshot.
  • devmor12 hours ago
    Really love this, it should be standard practice!
  • TranspectiveDev12 hours ago
    [dead]
  • Xmd5a11 hours ago
    &gt; Then you change the UI slightly – tweak a colour, move a button, update some copy – and suddenly every screenshot that includes that element is stale. You know they’re stale. Your users might not notice, but you know, and it gnaws at you.<p>F<p>Related: Sabotaging projects by overthinking, scope creep, and structural diffing – <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47890799">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47890799</a>
    • cluckindan11 hours ago
      Read the article you’re linking to, it is not relevant here.
      • Xmd5a5 hours ago
        Of course it is, he managed to avoid this pitfall, I &quot;press F to pay respect&quot;
        • spuz3 hours ago
          &quot;F&quot; usually means somebody did something wrong and you are paying respect to their memory. You don&#x27;t say it as a form of congratulations.
          • Xmd5a2 hours ago
            &gt; did something wrong<p>Nah it&#x27;s for those who sacrificed their own life, those who succumbed to the call of duty (or to the imperium of perfection) and put their teammates first.