Open-source licenses inside software you buy or sell
Almost every codebase you buy or sell contains open-source packages, and each one stays under the terms its authors chose. A sale doesn't change those terms. Many packages use permissive licenses such as MIT, ISC, BSD or Apache-2.0, which mainly ask you to keep their license text and notices. Some use copyleft licenses such as the GPL or AGPL. Those can require you to share source code under the same terms when you distribute the software or, for the AGPL, when people use a modified version over a network. Run a license report on the repo before you pay or before you list.
This guide covers what each kind of license asks for, how to find them, and what to do when one doesn't fit. It quotes the license texts and their publishers, and it isn't legal advice. If a package matters to your plans and the answer isn't clear, ask a lawyer.
Which licenses are you likely to find?
A JavaScript app with a few dozen direct dependencies can install hundreds of packages once you count what those depend on. npm's package.json guide asks each package to declare its license in the license field, as an SPDX identifier such as MIT or an expression such as (MIT OR Apache-2.0). Some packages leave that field empty or point to a file instead, so treat the field as a starting point.
Declared licenses tend to fall into the groups below. The table is a rough guide, so read each license for its exact terms.
| Group | Examples | What it asks of you |
|---|---|---|
| Permissive | MIT, ISC, BSD-2-Clause, BSD-3-Clause | Keep the license text and notice in copies you pass on |
| Permissive with notices | Apache-2.0 | The same, plus mark files you changed and pass on any NOTICE file |
| Copyleft | GPL-2.0, GPL-3.0, LGPL, MPL-2.0 | Share the covered source under the same terms when you distribute it. How far that reaches differs by license |
| Network copyleft | AGPL-3.0 | The same, plus offer source to people who use a modified version over a network |
Marked UNLICENSED | UNLICENSED in the license field | The author is saying no rights are granted, so ask before you use it |
| Missing metadata | No license field at all | Unknown until you read the package's own files and terms |
The MIT License lets anyone use, copy, modify, publish, distribute, sublicense and sell copies, as long as the original notice and permission text stay in all copies or substantial portions. Apache-2.0, section 4 asks you to give recipients a copy of the license, mark the files you changed, keep the existing notices, and include the NOTICE file's attributions if there is one.
The copyleft licenses don't all reach the same distance. MPL-2.0 works file by file. Section 1.10 defines its Modifications as files that result from changes to covered files, plus new files that contain covered code. Section 3.1 says source-form copies of covered files and those Modifications must stay under the MPL. Section 3.3 lets you distribute a larger work under terms of your choice, as long as you meet the MPL's terms for the covered files. LGPL-3.0, section 4 lets you convey a combined work under terms of your choice. Those terms mustn't restrict changes to the library's parts or the reverse engineering needed to debug those changes, and you must meet the other conditions that section lists. So what they ask depends on how the package is combined with the rest of the code and how that code is shipped. Read the license text for the case in front of you.
The last 2 rows are different from each other. A missing license field is missing metadata. The package may still have a LICENSE file, a grant in its README, or terms on the project's site, so open its files before you decide anything. UNLICENSED is a statement: npm's guide says to use it when the author doesn't want to grant others the right to use the package. If you look and find no grant anywhere, GitHub's licensing guide says the default law applies, so no one may reproduce, distribute or build on the work.
How do you find every license in a repo?
Start with a license report. In a repo with a pnpm-lock.yaml, run pnpm licenses list --prod. The pnpm docs say it lists the licenses of installed packages, --prod limits it to dependencies and optional dependencies, and --json gives you a file you can keep. Other package managers have their own license tools, so check the one the repo uses.
A report only reads what each package declares. It won't find:
- Code pasted in from another project or a tutorial, with no package around it
- Fonts, icon sets, images and sounds, which often carry their own terms
- Vendored folders, such as a copy of a library under
vendor/orlib/ - Packages whose
licensefield saysSEE LICENSE INa file, which you have to open and read - Packages with no
licensefield, whose terms may sit in aLICENSEfile or README
So read the report, then search the repo for LICENSE, NOTICE and COPYING files, and look at where the fonts and icons came from. Dev-only tools such as test runners and linters usually matter less, because they normally stay out of the app you ship.
Does deploying a web app count as distributing it?
Running the software on your own server is different from handing someone a copy. GPL-3.0 defines "convey" as any propagation that lets other parties make or receive copies, and says interaction with a user through a computer network, with no transfer of a copy, isn't conveying. The GNU FAQ says a company running a modified GPL program on a web site doesn't have to release the modified source.
Three things change that answer:
- Code that runs in the browser. A Next.js or React app sends JavaScript to every visitor. The same GNU FAQ entry says JavaScript sent to browsers is released to the public, so a GPL package bundled into the client can bring its terms with it.
- Apps people install. A mobile app, desktop app or CLI tool hands each user a copy, so the copyleft packages inside it come into play. What each one asks depends on its license and on how it's combined with the rest of the app.
- The AGPL. AGPL-3.0, section 13 says that if you modify the program, your version must offer everyone who uses it over a network a way to get its source at no charge. Running it on your server is enough.
Selling the codebase hands over copies too. The Builder gives the Buyer the repo, with every package inside it, so the Builder is passing those packages on.
A made-up example
Here's an example to show how a report reads. The app and its packages are invented.
A Buyer looks at a booking app built on Next.js. The license report shows 412 production packages: 371 MIT, 22 ISC, 12 Apache-2.0, 6 BSD-3-Clause, and 1 AGPL-3.0, a PDF library the app uses to make invoices on the server.
The MIT, ISC, BSD and Apache-2.0 packages ask for the notices to stay in place. The AGPL package is the one to look at. The Buyer plans to change how invoices look, which means changing code that calls the library, and possibly the library itself. If they change the library and run it on their server, section 13 of the AGPL asks them to offer that changed source to the app's users.
So the Buyer asks the Builder 2 questions before paying. Has the library been modified? Is there a permissive PDF library that would do the same job? The answers decide whether the Buyer swaps it out, accepts the terms, or picks a different listing.
What should a Builder check before listing?
The terms ask each Builder to confirm they hold the rights needed to grant the license they're selling, and that the software doesn't infringe anyone else's rights. The open-source packages inside it are part of that, so check them before you list.
- Run the report and keep it. Save the
--jsonoutput, so you can answer a Buyer's question in minutes. - Keep the notices. Leave every
LICENSEandNOTICEfile where it is. MIT and Apache-2.0 both ask for that when you pass on copies. - Look hard at GPL and AGPL packages. GPL-3.0, section 10 says you may not impose any further restrictions on the rights it grants. The license a Buyer gets here limits resale and redistribution of your code. It can't take away the rights a GPL or AGPL package gives the people who receive it, so the two sets of terms have to be read together. If a copyleft package is part of what you sell, swap it for a permissive one or get legal advice before you list.
- Name what isn't yours to grant. Paid fonts, stock images and API services under their own terms should be listed, so the Buyer knows what to license separately.
- Say it on the listing. One line, such as "All production dependencies are MIT, ISC, BSD or Apache-2.0", tells a Buyer the report was run.
The GNU FAQ says you can charge for GPL software. It also says that whoever gets a copy may pass it on and modify it under the GPL. So the GPL doesn't stop you charging. What needs care is the right to pass it on.
Put the license summary in the README too. A handoff README Buyers can run covers what else belongs there, and how to price a software license covers the price.
What should a Buyer check before paying?
Ask the Builder for the license report, or run it on a clean checkout once the source is yours. Before you pay, read the listing's stack and ask about anything that isn't permissive.
Here's the checklist in one place.
| Check | Where you look | What a gap costs |
|---|---|---|
| License report | pnpm licenses list --prod, or the Builder's saved report | Packages whose terms you find out later |
| Copyleft packages | Any GPL, LGPL, MPL or AGPL line in the report | Source you may have to share |
| Browser code | Copyleft packages in the client bundle | Terms that apply to every visitor |
| Installed apps | Mobile, desktop or CLI builds | Copyleft terms that may apply to the copies you ship |
| Missing metadata | An empty license field | Terms you haven't read yet, in a LICENSE file or README |
UNLICENSED packages | UNLICENSED in the license field | Code the author hasn't given you permission to use |
| Notices | LICENSE, NOTICE and COPYING files | Missing text you're asked to keep |
| Fonts and assets | Font files, icon sets, images | A separate license to buy |
If the software is a Next.js and Supabase app, use the Next.js and Supabase checklist for the keys, migrations and RLS too.
What does the Zero to Hundred license let you do?
You're buying a non-exclusive license. You can use, modify, and deploy the software for your commercial or personal use, within the license. You can't resell it, re-list it, sub-license it, or redistribute it as a product.
Other Buyers can license the same software, and the Builder can keep licensing it.
Those limits cover the software the Builder licenses to you. The open-source packages inside it stay under their own licenses, and a marketplace license can't override the rights those licenses give you over that code.
When you buy on the marketplace, you get the source code as soon as you pay. Every sale is final.
You have 24 hours after delivery to report a factual problem: misrepresentation, a bug that stops it working, or another factual ground. Something the listing already disclosed doesn't count. The Builder's payout is held for 72 hours, so a report made in time is reviewed before they're paid.
What do you pay?
You pay the price on the listing and nothing more. There's no Buyer fee, and you don't need a membership to read a listing.
Zero to Hundred's commission comes out of the Builder's payout, so it never adds to what you pay. It's 8% plus $0.50 when the Builder sent you through their share link, and 25% when you found the listing on the marketplace. Pricing lists both rates.
Browse the marketplace or read what you get when you buy, and ask each Builder for the license report before you pay. If you build software, list it to sell with the report attached.