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

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):

  1. If present: license information directly present in the work file defines its license;
  2. Else, if: the work exists directly or indirectly inside a directory titled _h, the file is available under the HASH License only;
  3. Else, if: a LICENSE, LICENSE.md or LICENSE.txt file exists in the same directory as the work, this defines its license;
  4. Else, if: a LICENSE, LICENSE.md or LICENSE.txt file 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;
  5. 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

HASH Repository Licensing | HASH