Skip to main content

Module resolver

Module resolver 

Source
Expand description

NAP Resolver — URI → Manifest, with query and version selectors.

The resolver is the primary interface for reading NAP resources. It handles:

  • Full manifest resolution: nap://starwars/character/lukeskywalker
  • Fragment queries: nap://starwars/character/lukeskywalker#references.appears_in
  • Version selectors: branch, commit, tag
  • Subtree extraction for efficient AI/application access

Version and branch are NEVER in the URI. They are orthogonal selectors:

URI + Reference + Revision Selector

Structs§

ResolveOptions
Options for resolving a NAP URI. All are optional — omitting all resolves the current HEAD of the default branch.
Resolver
The NAP resolver — resolves URIs to manifests or subtrees.

Enums§

ResolveResult
The result of resolving a NAP URI.