A Plain Guide to Permissive and Copyleft Licences
Licence debates generate more heat than almost any other packaging topic. Underneath them is a simple question: when someone builds on your package and distributes the result, what do you want them to owe the next person? This guide sorts the common open source licences by their answer. It is general information to help you frame the decision, not legal advice.
The permissive family
Permissive licences ask for little beyond attribution. That makes them the default choice for small libraries that want the widest possible adoption, including inside commercial products.
- MIT: very short; keep the copyright and permission notice. Widely recognised by legal reviewers.
- BSD-2-Clause and BSD-3-Clause: similar in spirit to MIT; the three-clause version adds a restriction on using the authors' names to endorse derived products.
- Apache-2.0: longer, with an explicit patent licence from contributors and a requirement to note significant changes. Some organisations prefer it for that patent clarity.
The copyleft spectrum
Copyleft is not one thing; it varies by how far the "share alike" obligation reaches.
| Licence | Scope of the obligation, roughly |
|---|---|
| MPL-2.0 | File-level: modified files from your package stay under MPL; the rest of a larger work can use other terms. |
| LGPL | Library-level: changes to the library itself are shared, while applications that use it may be licensed differently under the conditions the licence sets out. |
| GPL | Work-level: distributed works based on the code are generally expected to be released under the GPL as a whole. |
| AGPL | Like the GPL, plus obligations when users interact with modified software over a network. |
The exact boundaries, such as what counts as a "work based on" the library, are where the legal nuance lives. Read the licence text itself, and the Free Software Foundation's and Open Source Initiative's explanations, before relying on a one-line summary like the ones above.
How the choice plays out for a package
For a library, the licence directly shapes who can depend on you. Many companies have internal policies that approve permissive licences quickly and route copyleft ones for review, especially the GPL and AGPL. If broad adoption is your main goal, that friction matters. If your main goal is that improvements flow back to the community, copyleft is the tool designed for exactly that, and MPL-2.0 is a common middle ground for libraries.
Also check compatibility with your own dependencies. A permissively licensed package that bundles GPL code is not really permissive any more for the people who install it.
Questions to answer before you pick
- Do I want companies to be able to ship my code inside closed-source products without sharing changes?
- Do I care about an explicit patent grant?
- What licences do my runtime dependencies use, and are they compatible with my choice?
- Will I accept outside contributions, and do I need a contributor agreement to keep future options open?
Once decided, declare it with a valid SPDX identifier and include the full text. choosealicense.com is a useful, neutral place to compare the options side by side.