Claude ready Build your own Github timelapse

By (@mouse) · · Images

relapse — turn your git history into a captioned video Every project has a story buried in its commit log.

The first scrappy commit. The week you tore everything down and rebuilt it. The night you finally fixed the bug that had been mocking you for a month. Most of that story stays invisible — locked inside git log where only you (and maybe your future self at 2am) ever look.

Relapse is a tiny tool that lets you tell that story as a video. It's two bash scripts and a text file. That's the whole thing.

What it does

1. timelapse.sh runs https://gource.io/ over your repo. Gource is the tool that produces those mesmerizing animations where files bloom outward from a central point as commits land — you've probably seen them on Twitter. hartlapse pipes those frames straight into ffmpeg and gives you a clean 1080p mp4.

2. captions.txt is where you turn the animation into a story. One line per caption, format unix_timestamp|caption text. You write the captions yourself — that's the whole point. "kickoff", "first paying user", "the redesign that almost killed us". Commit messages are written for developers; captions are written for viewers.

3. overlay.sh burns those captions onto the video at the exact moments the events happened in real time, scaled down to the video's compressed timeline. That's the entire tool. No config files, no framework, no opinions about your stack. If your project lives in git, it works.

How to use it git clone https://github.com/bitmousekatze/relapse.git cd hartlapse chmod +x timelapse.sh overlay.sh
# 1. render the animation ./timelapse.sh /path/to/your/repo my_project.mp4
# 2. edit captions.txt (use git log --format='%ct|%s' to grab timestamps)
# 3. burn them in ./overlay.sh my_project.mp4 captions.txt my_project_final.mp4

You need gource, ffmpeg, and bash. On Windows, git-bash works. On macOS, brew install gource ffmpeg. On Linux, your package manager has both. Tuning lives in environment variables — SECONDS_PER_DAY, FPS, WIDTH, HOLD (caption duration), BOX_OPACITY. Defaults are sensible.

The README has the full table.

Using Claude Code? The repo includes a CLAUDE.md that teaches Claude the full workflow — picking the right pace for your repo's history span, proposing caption candidates from git log, and avoiding the common pitfalls. Open the cloned folder in Claude Code and say "make a timelapse of this repo." That's it.

It started as a one-off for the https://github.com/ project. The scripts were small enough to share. MIT licensed, no telemetry, no analytics, no signup. Just a video at the end.

https://bitmousekatze.github.io/relapse/

Tech stack

  • Claude Code

Prompt steps

  1. Step 1

    Whats a prompt we can use to guide claude into make a timelaps video like the one we have in \Desktop\DocXHartInfo\HART_Timelapse?
    
    Output: 
    Here's the actual setup so the prompt matches: it's a hybrid timelapse — (1) a Gource
      animation of git history, plus (2) a per-commit screenshot reel where Claude checks out
      specific commits, sanitizes secrets in the working tree, and renders pages via headless
      Edge.
    
      A prompt that reproduces that workflow:
    
      I want a git-history timelapse video for the repo at <ABSOLUTE_REPO_PATH>,
      output to <ABSOLUTE_OUTPUT_DIR>. Match the structure of
      C:/Users/joeld/Desktop/DocXHartInfo/HART_Timelapse (capture.sh, shots/,
      captions.txt, gource log + mp4, ffmpeg log).
    
      Produce two artifacts:
    
      1. Gource animation of the full git history
         - 1920x1080, ~30s–60s, hide filenames if noisy, log to gource.log,
           pipe to ffmpeg (libx264, yuv420p, crf 18) → <name>_gource.mp4.
    
      2. Per-milestone screenshot reel
         - Pick ~10–15 meaningful commits across the repo's history (kickoff,
           major redesigns, new features, bugfixes, current HEAD). Show me the
           proposed list (date | short hash | label | pages-to-shoot) BEFORE
           capt…
  2. Step 2

    Can we build a setup people can clone on github?
    
    Output:
    Yeah, doable. Before I start, the main design choice:
    
      Scope: the original works because HART is a static HTML site — the screenshot reel renders
      pages directly. For a public template, you have three options:
    
      1. Gource-only (universal): works on any repo, one script, no per-project config. Easiest
      to ship, least impressive output.
      2. Gource + static-site reel (what you have): keep the dual-artifact setup, but require
      users to declare milestones + pages in a config file. Works for static sites only.
      3. Gource + pluggable renderer: config picks static-html | npm-build | docker-compose |
      none. Most useful, most surface area to maintain.
    
      My recommendation: #2, shipped as a template repo (git-timelapse or similar) with:
      - config.yml — entries list, sanitize patterns, output settings
      - capture.sh — cross-platform bash (works in git-bash on Windows + Linux/macOS), reads
      config
      - gource.sh — separate script for the animation
      - combine.sh — optional ffmpeg step to splice screenshots + gource + captions into one
      video
      - README.md with quickstart, the Edge/Chrome path note for Windows, and a worked ex…
  3. Step 3

    Should we brand it with HART? If we should brand it call it hartlapse in my github folder so I can upload it as a new repo?
    
    Output:
    Done. C:/Users/joeld/Documents/github/hartlapse/ has:
    
      - timelapse.sh — gource → ffmpeg, configurable via env vars
      - overlay.sh — builds an SRT from captions.txt and burns it onto the video
      - captions.txt — example/template, unix_timestamp|caption text format
      - README.md — install, usage, tuning table, Windows note, "what's not included yet" pointer
       to the screenshot reel
      - LICENSE (MIT), .gitignore
    
      No git init — push it up however you prefer (GitHub Desktop, gh repo create, web UI).
      Suggested first commit message: initial: gource timelapse + caption overlay scripts.
  4. Step 4

    Now i need a prompt so anyone who uses claude code can get a jumpstart when claude reads this file, include a claude context file in the repo
    
    Output: 
    Added CLAUDE.md. It tells Claude:
    
      - What the repo is and what NOT to scope-creep into
      - A 7-step default workflow to drive — verify deps → pick SECONDS_PER_DAY from the repo's
      history span → render → propose captions from git log → confirm with user → burn → report
      - Common failure modes (SECONDS_PER_DAY mismatch, missing first caption anchor, Windows
      paths, shallow clones, pix_fmt)
      - Hard rules: don't modify the target repo, don't edit the scripts for tuning (use env
      vars), don't auto-write captions without user review, don't suggest the screenshot reel
    
      Two things worth flagging:
    
      1. Add a one-liner to README.md pointing at it, so users know it's there: something like
      "Using Claude Code? See CLAUDE.md — Claude will follow it automatically when run in a
      clone." Want me to add that?
      2. The repo now has 7 files — final list: timelapse.sh, overlay.sh, captions.txt,
      CLAUDE.md, README.md, LICENSE, .gitignore. Ready to push.
  5. Step 5

    Just for fun can we make it look pretty with the HART website style? Give the page a nice static html file github pages I can link too please :3
    
    Output: 
    Done. index.html is self-contained (inline CSS, no build step) so GitHub Pages will serve
      it as-is.

Comments (5)

  1. Jack Herzlich · · 1 like

    This is one of the coolest builds I've seen on Prompted to date. I'm going to put this in my own project, the video is awesome. This looks like a really fun tool, and you explained what it is and how to use it INCREDIBLY. We're excited to see what else you have to share and the other cools tools and ideas you have!

  2. Gordon · · 1 like

    This is honestly such a brilliant idea. Git history really does hold the emotional journey of every project, but most of that story never gets seen outside the development team.

    1. mousedevv ·

      Thank you! If you make a timelapse of your repo share it !!

  3. Bassey · · 1 like

    I love how simple and focused this tool is. Two bash scripts and a text file is such a refreshing approach in a world where everything becomes a giant framework.

  4. Zainab · · 1 like

    This is such a creative way to showcase the behind-the-scenes story of a project. People often only see the polished final product, but the real magic is in all the iterations, mistakes, rebuilds, and late-night bug fixes. A tool like this makes that invisible work visible, which is amazing.

  5. Lateef · · 1 like

    I really appreciate the no-signup, no-telemetry, MIT-licensed approach. It feels like a genuine builder’s tool made for developers rather than another product trying to lock people into a platform.

19 likes · 6 comments · 4 views

Explore more on Prompted