Use case

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.

Updated 30 October 2026
A sample film Spotlight made from a product website. Make one from yours, free
Quick answerA good README demo is 6–15 seconds, shows one command or action and its result, uses a large font, and loops cleanly. Keep the GIF light — many maintainers aim for under about 5 MB so it loads quickly, well below the larger limits often quoted for GitHub uploads. In Spotlight, record your terminal or app window in the browser (it zooms to the action), or start from the typed-command scene, then export with Landing-page loop + GIF to get the GIF, a looping MP4 and a poster in one go.

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

  1. 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.
  2. 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.
  3. Keep it to one flow, 6–15 seconds. Use the Developer tool look or the Depth preset for a dark, crisp terminal feel.
  4. 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.
  5. 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.

Keep the full launch video on your website or YouTube and link it under the GIF: “Watch the 60-second tour”.

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

  1. 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.
  2. Animated UI demo — “One command. Done.”
    The result: your app, the generated file or the dashboard. Auto-zoom lands on what changed.
  3. 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.

Make this video free

Put your product centre stage

Your launch deserves better than a screen recording.

Paste your website. See your first cut in minutes. Free to try — no card.

Questions, answered

How do I add a GIF to a GitHub README?

Commit the GIF to your repository and reference it with Markdown image syntax and descriptive alt text, near the top of the README.

How big can a README GIF be?

Sources disagree on GitHub’s exact upload limit, so aim small: many maintainers keep README GIFs under about 5 MB so they load quickly. Spotlight’s GIF export caps itself at 8 MB and is usually much smaller for a short, cropped flow.

Can I put a video in a README instead?

Yes — GitHub’s web editor can embed an uploaded MP4 with a player — but it won’t autoplay. A GIF shows the demo immediately; link the full video below it.

What should a CLI demo show?

The one command a new user runs first and its result, typed at a readable pace with a pause on the output.

Keep reading