DevTools Logo

Open Source License Compatibility Matrix

Open Source License Compatibility Matrix

Check whether dependency licenses can be combined with your project's license, with obligations and reasons explained locally.

Project and dependencies

Choose your project's distribution license, then select every dependency license to review.

Dependency licenses

Examples

Apache-2.0 inside GPL-3.0 is allowed

Input
checkCompatibility("Apache-2.0", "GPL-3.0")
Output
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

Input
checkCompatibility("GPL-2.0", "Apache-2.0")
Output
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

  1. Pick direction carefully

    Call checkCompatibility(dependency, project) — dependency first. Reversing the arguments answers a different legal question.

  2. Audit a dependency list

    Pass the project license plus the dependency array to checkMatrix and read each status, label, rationale, and obligations entry.

  3. 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.

References & standards

.env Secret Safety Linter

Validate .env syntax and spot likely leaked credentials or placeholder secrets.

.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.

AI Function Calling Schema Generator

Generate function calling JSON schemas from TypeScript interfaces

Algorithm Arena & Data Structure Visualizer

Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.

Ansible Playbook Generator

Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML