HASH Repository Licensing
About Our Codebase
We operate a large public monorepo, and various parts of the HASH codebase are available under a number of different terms, including several open-source licenses.
On this page you can find links to the full texts of the licenses in use, alongside instructions for determining which license applies to a particular file, feature, library, or other piece of work.
Licenses In Use
→
Open-source licenses: Code in thehashrepository defaults to being dually-available under the MIT License and Apache License 2.0. The vast majority of our code is open-source, and available under these licenses or the GNU Affero General Public License 3.0.→
Source-available code: A small minority of code in the HASH repo (which primarily relates to functionality of HASH that is only relevant to enteprise customers) is provided on a “source available” basis, and distributed under our own HASH License. You can read more about our approach to open-source on the HASH Developer Blog.
License Determination
The following rules apply on the main branch of the hash repository only.
The license for a particular work is defined in accordance with the following prioritized rules (precedence established first-to-last):
→
If present: license information directly present in the work file defines its license;→
Else, if: the work exists directly or indirectly inside a directory titled_h, the file is available under the HASH License only;→
Else, if: aLICENSE,LICENSE.mdorLICENSE.txtfile exists in the same directory as the work, this defines its license;→
Else, if: aLICENSE,LICENSE.mdorLICENSE.txtfile is found when exploring parent directories of the work up to the project top level directory, the first one encountered defines the license applicable to the work;→
Otherwise: by default, the work is dually available under both the MIT License and Apache License 2.0, at your option.
No license is granted by HASH to any work or files on branches other than main. These rules only apply to the hash repository, and any other repositories will contain separate copyright and/or licensing information.
Clarifications
If you require an alternative license, or have any other questions, please contact us.
Create a free account
Sign up to try HASH out for yourself, and see what all the fuss is about
By signing up you agree to our terms and conditions and privacy policy