Docs menuDependencies

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:

FieldStoredPurpose
dependenciesYesRuntime dependencies
devDependenciesYesDevelopment-only dependencies
peerDependenciesYesDependencies supplied by the consuming project
bundleDependencies / bundledDependenciesYesPackage names declared as bundled. The Registry accepts both field names, as an array or as a boolean
optionalDependenciesYesOptional runtime dependencies
peerDependenciesMetaYesOptional 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 dependencyMarketplace releasePool release
Canonical @lpm.dev/owner.package name missing from the RegistryBlockedBlocked
Private LPM.dev Registry package in any inspected fieldBlockedBlocked
Free or Pool package in any inspected fieldAllowedAllowed
Unbundled Marketplace package in dependencies, optionalDependencies, source configuration, or Swift manifestsBlocked. Use a peer for separate purchase or a verified bundleBlocked
Unbundled Marketplace package in peerDependenciesAllowed without a publisher Commercial License. Each consumer needs separate accessBlocked
Unbundled Marketplace package in devDependenciesRequires a publisher Commercial License for a package from another owner. Allowed for a package from the same ownerBlocked
Verified Marketplace bundle from another ownerRequires a publisher Commercial LicenseBlocked
Verified Marketplace bundle from the same ownerAllowed without a self-purchaseBlocked
Public package from npm or another registryOutside LPM.dev Registry access rulesOutside 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.