TIL: Downloading archived Git repositories from archive.softwareheritage.org

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Deleted Git repositories can be recovered from archive.softwareheritage.org, and Willison's write-up and CORS-based retriever tool make that recovery procedure practical for anyone.

Read this as

Simon Willison discovered that a free, open-source Python library called sqlite-s3vfs, built by the UK government's Department for Business and Trade, had vanished from GitHub, its address now a 404. He recovered the code from Software Heritage, an archive that keeps copies of software. He wrote a guide on the process and built a simple web tool that retrieves archived repositories. Anyone losing access to open-source code can now follow the same steps.

A taxpayer-funded open-source project, sqlite-s3vfs from the UK's Department for Business and Trade, disappeared from GitHub in a repository deletion. Simon Willison restored it from the Software Heritage archive and republished it as simonw/sqlite-s3vfs. The takeaway for decision-makers: open-source code you depend on can vanish without notice, and archival coverage is the difference between recovery and permanent loss. No costs are discussed in the article.

The github.com/uktrade/sqlite-s3vfs repository returned a 404, but a full copy existed in the Software Heritage archive. Willison published a TIL documenting the non-obvious recovery procedure and shipped a Software Heritage Repository Retriever tool that uses Software Heritage's CORS-enabled APIs. He also shared the Claude Code transcript used to build the tool. The recovered copy lives at github.com/simonw/sqlite-s3vfs; the article omits technical details of the SQLite-over-S3 library itself.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

sqlite-s3vfs Software Heritage GitHub Department for Business and Trade Claude Code archive.softwareheritage.org

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.