tuil
ReferencePackages

@mwillbanks/tuil-registry

Source-owned component and block registry contracts for tuil.

View rawEdit

Overview

Source-owned component and block registry contracts for tuil.

@mwillbanks/tuil-registry is independently installable and also participates in the umbrella @mwillbanks/tuil runtime where applicable.

Installation

npm install @mwillbanks/tuil-registry

How it operates

Registry sources describe source-owned components, blocks, themes, dependencies, files, and integrity metadata. HTTP sources enforce secure URL and package metadata boundaries.

Documentation flow diagram. load source; validate manifest; resolve dependencies; verify files; install; S0 leads to S1; S1 leads to S2; S2 leads to S3
Documentation flow diagram. load source; validate manifest; resolve dependencies; verify files; install; S0 leads to S1; S1 leads to S2; S2 leads to S3

API

APISignatureDescription
applyRegistryCodemodsfunction applyRegistryCodemodsPublic function applyRegistryCodemods.
createRegistryLockfilefunction createRegistryLockfilePublic function createRegistryLockfile.
FileRegistrySourceclass FileRegistrySourcePublic class FileRegistrySource.
HttpRegistrySourceclass HttpRegistrySourcePublic class HttpRegistrySource.
InstallResultinterface InstallResultPublic interface InstallResult.
parseRegistryItemfunction parseRegistryItemPublic function parseRegistryItem.
provenanceCommentfunction provenanceCommentPublic function provenanceComment.
RegistryClientclass RegistryClientPublic class RegistryClient.
RegistryCodemodinterface RegistryCodemodPublic interface RegistryCodemod.
registryCompatibilityIssuesfunction registryCompatibilityIssuesPublic function registryCompatibilityIssues.
RegistryDiffinterface RegistryDiffPublic interface RegistryDiff.
RegistryFileinterface RegistryFilePublic interface RegistryFile.
RegistryIndexEntryinterface RegistryIndexEntryPublic interface RegistryIndexEntry.
RegistryInstallerclass RegistryInstallerPublic class RegistryInstaller.
RegistryInstallOptionsinterface RegistryInstallOptionsPublic interface RegistryInstallOptions.
registryIntegrityfunction registryIntegrityPublic function registryIntegrity.
RegistryIteminterface RegistryItemPublic interface RegistryItem.
RegistryItemTypetype RegistryItemTypePublic type RegistryItemType.
RegistryLockfileinterface RegistryLockfilePublic interface RegistryLockfile.
RegistrySourceinterface RegistrySourcePublic interface RegistrySource.
RegistryTransformOptionsinterface RegistryTransformOptionsPublic interface RegistryTransformOptions.
RemoveResultinterface RemoveResultPublic interface RemoveResult.
verifyRegistryLockfilefunction verifyRegistryLockfilePublic function verifyRegistryLockfile.

Events and lifecycle

Registry resolution returns explicit results and diagnostics. It does not emit runtime application events.

All subscriptions and registrations return a disposer or belong to an owning runtime that disposes them in reverse order.

Example

import { HttpRegistrySource } from "@mwillbanks/tuil-registry";

const source = new HttpRegistrySource("official", "https://example.com/registry");

On this page