Software Heritage is a non-profit initiative and digital infrastructure dedicated to archiving, preserving, and providing access to the source code of publicly available software, together with its development history. It was founded in 2015 at the French national research institute Inria and was publicly announced on 30 June 2016. Its operations are headquartered at Inria's Rocquencourt site in France, and the project is supported by UNESCO. Its scientific advisors have included computer scientists such as Gérard Berry, Jean-François Abramatic, Serge Abiteboul, and Julia Lawall.
Mission and scope
Software Heritage's stated mission is to collect, organise, preserve, and share all software that is publicly available in source code form, with the aim of building a common, shared infrastructure serving industry, research, culture, and society. The initiative treats software source code as an essential part of scientific, technical, and cultural heritage, arguing that its long-term value cannot be determined in advance and therefore warrants broad preservation.
The archive focuses on human-readable source code rather than compiled executables. Binaries are not actively collected, although they are not filtered out if they appear within archived repositories. The project does not perform a priori filtering or quality checks on repositories; it archives anything it can obtain, leaving users responsible for checking licences before reuse.
The Software Heritage Archive
The Software Heritage Archive is described by the organisation as the largest public collection of source code in existence. Source code is gathered by crawling code-hosting forges and package repositories, including Git repositories from platforms such as GitHub, GitLab, and Bitbucket, as well as Subversion and Mercurial repositories, and package ecosystems such as npm, PyPI, CRAN, Debian's apt, and GNU source archives.
Archived content is stored in a shared data structure known as a Merkle directed acyclic graph (Merkle DAG), which organises objects such as file contents, directories, revisions (commits), releases, and snapshots. The archive is replicated across multiple mirrors in different geographical and administrative domains to reduce the risk of loss. As of October 2020, the repository reportedly held over 143 million software projects comprising more than 9.1 billion unique source files.
SWHID identifiers
Each artifact in the archive can be referenced by a SoftWare Hash IDentifier (SWHID), a persistent identifier derived intrinsically from the content of the software artifact. Core SWHIDs can identify file contents, directories, revisions, releases, or entire snapshots, and can be extended with qualifiers specifying origin, visit, anchor, path, and line ranges. The SWHID specification became the ISO/IEC international standard 18670 in April 2025.
History
Development of Software Heritage began at Inria in early 2015 under the direction of computer scientists Roberto Di Cosmo and Stefano Zacchiroli. The initiative was publicly presented on 30 June 2016. In 2017, Inria signed an agreement with UNESCO concerning long-term preservation of software source code and its wide availability. In June 2018 the archive was presented at UNESCO headquarters, and in July 2018 Software Heritage was included in the French National Plan for Open Science. In October 2018, the project's strategy was described in an article in Communications of the ACM. A meeting of international experts convened by Inria and UNESCO in November 2018 led to the February 2019 publication of the "Paris Call: Software Source Code as Heritage for Sustainable Development". In November 2019, Inria signed an agreement with GitHub to improve archival of GitHub-hosted projects. A mirroring programme was established in 2018, later joined by institutions and organisations including ENEA and FossID.
Organisation, funding, and community
Software Heritage is structured as a non-profit, multi-stakeholder initiative. It is funded largely through donations and support from sponsors, including private companies, public bodies, and academic institutions. Grants have come from sources such as NLnet—funding work that rescued Mercurial repositories phased out from Bitbucket—and the Alfred P. Sloan Foundation, which has supported development of new connectors to expand the archive's coverage. The infrastructure is developed transparently and collaboratively, and the software produced in the process is released as free and open-source software. An ambassador programme was announced in December 2020 to grow the community of users and contributors.
Recognition
In 2016, Software Heritage received a best community project award at the Paris Open Source Summit. In 2019, it received an Academic Initiative award from the French competitiveness cluster Pôle Systematic.