AI analysis and metadata
LPM.dev Registry keeps the publication security review separate from package enrichment. The review decides whether consumers can get a Free, Pool, or Marketplace version. Enrichment makes an approved version easier to find and use.
LPM.dev Registry does not send private packages to automatic or background AI processing.
Review and enrichment
| Stage | Required | Blocks consumer access | Produces |
|---|---|---|---|
| Publication security review | Yes, for Free, Pool, and Marketplace versions | Yes | An approval, a rejection, or a manual review |
| Package enrichment | Runs for eligible approved versions | No | Summaries, embeddings, API documentation, and usage context |
| Compatibility extraction | Runs during publishing | No | Types, module format, runtime, framework, and size signals |
Enrichment does not judge security. A version must pass the publication review before enrichment starts.
Publication security review
The review runs in these cases:
- The owner of a private package chooses Free, Pool, or Marketplace distribution.
- The owner publishes a new version of a Free, Pool, or Marketplace package.
If the owner of a private package chooses public distribution, LPM.dev Registry queues the latest version for review. The first release that passes every check makes the package public. This can be the queued version or a later one. Earlier private versions stay private. Distribution modes lists the checks.
While a version waits for the review:
- Only the package owner or the members of the owning organization can view or install that exact version.
- Consumers with access keep access to the versions that the review approved earlier.
- An install without a pinned version resolves to the latest approved version.
- The pending version does not show in public metadata, search, or collection pages.
| Review result | What happens |
|---|---|
| Clean | LPM.dev Registry approves the version for consumers with access |
| Suspicious | LPM.dev Registry approves the version with a warning. The findings show on the package page and in lpm audit |
| Malicious | LPM.dev Registry rejects the version, and the version stays unavailable |
| Unknown | The version stays unavailable until a person reviews it |
| Processing failure | LPM.dev Registry retries the review. After repeated failures, the version goes to manual review |
LPM.dev Registry also checks the dependencies of the version with the rules of the LPM Firewall. A dependency that the LPM Firewall blocks rejects the version. A dependency that it warns about publishes the version with that warning. Both rules apply whatever the source review found. Publishing has the details.
Each approval applies to one version. A rejected or unresolved release does not remove access to an older approved release.
Post-approval enrichment
After approval, an eligible Free, Pool, or Marketplace version can get these separate items:
| Item | Content |
|---|---|
| Package analysis | A summary of the source, with capabilities, use cases, tags, and selection guidance |
| Semantic embedding | A vector that LPM.dev Registry builds from the package summary for search by intent |
| Structured API documentation | Functions, classes, interfaces, types, enums, variables, parameters, and return values |
| Agent usage context | A quick start, key exports, common patterns, gotchas, and guidance about when to use the package |
A Pool or Marketplace package of an organization gets enrichment only while the organization subscription is active or in its grace period.
These jobs run in the background. Package pages and MCP responses leave out an item while its job runs, or if the item is not available.
Package summary
The analysis can produce these fields:
| Field | Meaning |
|---|---|
description | A short explanation of what the code does |
capabilities | Concrete operations or features |
useCases | Situations where the package is useful |
tags | Search terms that come from the package |
complexity | A simple, moderate, or complex assessment |
targetAudience | The developers that the package is for |
bestFor | The best fit for the package |
notFor | An important limitation or a poor fit |
quickStart | A short example that uses the detected exports |
The analysis instructions treat the package source as untrusted input. They tell the model to describe what the code does and to ignore instructions or marketing claims in the source.
API documentation and usage context
Structured API documentation describes the package surface in a form that machines can read. If the package has type declarations, LPM.dev Registry reads the API from them. Otherwise, an AI model writes the API documentation from the source. If that fails, LPM.dev Registry reads the JSDoc comments.
For a package with type declarations, the documentation follows the entry points in its package.json. Each exports subpath lists its exports under the names and the import path that a consumer uses. This is true even if a bundler split the declaration files.
The usage context condenses that reference into these items:
- a purpose statement and a quick start
- important exports and signatures
- common usage patterns
- gotchas and selection guidance
The lpm_package tool of the LPM.dev Registry MCP server returns the API documentation in its api section and the usage context in its guide section. One call can ask for both sections, for the version that your project uses.
Compatibility data
LPM.dev Registry derives compatibility data from the published package. No AI model generates it.
| Field | Derived from |
|---|---|
hasTypes | Declaration files in the published package, or the TypeScript source its types or typings field names. Every @types/ package has it. |
moduleType | type, module, and exports |
minNodeVersion | engines.node |
treeShakeable | Module format and sideEffects |
bundleSize | Published tarball size |
unpackedSize | Extracted package size |
frameworks | Known framework peer dependencies |
runtime | Export conditions and module metadata |
Where metadata appears
| Surface | Use |
|---|---|
| Package pages | Summary, compatibility, API reference, and usage guidance |
| Registry search | Keyword and semantic discovery |
| MCP server | Structured package information and version-specific context |
| Registry API | The ai field, with the summary fields and compatibility, after the package has a summary |
Private package privacy
LPM.dev Registry does not send the contents of private packages to automatic or background AI processing. It runs the deterministic validation and metadata extraction that publishing needs on private packages too, inside its own infrastructure.
The LPM Assistant on lpm.dev can read the private packages of your account and of your organizations. If a search or a lookup finds one of these packages, the assistant sends its metadata to the AI provider. This is also true when the answer does not mention the package. For package details, this metadata includes the first 1,000 characters of the README. See the Privacy Policy.
Improve generated context
These steps improve the compatibility data and the generated metadata:
- Use descriptive export names.
- Include TypeScript declarations or JSDoc annotations.
- Declare accurate
exportsand runtime requirements. - Keep peer dependencies accurate.
- Publish readable source files in addition to generated bundles.
Type declarations, JSDoc annotations, an exports map, and a Node.js version in engines also earn points in the quality score.