Package Exports
- @decantr/registry
- @decantr/registry/client
- @decantr/registry/content-types
- @decantr/registry/schema/archetype.v2.json
- @decantr/registry/schema/blueprint.v1.json
- @decantr/registry/schema/common.v1.json
- @decantr/registry/schema/content-health-report.v1.json
- @decantr/registry/schema/content-intelligence.v1.json
- @decantr/registry/schema/pattern.v2.json
- @decantr/registry/schema/public-content-list.v1.json
- @decantr/registry/schema/public-content-record.v1.json
- @decantr/registry/schema/public-content-summary.v1.json
- @decantr/registry/schema/registry-intelligence-summary.v1.json
- @decantr/registry/schema/search-response.v1.json
- @decantr/registry/schema/shell.v1.json
- @decantr/registry/schema/showcase-manifest-entry.v1.json
- @decantr/registry/schema/showcase-manifest.v1.json
- @decantr/registry/schema/showcase-shortlist.v1.json
- @decantr/registry/schema/theme.v1.json
Readme
@decantr/registry
Support status: supported-secondary
Release channel: stable
Legacy Decantr 3.x compatibility package for content contracts, schemas, API client naming, ranking helpers, and resolver utilities.
Prefer @decantr/content for new official corpus integrations. Keep @decantr/registry when existing scripts or MCP/directory-compatible code still use registry naming.
Install
npm install @decantr/registryWhat It Exports
- strong types for patterns, themes, official blueprints, archetypes, shells, and intelligence metadata
ContentHealthReporttypes for vocabulary supply-chain health artifactsRegistryAPIClientfor server-side and tool-side content API access@decantr/registry/clientfor web-safe API usage- public schema exports for vocabulary content, content health, and summary responses
- ranking and sorting helpers for public vocabulary content
- Brownfield-aware pattern discovery helpers:
patternToDiscoveryCandidate(),scorePatternCandidate(), andrankPatternCandidates() - blueprint portfolio metadata helpers for public
All,Featured,Certified, andLabscorpus cuts createCorpusResolver(),searchCorpusContent(),listCorpusRecords(), and related helpers re-exported from@decantr/content
Example
Node/runtime usage:
import { RegistryAPIClient } from '@decantr/registry';
const client = new RegistryAPIClient({ baseUrl: 'https://api.decantr.ai/v1' });
const results = await client.search({
q: 'dashboard',
type: 'blueprint',
blueprintSet: 'featured',
});Browser-safe usage:
import { createRegistryClient } from '@decantr/registry/client';
const client = createRegistryClient({ baseUrl: 'https://api.decantr.ai/v1' });
const summary = await client.getIntelligenceSummary();Pattern discovery usage:
import { patternToDiscoveryCandidate, rankPatternCandidates } from '@decantr/registry';
const matches = rankPatternCandidates(
{ query: 'recipe feed with avatars and infinite scroll', route: '/feed' },
patterns.map((pattern) => patternToDiscoveryCandidate(pattern)),
);Related Schemas
This package keeps the legacy canonical schema paths under @decantr/registry/schema/*, including content-health-report.v1.json for local content reports emitted by decantr content-health. New corpus integrations should prefer @decantr/content/schemas/*.
Blueprint records can include blueprint_portfolio metadata. List/search summaries expose that metadata so clients can show public-facing blueprint sets without leaking internal maturity labels:
all— supported official blueprints, excluding Labs and folded slugs by defaultfeatured— curated default discovery pickscertified— blueprints with certified artifact metadatalabs— opt-in experimental directions
Compatibility
@decantr/registry is maintained as a Decantr 3 compatibility package.
- exported schema paths and documented client entrypoints are expected to remain stable across compatible releases
- additive response fields may be introduced without breaking the stable contract
- breaking client, schema, or path changes require a major version
Security And Permissions
@decantr/registry provides legacy schema paths, content utilities, and API clients. It may read explicit local content JSON files when resolver helpers are used, and it may call the configured Decantr API base URL when client methods are invoked. It does not write files, spawn processes, emit telemetry, or upload source by itself. See security permissions.
License
MIT