Software Heritage
Nonprofit initiative, launched by Inria in 2016 and supported by UNESCO, that collects, preserves and shares the source code of publicly available software.
Software Heritage is a nonprofit initiative dedicated to archiving the world's software source code. It systematically collects code from public development platforms such as GitHub and GitLab, from package repositories and from Linux distributions, and it preserves both the files and their full development history. The archive is one of the largest collections of source code ever assembled, covering hundreds of millions of projects. Anyone can browse it online, and researchers can access it in bulk. The initiative treats source code as part of humanity's cultural and scientific heritage, comparable to books or scientific papers.
Software Heritage was launched in 2016 by Inria, the French national research institute for digital science and technology, under the leadership of computer scientists Roberto Di Cosmo and Stefano Zacchiroli. UNESCO became a partner in 2017 and has supported its mission of preserving software as heritage. Technically, the archive stores all code in a single deduplicated graph built on Merkle structures, similar to the way Git stores data, so identical files are kept only once. Each artifact receives an intrinsic, persistent identifier called a SWHID, which can be cited in research papers to point to an exact version of code.
The archive addresses a real risk: code hosting services close, projects are deleted and history is lost, as happened when Gitorious and Google Code shut down in the mid-2010s. By preserving code independently of any platform, Software Heritage supports reproducibility in science, long-term maintenance of software and the study of how programs evolve. It complements web archiving efforts such as those of the Internet Archive, and it gives scientists a stable way to cite the exact software used in their work.
Key points
- Software Heritage archives publicly available source code along with its full development history.
- It was launched in 2016 by Inria, with UNESCO as a partner since 2017.
- Its deduplicated archive uses Merkle structures and gives every artifact a persistent identifier called a SWHID.
- The archive supports reproducible research by letting scientists cite the exact code they used.
In their own words
...a nonprofit dedicated to archiving the world's source code.
Related entries
Version Control
System that records changes to files over time so that people can track history, revert mistakes and collaborate on the same codebase.
Git
Free and open-source distributed version control system created by Linus Torvalds in 2005, used to track changes in source code.
Merkle Tree
Tree data structure in which each non-leaf node holds a hash of its children, enabling efficient and secure verification of large data sets.
Open Source
Approach to software in which source code is published under a license that lets anyone inspect, modify and redistribute it.
Web Archiving
Practice of collecting and preserving web pages and online content so that they remain accessible after they change or disappear.
Internet Archive
Nonprofit digital library founded in 1996 that preserves websites, books, software, music and video and offers free access to its collections.
Reproducible Builds
Practice of making software builds deterministic so anyone can rebuild published binaries from source and get bit-for-bit identical results.
GitHub
Web platform owned by Microsoft for hosting Git repositories and collaborating on software through pull requests, issues and automation.
Featured in guides
Referenced by
Other entries that discuss or point to Software Heritage.