Publish packages to LPM.dev Registry
LPM CLI packs the project and runs local checks. LPM.dev Registry then validates the upload. The package's distribution mode decides when the version becomes available.
Package identity
LPM.dev Registry package names use @lpm.dev/<owner>.<package>:
{
"name": "@lpm.dev/acme.design-system",
"version": "1.0.0"
}
| Context | Example |
|---|---|
package.json | @lpm.dev/acme.design-system |
| Package page | https://lpm.dev/acme.design-system |
| Install command | lpm install @lpm.dev/acme.design-system |
The owner must be your username, or an organization where you are an owner, admin, or maintainer. Package versions are immutable. Increase the version before you publish again.
Your first package fixes the owner name. After it, your username or the organization slug cannot change, even if every package is later deleted. Another account can never take the name over and publish under it.
Prepare the project
JavaScript
A JavaScript package needs a valid package.json with at least name and version. The standard npm packing rules decide which files go into the uploaded tarball. These rules include the files field, .npmignore, and the package metadata that npm always includes.
Preview the local package checks:
lpm publish --check
Swift
A Swift package needs both package.json and Package.swift at the package root:
{
"name": "@lpm.dev/acme.networking",
"version": "1.0.0"
}
lpm publish --check
lpm publish
package.json gives the LPM.dev Registry name and version. LPM CLI treats the package as a Swift package when the published files include Package.swift at the root. If package.json has a files field, add Package.swift to it. LPM CLI then runs swift package dump-package to collect targets, platforms, dependencies, products, and the tools version.
See Packages for the JavaScript and Swift package formats. See the LPM CLI publish reference for multi-registry targets, provenance, and every flag.
Publish
lpm login
lpm publish
New packages are private. A publish does not move a package to Free, Pool, or Marketplace distribution.
1. Local checks
Before the upload, LPM CLI does these steps:
- It validates the package name, the version, the project manifest, and any Agent Skills that you wrote.
- It builds the tarball and computes its integrity hashes.
- It scans the files for secrets and stops the publish if it finds one.
--allow-secretsskips this scan. - It computes the local quality score. If you pass
--min-score, it stops the publish when the score is lower.
lpm publish --check
lpm publish --min-score 80
lpm publish --check runs only the local checks. It does not check whether LPM.dev Registry is reachable. It also does not check authentication, ownership, plan limits, or whether the version already exists.
2. Registry validation
LPM.dev Registry validates the request again before it accepts the version. These checks include:
- Authentication, owner permissions, token scope, and organization billing state.
- Package identity, immutable versioning, and ecosystem consistency.
- Manifest and dependency metadata, and distribution restrictions.
- The dependency check. The paragraphs after this list describe it.
- Account package and storage limits.
- Hard limits for a single package: a 250 MiB tarball, 200 MiB for one file in it, 1 GiB unpacked, and 20,000 files.
If a blocking check fails, LPM.dev Registry does not publish the version.
The dependency check covers the version's runtime, optional, and peer dependencies. It does not cover bundled dependencies or devDependencies. LPM.dev Registry resolves each npm dependency to the version that an install gets now. Then it checks that version against the LPM Firewall. If a dependency resolves to a version that the LPM Firewall blocks, LPM.dev Registry refuses the publish with MALICIOUS_DEPENDENCY. A dependency pinned to an exact version gets the LPM Firewall check even when npm no longer has that version.
LPM.dev Registry does not check a dependency again if the check of the package's last accepted version covered it. It checks the dependency again in these cases:
- That check did not finish.
- That check found a version that the LPM Firewall had not finished judging.
- That check found a dependency whose npm package changed in the 48 hours before the check.
- That check found a package or version that its registry did not have.
- No review saw what that check found, and it found a dependency that the LPM Firewall blocks or warns about. The same applies to a dependency published after it was missing. No review sees the findings of a private package, or of a check that finished after publication review approved the version.
A check that cannot finish while the publish waits continues in the background for up to a week. What it finds still applies (see Availability). If the LPM Firewall has not finished judging a dependency, LPM.dev Registry checks that dependency again for up to a week. If a dependency's npm package changed in the last 48 hours, LPM.dev Registry checks it again over the next two days. The LPM Firewall can flag a release after its publication. None of these checks holds the publish.
3. Availability
The next step depends on the package's distribution mode:
| Distribution mode | After a successful upload |
|---|---|
| Private | The version becomes available to its owner or organization. |
| Free | The version waits for publication review before anyone can install it. |
| Pool | The version waits for publication review before Pool subscribers can install it. |
| Marketplace | The version waits for publication review before licensed customers can install it. |
A Swift version can be installed only after LPM.dev Registry evaluates its manifests with Swift and signs its source archive. A Free, Pool, or Marketplace Swift version starts publication review after that. Swift Package Registry describes the versions that this step rejects.
Package owners cannot skip publication review for Free, Pool, or Marketplace versions. If a public package already has an approved version, installs continue to get that version while publication review checks the new upload. A package that moves from Private stays private until publication review approves one of its versions.
Publication review inspects the uploaded source, lifecycle scripts, and behavioral signals. It approves a clean version automatically. A suspicious version has a risk that is not an attack. Publication review approves it with a warning. The findings show on the package page and in lpm audit, and the package owners get an email.
Publication review rejects a malicious version, and that version does not become available. If the review cannot judge a version, the version waits for manual review.
The package page shows "Not reviewed" for versions that LPM.dev Registry approved before publication review existed. LPM.dev Registry reviews these versions later with the same review. Consumers can install them while the review runs. The package page shows a clean or suspicious result as reviewed after release.
If the review finds a version malicious or cannot judge it, an LPM.dev Registry admin decides. The admin can show the version as clean, show the findings, or quarantine the version. Until the admin decides, consumers can install the version, and the package page does not change.
The dependency check also counts. It compares the dependencies with the last public version of the package. For a package that moves from Private, it checks every dependency. The check follows the LPM Firewall's rules, as an install with the default policy does:
- A dependency that the LPM Firewall blocks rejects the version.
- A dependency that the LPM Firewall warns about publishes the version with a warning. The warning shows the LPM Firewall's reason.
- A dependency that was missing when LPM.dev Registry checked an earlier version, and that someone published later, publishes the version with a warning. This can mean that someone claimed the name of a dependency from a private registry.
If the whole package was missing, deleted, or unpublished, any version that appears later counts. If only versions that match the range were missing, a new version in that range counts. A new package with the same name also counts. The first version that finds the dependency shows the warning, and later versions note it. The check skips dependencies in the package's own LPM.dev scope, because no one else can publish there.
Nothing else in the dependency check holds a version or adds a warning. Only the package owners see these findings, as publish anomalies on the package's security page:
- A dependency that no registry check covers. This includes a dependency from git, a URL, a local path, a workspace, or JSR, or one that uses a GitHub
owner/reposhorthand. - A missing dependency. This is a package, or a matching version, that npm or LPM.dev Registry does not have, such as a dependency from a private registry. Each later version checks it again. While it stays missing, owners who already got a notice do not get another one.
- A dependency whose check did not finish.
A check that finishes after publication review approves its version still applies. A dependency that the LPM Firewall blocks quarantines the version. A dependency that the LPM Firewall warns about adds its warning to the version.
For a private package, the package owners see the dependency check's findings as publish anomalies on the package's security page.
4. Public-package enrichment
After a Free, Pool, or Marketplace version becomes public, it can enter the public enrichment pipeline. The pipeline can add:
- Package summaries and search metadata.
- Generated API documentation and AI-readable context.
- A security check of the package's Agent Skills, if it has any.
Enrichment starts only after publication review approves the version. The public AI enrichment and embedding pipeline does not use the source of private packages.
Publishing limits
| Account | Private packages | Included package storage |
|---|---|---|
| Hobby | 2 | 100 MiB |
| Pro | Unlimited | 5 GiB |
| Organization | Unlimited | 5 GiB per seat |
Pro and Organization accounts can go past the included storage. LPM.dev Registry bills the extra storage as overage. If the subscription is not active, as during a grace period, LPM.dev Registry refuses a publish that goes past the included storage. Storage that is already past it stays billed while the subscription is past due. The 250 MiB limit for one tarball applies to every account.
LPM CLI 0.82.0 and later upload the tarball before the publish request. A tarball can then use the full 250 MiB. npm and LPM CLI versions before 0.82.0 send the tarball inside the publish request. This limits the tarball to about 75 MiB.
After publishing
Open the package page:
https://lpm.dev/<owner>.<package>
In the dashboard, you can manage versions, access, and package metadata. You can also choose Free, Pool, or Marketplace distribution. This choice is permanent. Free distribution needs a paid Pro or Organization plan. Before you choose Marketplace, add a pricing plan. The first Marketplace release becomes public only when the package has an active pricing plan and an active payment provider.
See also
- Distribution modes explains who can install a package and how publication review works.
- Quality score explains the score that LPM.dev Registry stores with each version.
- Agent Skills explains how to publish Agent Skills with a package.
- The LPM CLI publish reference lists the flags, multiple registry targets, provenance, and JSON output.