The Licence Compliance Landscape for Package Authors
You chose a licence and added a LICENSE file. For many of your users that is only the first step: their legal or compliance team runs an automated scan over every dependency, and your package either passes cleanly or generates a ticket. This overview explains who does that checking, what standards they rely on, and how to make your package easy to approve.
Who cares about licences downstream
Licence compliance is mostly done by companies that ship software containing open-source components, whether in a SaaS product, a mobile app or a device. Typical actors are an internal open-source programme office, legal counsel, and security or platform teams who operate the scanning tools. Their job is to know which licences are present, whether obligations such as attribution or source availability are met, and whether any licence conflicts with how the product is distributed. They are not hostile to open source; they simply need machine-readable, unambiguous information.
The standards that make this work
- SPDX, a Linux Foundation project, defines the SPDX License List of short identifiers (such as
MIT,Apache-2.0,GPL-3.0-or-later) and an expression syntax for combinations likeMIT OR Apache-2.0. The SPDX specification is also an international standard, ISO/IEC 5962. - OpenChain, also under the Linux Foundation, specifies what a good organisational compliance programme looks like; its specification is published as ISO/IEC 5230.
- REUSE, from the Free Software Foundation Europe, sets conventions for putting licence and copyright information in every file, with a linter to check it.
- The Open Source Initiative maintains the list of licences it has approved as meeting the Open Source Definition.
How scanners read your package
Compliance tools look in several places, roughly in this order: the licence field in your manifest, the LICENSE or COPYING file, per-file headers, and finally heuristics on any text that looks like licence language. Problems arise when these disagree or are vague. A manifest that says "license": "BSD" is ambiguous because there are several BSD licences. A custom licence with no identifier forces a human review every time.
Making a scanner's life easy looks like this:
# pyproject.toml (PEP 639 style)
[project]
license = "Apache-2.0"
license-files = ["LICENSE", "NOTICE"]
// package.json
{ "license": "MIT" }
Open questions
Some issues remain unsettled. Licence detection in vendored or copied code is still unreliable. "Source-available" licences that restrict commercial use are increasingly common and are not open-source licences under the OSI definition, which surprises some users. The relationship between licence obligations and software bills of materials is also evolving, as SBOMs now commonly carry licence data alongside version data. Licence questions with legal consequences belong with a qualified lawyer; this page is general information only.
For the practical side, see how to set an SPDX identifier and dependency licence compatibility questions.