Open Source License Compatibility Matrix
Check whether dependency licenses can be combined with your project's license, with obligations and reasons.
Dependency licenses
4 selectedDecisions for MIT
1 permitted · 1 conditional · 2 not compatible- MITPermitted
MIT is permissive and can be included in MIT; preserve the stated notices where applicable.
Obligations: Keep copyright and license notice
- Apache-2.0Conditional
Permitted in MIT when Apache notices, patent terms, and modification markings are retained.
Obligations: Keep notices and NOTICE file · Include patent-grant terms · Mark modified files
- GPL-3.0-onlyNot compatible
GPL-3.0 requires the combined work to be GPL-3.0; it cannot remain MIT.
Obligations: Distribute corresponding source · License the combined work under GPL-3.0 · Provide installation information for consumer products
- AGPL-3.0-onlyNot compatible
AGPL-3.0 applies copyleft to network interaction and requires an offer of source; the selected project license does not preserve those terms.
Obligations: Distribute corresponding source · Offer source to users interacting over a network · License the combined work under AGPL-3.0
Examples
Apache-2.0 inside GPL-3.0 is allowed
checkCompatibility("Apache-2.0", "GPL-3.0")status: "yes" — Apache-2.0 patent and notice terms are compatible with GPL-3.0-family terms.The Apache patent grant flows into GPL-3.0, so the one-way combination is permitted.
GPL-2.0 inside Apache-2.0 is denied
checkCompatibility("GPL-2.0", "Apache-2.0")status: "no" — GPL-2.0-only requires the combined distribution to remain GPL-2.0.The GPL-2.0 copyleft cannot be absorbed by Apache-2.0, and the rationale names the conflict.
About this tool
License Compatibility Matrix answers one directional question with checkCompatibility(dependency, project): can code under license X ship inside a project licensed Y? Fifteen licenses are modeled (MIT, BSD-2-Clause, BSD-3-Clause, Apache-2.0, GPL-2.0, GPL-3.0, LGPL-2.1, LGPL-3.0, AGPL-3.0, MPL-2.0, EPL-2.0, CDDL-1.0, Unlicense, CC0-1.0, ISC), each with a family (permissive, weak-copyleft, copyleft, network-copyleft, public-domain) and an obligations list. Every decision returns status yes, conditional, or no with a Permitted/Conditional/Not compatible label, a rationale sentence, and the dependency's obligations.
The decisive one-way rules are encoded directly: permissive MIT/BSD/ISC/Unlicense/CC0-1.0 are yes everywhere, Apache-2.0 is yes in GPL-3.0/LGPL-3.0/AGPL-3.0 but no in GPL-2.0/LGPL-2.1 over patent and additional-terms conflicts, GPL-2.0-only is yes solely in GPL-2.0, GPL-3.0 is yes in GPL-3.0/AGPL-3.0, and AGPL-3.0 is yes solely in AGPL-3.0 because of network copyleft. Weak-copyleft LGPL/MPL/EPL/CDDL entries are yes in same-license, GPL-3.0, or AGPL-3.0 projects and conditional elsewhere with covered-file and source-supply duties.
checkMatrix(project, dependencies) maps one project over a dependency list in order, so a MIT project pulling MIT, GPL-3.0, and AGPL-3.0 reports permissive, copyleft, and network rationales respectively. getLicenseInfo exposes names, families, and obligations such as Apache-2.0 patent grants and MPL-2.0 covered-file source duties. Unknown IDs throw Unknown license rather than guessing.
How to use this tool
Pick direction carefully
Call checkCompatibility(dependency, project) — dependency first. Reversing the arguments answers a different legal question.
Audit a dependency list
Pass the project license plus the dependency array to checkMatrix and read each status, label, rationale, and obligations entry.
Act on the status
Ship on yes, gate on conditional (preserve notices, patent terms, covered-file source), and replace or relicense on no.
Use cases
Vetting a new dependency
Check a GPL-2.0 or AGPL-3.0 library against a MIT or Apache-2.0 codebase before adding it to package.json.
Explaining a denial
Paste the non-empty rationale and obligations into a review to show why a combination is blocked.
Planning relicensing
Run checkMatrix across candidate project licenses to see which one turns every dependency green.
Common mistakes
Mistake:Assuming compatibility is symmetric.
Fix:It is one-way: MIT in AGPL-3.0 is yes but AGPL-3.0 in MIT is no. Always put the dependency first and the project second.
Mistake:Treating conditional as a free pass.
Fix:Conditional (e.g. MPL-2.0 in MIT) still requires covered-file licensing, source supply, and notice retention — read obligations before shipping.
Frequently asked questions
What does this tool do?
It answers the one-way question checkCompatibility(dependency, project) across 15 licenses with yes/conditional/no status, Permitted/Conditional/Not compatible labels, rationale sentences, and obligation lists — plus checkMatrix for whole dependency arrays and getLicenseInfo for families and duties.
Can I mix Apache-2.0, GPL-2.0, and MIT code?
An Apache-2.0 library in a GPL-3.0 project is yes (patent terms compatible); a GPL-2.0 library in an Apache-2.0 project is no (combined work must stay GPL-2.0); an MIT library is yes in every project including GPL-2.0, GPL-3.0, and AGPL-3.0. Every denial carries a non-empty rationale naming the conflict.
Is my dependency list uploaded or stored?
No. The one-way rule table and matrix mapping run entirely in your browser — licenses never leave your device.
How do I handle conditional results?
Treat conditional (e.g. MPL-2.0 in MIT) as gated: keep covered files under their license, supply source and notices per obligations, and only ship the combination once those duties are met.
Related guides
References & standards
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.gitattributes Generator
Build .gitattributes rules for line endings, Git LFS, GitHub linguist marks and merge drivers — with a one-line explanation for every rule.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
A/B Test Sample Size Calculator
Compute required sample size per variant and test duration from baseline conversion rate, minimum detectable effect, alpha and power.
ABA Routing Number Validator
Validate 9-digit US ABA routing numbers with 3-7-1 Mod-10 breakdown.