Commercial licenses
A commercial plan is a pricing plan with the Commercial license (allows bundling) option. A purchase of a commercial plan is a Commercial License. It lets the buyer bundle the package inside the buyer's own Marketplace packages. LPM.dev Registry checks for it when the buyer publishes. The Commercial License is a permission in LPM.dev Registry. The license terms of the author decide the legal rights.
What a Commercial License records
To create a commercial plan, select Commercial license (allows bundling) when you add a pricing plan. The pricing plans are in Settings > Distribution & monetization of the package.
When a buyer purchases the plan:
- The purchase belongs to the buyer, or to the organization that the buyer selected.
- A one-time purchase counts as a Commercial License until it is fully refunded or revoked.
- A subscription counts as a Commercial License while its paid access is active.
- When the buyer publishes a Marketplace package that references the paid package, LPM.dev Registry can check this purchase.
A package can have only one active commercial plan. To change its terms, archive it, and then create a new commercial plan. If it is the only active plan of a Marketplace package, you cannot archive it. In that case, add a plan without the commercial option first.
A package does not need a Commercial License for another package of the same owner. The owner is the personal account or the organization.
What a Commercial License does not do
A Commercial License does not:
- Write or select the
LICENSEterms of the package - Override an open-source, proprietary, or third-party license
- Guarantee that dependency files are in a publish tarball
- Give the customers of the redistributor their own access in LPM.dev Registry
- Convert a normal dependency declaration into vendored code
The author must publish terms that match the rights that the author wants to give. Put those terms in the license of the package and in its documentation. LPM.dev Registry does not create a legal template for them.
Bundled Marketplace dependencies
Use a bundle if the code of the dependency must ship inside your Marketplace package. LPM CLI adds the installed packages that bundleDependencies or bundledDependencies declares to the publish archive. LPM.dev Registry accepts both field names, as an array or as a boolean.
LPM.dev Registry does not trust the bundle declaration alone. At publish, it finds each declared bundle at node_modules/<name>/package.json in the archive. It reads that file within a size limit. The name in the file must match the declaration exactly. If the bundle is a Marketplace package of another owner, the publishing account or organization must hold a valid Commercial License for it. A verified bundle of the same owner needs no purchase.
In this example, the package bundles one paid dependency. It declares another paid package as a peer, which each consumer purchases separately:
{
"dependencies": {
"@lpm.dev/vendor.paid-lib": "^1.0.0"
},
"bundleDependencies": [
"@lpm.dev/vendor.paid-lib"
],
"peerDependencies": {
"@lpm.dev/vendor.separate-lib": "^2.0.0"
}
}
If a package is a verified bundle and also appears in a dependency field, the bundle rule applies. An older version can have no archive verification from LPM.dev Registry. In that case, publish a new version before you choose Marketplace distribution.
LPM.dev Registry checks the dependency rights again when it approves a public release. If the Commercial License ended during the review, the release does not become available.
Separate paid dependencies
A Marketplace purchase gives access only to the package that the buyer purchased. It does not give access to another paid package that the package references.
Declare a Marketplace dependency that consumers purchase separately in peerDependencies. The publisher does not need a Commercial License for a peer that is not bundled. Each consumer must get access to the peer before LPM CLI can install it.
LPM.dev Registry rejects a Marketplace package in dependencies or optionalDependencies that is not bundled, even if both packages have the same owner. Declare it as a peer for a separate purchase, or bundle it. A bundle from another owner needs a Commercial License.
Access duration
A Commercial License lasts as long as the purchase:
| Billing model | Registry permission |
|---|---|
| One-time | Permission for the package until a full refund or a revocation |
| Subscription | Permission for the package through the paid subscription periods |
LPM.dev Registry does not limit the permission to the major version that the buyer purchased. The permission covers the package, and applies to each version that LPM.dev Registry still serves.
If you archive a commercial plan, buyers cannot purchase it anymore. Licenses that buyers already have from the plan stay valid.
License terms
The package author chooses the legal terms for use, modification, and redistribution. Before you sell a commercial plan, make sure that those terms:
- Match the rights that the package page shows
- Cover the third-party code in the package
- Explain the scope of individual and organization purchases
- Explain what happens when a subscription ends or a purchase is refunded
The Marketplace Seller Agreement has the platform rules for sellers. Get legal advice for license terms that are specific to your package or jurisdiction.
See also
- Pricing plans explains how to create and archive commercial plans.
- Checkout & licensing explains how a purchase gives access in LPM.dev Registry.
- Dependencies explains the dependency fields that LPM.dev Registry checks for public distribution.