Dependencies
The LPM.dev Registry stores package metadata, applies rules for public distribution, and authorizes each package download. It does not resolve your dependency graph. Your JavaScript package manager, such as LPM CLI, resolves JavaScript dependencies. Swift Package Manager resolves Swift dependencies.
JavaScript dependency metadata
The LPM.dev Registry handles these package.json fields:
| Field | Stored | Purpose |
|---|---|---|
dependencies | Yes | Runtime dependencies |
devDependencies | Yes | Development-only dependencies |
peerDependencies | Yes | Dependencies supplied by the consuming project |
bundleDependencies / bundledDependencies | Yes | Package names declared as bundled. The Registry accepts both field names, as an array or as a boolean |
optionalDependencies | Yes | Optional runtime dependencies |
peerDependenciesMeta | Yes | Optional peers. Each entry can hold only the optional boolean |
Registry metadata keeps these fields from the validated package manifest.
The LPM CLI install reference and Resolver describe installation behavior, version selection, peer dependencies, and lockfiles.
Free dependency rules
Free admission is the dependency check before a Free release becomes public. Every identified LPM.dev Registry dependency must resolve to an available Free release. Private, Pool, Marketplace, missing, and unavailable versions block Free admission. The check includes development, optional, and peer declarations, aliases, bundled copies, nested manifests, source configuration, and shrinkwrap records.
LPM.dev Registry access rules do not apply to public npm dependencies. The publication security review still checks them. A URL or an alias cannot hide a restricted LPM.dev Registry dependency as an external package. If the dependency analysis is unsupported or incomplete, the release stays unavailable.
Quarantine blocks the affected dependency and the known releases that contain its bytes. An ordinary dependency declaration does not quarantine the parent archive.
Pool and Marketplace dependency rules
Pool and Marketplace publication adds rules for direct dependencies that the LPM.dev Registry hosts:
| Direct dependency | Marketplace release | Pool release |
|---|---|---|
Canonical @lpm.dev/owner.package name missing from the Registry | Blocked | Blocked |
| Private LPM.dev Registry package in any inspected field | Blocked | Blocked |
| Free or Pool package in any inspected field | Allowed | Allowed |
Unbundled Marketplace package in dependencies, optionalDependencies, source configuration, or Swift manifests | Blocked. Use a peer for separate purchase or a verified bundle | Blocked |
Unbundled Marketplace package in peerDependencies | Allowed without a publisher Commercial License. Each consumer needs separate access | Blocked |
Unbundled Marketplace package in devDependencies | Requires a publisher Commercial License for a package from another owner. Allowed for a package from the same owner | Blocked |
| Verified Marketplace bundle from another owner | Requires a publisher Commercial License | Blocked |
| Verified Marketplace bundle from the same owner | Allowed without a self-purchase | Blocked |
| Public package from npm or another registry | Outside LPM.dev Registry access rules | Outside LPM.dev Registry access rules |
If the same package is a verified bundle and also appears in a dependency field, the bundle rule applies. Without a bundle, the Registry uses the first field that declares the package, in this order: dependencies, optionalDependencies, peerDependencies, devDependencies.
The Registry verifies each declared LPM.dev bundle against the uploaded archive. It does not trust the manifest metadata alone. It parses the size-limited nested package.json at node_modules/<name>/package.json. The name in that file must match the bundle declaration exactly.
These rules decide if a package can use the Pool or the Marketplace. They do not change dependency resolution or installation. They do not apply to private packages.
Each archive requires access
Access to a parent package does not give access to its dependencies. When an install selects an archive that the LPM.dev Registry hosts, the Registry authorizes that package and version separately.
For example, access to a Marketplace package does not give access to an unbundled Marketplace peer. The consumer must also have access to that dependency. Bundled code comes inside the parent archive. It does not give the consumer separate access to the bundled package.
Swift dependencies
A Swift package declares its dependencies in Package.swift, and Swift Package Manager resolves them. The LPM.dev Registry still checks access for each archive that it hosts when Swift Package Manager downloads it.
Free admission also validates the Swift dependency declarations that it inspects. If the Swift dependency analysis is unsupported or incomplete, the release does not pass Free admission. Swift Package Registry describes publishing and installation.