@blink-dx/registry
v0.1.0
Published
Zod schemas and TypeScript types for the Blink DX registry
Readme
@blink-dx/registry
Zod schemas and TypeScript types for the Blink DX registry. Used by @blink-dx/cli and consumers that need to validate or type-check registry data.
Install
npm install @blink-dx/registryUsage
import { RegistryIndexSchema, RegistryArtifactSchema } from '@blink-dx/registry'
// Validate registry index
const index = RegistryIndexSchema.parse(data)
// Validate a single artifact
const artifact = RegistryArtifactSchema.parse(detail)Exported Schemas
- Primitives ---
ArtifactTypeSchema,SlugSchema,CalVerSchema,MergeStrategySchema,ScopeSchema - Artifact ---
ArtifactFileSchema,ArtifactMetadataSchema - Manifest ---
ManifestFileEntrySchema,ManifestEntrySchema,ManifestSchema - Registry ---
RegistryItemSchema,RegistryIndexSchema,RegistryArtifactSchema - Errors ---
BlinkErrorSchema,BlinkErrorCode
All schemas export corresponding inferred TypeScript types (e.g., RegistryIndex, ManifestEntry).
License
MIT
