Revenue sharing
LPM.dev Registry divides each paid contribution of a subscriber among the eligible Pool packages that this subscriber used in the month of that contribution.
The Pool counts by calendar month in UTC. A payment belongs to the month in which the billing period that it pays for starts. If LPM.dev Registry already calculated that month when the payment arrives, the payment belongs to the next month that it did not calculate yet. This can occur when a renewal is paid late, or when an organization turns on a seat after the month in which its billing period started. An observation belongs to the month in which LPM.dev Registry records it.
Settled contributions
A contribution settles when its payment succeeds. Each settled payment for a personal subscription or an organization seat creates a contribution for the member who gets Pool access. If an organization payment covers several seats, each seat member gets an equal part.
LPM.dev Registry divides the paid amount of the Pool line, after discounts and pre-tax credits:
| Recipient | Share | Standard $12 contribution |
|---|---|---|
| Package authors | 80% | $9.60 |
| LPM.dev Registry | 20% | $2.40 |
The standard amounts assume a full-price payment. Failed or incomplete payments do not add to the author fund. Tax is not part of the Pool line. Refunds, and disputes that the customer wins, reduce earnings that are not paid out yet.
Package observations
LPM.dev Registry records Pool use only when a subscriber downloads a package through Pool access.
An observation is the record that a subscriber used a package. Each subscriber and package can have at most one observation in a month:
subscriber + package + month = one observation
Repeated CI runs, reinstalls, downloads on other machines, and other dependency trees do not add observations for the same package.
After an install, LPM CLI reports the dependency graph of the project. LPM.dev Registry records each Pool package in that graph at its depth. A direct dependency of the project has depth 0. Only LPM.dev Registry packages count as levels, so an npm package between two Pool packages does not add depth.
Other clients do not report a graph. Each Pool package that they download has depth 0.
Depth weights
| Depth | Weight | Meaning |
|---|---|---|
| 0 | 1.00 | Direct dependency of the project |
| 1 | 0.70 | First-level Pool dependency |
| 2 | 0.49 | Second-level Pool dependency |
| 3 | 0.34 | Third-level Pool dependency |
LPM.dev Registry tracks depths 0 to 3. A dependency deeper than depth 3 gets no observation.
Dependency adjustments
Two rules change the weight of dependency observations before LPM.dev Registry divides the contribution of a subscriber.
Minimum adoption
A dependency observation at depth 1, 2, or 3 gets weight only if at least two different subscribers used that package in the same month.
This rule does not apply to depth 0. A direct dependency keeps its weight even if only one subscriber uses it.
Same-owner multiplier
If a dependency has the same owner as the package that pulls it in, the dependency gets 30% of its normal depth weight:
| Normal depth weight | Same-owner weight |
|---|---|
| 0.70 | 0.21 |
| 0.49 | 0.15 |
| 0.34 | 0.10 |
LPM.dev Registry rounds each adjusted weight to two decimal places. The owner is a personal account or an organization. The package that pulls in a dependency is the nearest LPM.dev Registry package above it in the graph. For a dependency at depth 2, this is the package at depth 1 above it.
Per-subscriber calculation
For a subscriber with eligible observations:
package allocation =
subscriber author contribution
× package weight
÷ total eligible weight for that subscriber
For example, a full-price subscriber has one direct dependency and one eligible dependency at depth 1:
@lpm.dev/acme.app 1.00
@lpm.dev/shared.helper 0.70
total weight 1.70
The packages have different owners, and the dependency meets the adoption rule. LPM.dev Registry divides the standard $9.60 author contribution like this:
| Package | Calculation | Allocation |
|---|---|---|
@lpm.dev/acme.app | $9.60 × 1.00 ÷ 1.70 | $5.65 |
@lpm.dev/shared.helper | $9.60 × 0.70 ÷ 1.70 | $3.95 |
LPM.dev Registry divides in whole cents. The package allocations always add up to the exact author contribution of the subscriber.
Subscribers without eligible observations
If a subscriber has no eligible observations in the month of a contribution, LPM.dev Registry divides that contribution equally among all Pool packages.
This applies to a subscriber without Pool downloads. It also applies if every observation of the subscriber has zero weight after the dependency adjustments.
Refunds and disputes
A refund reduces the author part of the original contribution. If the customer wins a dispute, LPM.dev Registry reduces the contribution in the same way when the dispute closes. The reduction is the disputed amount, up to what refunds and earlier disputes left of the payment. If LPM.dev Registry wins the dispute, nothing changes.
- LPM.dev Registry divides the reduction among the packages of the original subscriber, by their weights in that month. It takes the reduction from earnings that are not paid out yet.
- If those earnings are too small, LPM.dev Registry covers the rest. It also covers the whole reduction if the subscriber had no eligible observations.
- While a reduction is pending, LPM.dev Registry holds all Pool transfers.
A later calculation does not change earnings that are already paid out.
Calculation and payouts
Each month, LPM.dev Registry does these steps:
- On the 1st, it calculates the previous month from contributions, observations, weights, refunds, and disputes.
- It carries forward earnings below the payout minimum.
- On the 5th, it pays each owner in one Stripe transfer for all packages of that owner.
- If the owner has no payout account, or a transfer fails with a recoverable error, the payout stays pending. LPM.dev Registry retries it automatically.
Earnings stay with the account or organization that owned the package when LPM.dev Registry calculated the month. If that account or organization is deleted, payouts continue until LPM.dev Registry removes it permanently, 180 days later. The owner then loses the earnings that are still unpaid.
The payout minimum is $10. It applies to the total that the owner has waiting: the earnings of the month and the carried earnings of all packages. It does not apply to each package separately. When the total reaches $10, LPM.dev Registry pays all of it. This includes carried earnings of packages that earned nothing in that month.
Payouts need an active Stripe payout account:
- For a personal package, open Settings > Payout settings in the dashboard.
- For an organization package, open Payout settings in the organization settings.
LPM.dev Registry pays in USD. A package earns before you connect Stripe. LPM.dev Registry transfers pending earnings after you connect it.
Inspect current estimates
Authors can see estimates for the current month with LPM CLI:
lpm pool
The command shows weighted downloads, estimated earnings, and the values for each package. The values are estimates until LPM.dev Registry calculates the month. The LPM CLI pool reference describes the output.
See also
- The Pool explains subscriber access and the 80/20 split.
- Becoming a Pool author explains promotion, review, the package lifecycle, and payout setup.
- Distribution modes explains publication review and permanent distribution modes.