Docs menuAI metadata

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

StageRequiredBlocks consumer accessProduces
Publication security reviewYes, for Free, Pool, and Marketplace versionsYesAn approval, a rejection, or a manual review
Package enrichmentRuns for eligible approved versionsNoSummaries, embeddings, API documentation, and usage context
Compatibility extractionRuns during publishingNoTypes, 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 resultWhat happens
CleanLPM.dev Registry approves the version for consumers with access
SuspiciousLPM.dev Registry approves the version with a warning. The findings show on the package page and in lpm audit
MaliciousLPM.dev Registry rejects the version, and the version stays unavailable
UnknownThe version stays unavailable until a person reviews it
Processing failureLPM.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:

ItemContent
Package analysisA summary of the source, with capabilities, use cases, tags, and selection guidance
Semantic embeddingA vector that LPM.dev Registry builds from the package summary for search by intent
Structured API documentationFunctions, classes, interfaces, types, enums, variables, parameters, and return values
Agent usage contextA 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:

FieldMeaning
descriptionA short explanation of what the code does
capabilitiesConcrete operations or features
useCasesSituations where the package is useful
tagsSearch terms that come from the package
complexityA simple, moderate, or complex assessment
targetAudienceThe developers that the package is for
bestForThe best fit for the package
notForAn important limitation or a poor fit
quickStartA 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.

FieldDerived from
hasTypesDeclaration files in the published package, or the TypeScript source its types or typings field names. Every @types/ package has it.
moduleTypetype, module, and exports
minNodeVersionengines.node
treeShakeableModule format and sideEffects
bundleSizePublished tarball size
unpackedSizeExtracted package size
frameworksKnown framework peer dependencies
runtimeExport conditions and module metadata

Where metadata appears

SurfaceUse
Package pagesSummary, compatibility, API reference, and usage guidance
Registry searchKeyword and semantic discovery
MCP serverStructured package information and version-specific context
Registry APIThe 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 exports and 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.