Demo GIFs and Videos for GitHub READMEs and Open-Source Launches
Most visitors decide whether to star or clone a repo before they scroll past the first screen of the README. A ten-second demo that shows the command and the result does more than three paragraphs of features. Here is how to make one that loads fast and reads clearly.
What a README demo has to do
A README is read top to bottom by people who are deciding in seconds. The demo sits right under the title and has three jobs: show what you type, show what you get, and make it obvious how little effort it takes. Everything else — options, flags, architecture — belongs further down.
- One flow. The install-and-first-run, or the single command that makes people say “oh, nice”.
- Readable at README width. GitHub renders the README at roughly 900 px wide on desktop and much narrower on phones. Big font, tight crop.
- Silent by nature. GIFs have no sound, so the typed command and the output are the story.
- Loops cleanly. It will play over and over while people read; a pause on the result before it restarts helps.
How to make it in Spotlight
- Record the terminal or app window with Spotlight’s browser recorder — no install — or upload a recording from asciinema, VHS, OBS or QuickTime. Spotlight reads your pointer and clicks and the changes on screen, and zooms there.
- Or skip the recording for a CLI: the prompt → answer scene in terminal mode types the command and prints the output you paste in, in a monospaced terminal card.
- Keep it to one flow, 6–15 seconds. Use the Developer tool look or the Depth preset for a dark, crisp terminal feel.
- Export with Landing-page loop + GIF. You get an animated GIF (up to 720 px wide, stepped down automatically to stay at or under 8 MB), a looping MP4, a WebM and a poster frame.
- Export the full film too in 16:9 and 9:16 for the launch posts on X, LinkedIn and Hacker News — same project, same export.
Adding it to your README
Commit the GIF to the repo (for example under `docs/` or `.github/`) and reference it with standard Markdown image syntax, with alt text that describes what it shows. You can also drag an MP4 into a README in GitHub’s web editor, which uploads it and embeds a video player; it won’t autoplay, so a GIF is still the better first impression. Check GitHub’s documentation for the current upload size limits.
Common mistakes
- A 40 MB GIF of the whole screen. Crop to the window, shorten to one flow and let Spotlight size it.
- Typing in real time. Speed up long typing and installs; label anything sped up if timing matters.
- Tiny text. Increase the terminal font size before recording, or zoom in on the output.
- Secrets on screen. Use a throwaway token and cover anything private with a frosted highlight.
Scene-by-scene plan
16:9 · about 15s · Depth style
- Prompt → answer — “npx [your-tool] init”Terminal mode: the install or first command types itself and the real output prints. Use the exact command from your README.
- Animated UI demo — “One command. Done.”The result: your app, the generated file or the dashboard. Auto-zoom lands on what changed.
- End card / CTA — “[repo-name] — star it on GitHub”Optional for the GIF (cut it if the loop should wrap straight back to the command); keep it for the launch-post MP4.