Skip to content

Add the demo GIF to the GitHub and npm READMEs - #60

Merged
jmg698 merged 1 commit into
mainfrom
claude/readme-demo-gif
Jul 26, 2026
Merged

jmg698 merged 1 commit into
mainfrom
claude/readme-demo-gif

Conversation

@jmg698

@jmg698 jmg698 commented Jul 26, 2026

Copy link
Copy Markdown
Owner

What & why

Both READMEs open with text. The product's whole argument is visual — the flip — so this puts a square demo loop above the fold on the repo front page and on the npm-published cli/README.md.

This matters for the launch: link-style posts (r/coolgithubprojects, HN comments, newsletter submissions) send people straight to the README, and the flip has to be the first thing they see rather than a paragraph.

Three files:

  • README.md — GIF + "watch the full demo" link under the tagline
  • cli/README.md — same, above the intro (this is the README npm publishes)
  • docs/assets/font-lab-demo.gif — 1:1, 6.8MB, cropped to the site + panel

Absolute URL, deliberately. The image is referenced as https://raw.githubusercontent.com/jmg698/Font-Lab/main/docs/assets/font-lab-demo.gif rather than a relative path. npm doesn't reliably resolve relative repo paths, so a relative link renders on GitHub and shows a broken image on the npm page.

Consequence worth knowing: the image 404s in this PR's preview, because it points at main and the file isn't there until this merges. It resolves everywhere once merged.

docs/assets/README.md records the size budget (≤5MB, 480p/720p, 15fps, 5–8s) so future exports don't land a 45MB file in git history.

The invariants (Font Lab lives or dies on these — confirm your change keeps them)

  • The human still makes the pick. Docs-only change, no code touched.
  • preview == ship. Docs-only change, no code touched.
  • Reversible. Docs-only change, no code touched.
  • Scope unchanged. Docs-only change, no code touched.

Tests

  • The fast gate passes locally: docs-only change — no code paths affected.
  • N/A — no ship/apply/preview path touched.

Notes for the reviewer

Two things to eyeball after merge:

  1. The GIF loads on the repo front page (the raw URL returns 200 on the branch, but main is the path the READMEs actually use).
  2. It renders on npmjs.com/package/font-lab on the next publish — that's the case the absolute URL exists to protect.

The GIF is 6.8MB, a bit above the 5MB budget in the notes file. Acceptable for a one-off, but it's permanent in git history, so future re-cuts should come in under it.


Generated by Claude Code

Puts the square demo loop above the fold on the repo front page and on the
npm-published cli/README, so the flip is the first thing a visitor sees.

Referenced by absolute raw.githubusercontent URL because npm does not resolve
relative repo paths — a relative link renders on GitHub and breaks on npm.
docs/assets/README.md records the size budget for future exports.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013C7UqvNjCKLf4CXwBER97j
@jmg698
jmg698 merged commit 365cbf0 into main Jul 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants