Marketplace
The Marketplace lets package authors sell install access to their LPM.dev Registry packages. A sale is a one-time purchase or a subscription. The author sets the price and the license scope. Buyers pay through Stripe. LPM.dev Registry checks the license of the account at each install.
How it works
- Publish at least one version of the package. New LPM.dev Registry packages start as private.
- Connect a Stripe payout account.
- Create at least one pricing plan.
- On the package settings page, choose Marketplace distribution.
- Wait for publication review. The package stays private while its latest version is in review.
- After LPM.dev Registry approves a release, buyers can buy a plan and install the package with LPM CLI.
Buyers see the business name of your Stripe payout account as the name of the seller. Checkout and card statements show this name. If the Stripe account has no business name, buyers see the name of your LPM.dev account or organization.
The choice of Marketplace is permanent. You cannot return the package to private distribution or switch it to another distribution mode. You also cannot delete the package. These rules apply before the first release is approved too.
To stop new purchases, archive the package. Existing buyers keep their access. If you delete your account or organization, LPM.dev Registry also deletes the package if no approved release has made it public yet.
Install a purchased package
Sign in to LPM CLI with the account that has the license. This account owns a personal license, is a member of an organization with an organization license, or has an organization seat. Then install the package:
lpm login
lpm install @lpm.dev/acme.ui-kit
LPM CLI is the main client for Marketplace packages. In one project, it can install LPM.dev Registry packages together with packages from npm and from other registries in .npmrc. The LPM CLI install reference describes the resolver, workspaces, the save policy, and the lockfile.
Before choosing Marketplace distribution
The package needs:
- At least one published version
- An active Stripe payout account of the package owner, which is a personal account or an organization
- At least one active pricing plan
- Dependencies that meet the public distribution rules of LPM.dev Registry
- A release that passes publication review
When you choose Marketplace distribution, the latest version goes into publication review. LPM.dev Registry does not make a version public before the review approves it. If the review rejects that version, or the version becomes unavailable, publish a new version. The first approved release makes the package available.
Before that, the Stripe payout account, the pricing plans, or a dependency permission can stop meeting the requirements. In that case, the approved release waits, and LPM.dev Registry checks it again automatically.
Platform fees
The Marketplace platform fee is a percentage of the price before tax. The rate comes from the plan of the package owner:
| Seller plan | Platform fee |
|---|---|
| Hobby | 15% |
| Pro | 10% |
| Organization | 10% |
A one-time purchase and the first payment of a subscription use the plan of the owner at the time checkout reserves the order. Each subscription renewal uses the plan of the owner at the time Stripe creates the renewal invoice. If the billing of an organization has lapsed at that time, the payment uses the Hobby rate.
Stripe calculates the tax at checkout and adds it to the price. For the first payment of a subscription, Stripe takes the fee on the total, including tax. Within a few minutes, LPM refunds the part of the fee on the tax to the Stripe account of the seller.
Checkout records the price, the quantity, the currency, and the platform fee when it reserves the order. If the payment does not match these terms, LPM.dev Registry does not create the license and refunds the payment.
License scope
A buyer chooses from the plans that the author offers. Each plan has one of these license types:
| License type | Who gets access |
|---|---|
| Individual | The buyer, for a personal purchase. For an organization purchase, each member with an assigned seat. The organization chooses the number of seats. |
| Organization | Every current and future member of the selected organization, for one flat price |
An author can also make a plan a commercial plan. A package can have one active commercial plan at a time. A buyer of a commercial plan can bundle the package inside the buyer's own Marketplace packages. LPM.dev Registry checks for this license when the buyer publishes.
A one-time purchase and a subscription both give access to every available version of the package. Access is not limited to the version that checkout showed. Checkout & licensing explains seat assignment, cancellation, and how long access lasts.
See also
- Pricing plans explains prices, billing models, license scope, and how to archive a plan.
- Commercial licenses explains commercial permissions, bundles, and dependencies that buyers purchase separately.
- Checkout & licensing explains the purchase flow, access, subscriptions, and organization seats.
- LPM CLI authentication explains login and registry credentials.