sp-schema v0.2.0 provides TypeScript types and JSON Schema definitions for the Streamplace protocol. Published as an early-stage package for internal use, with no regular release cadence. It defines core data structures for stream metadata, manifests, and network messages. Primarily consumed by other Streamplace packages. Not intended for general public use; API is unstable and may change without notice.
npm install sp-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows importing the default schema object, accessing a specific definition, and validating data with Ajv.
Pin to exact version and expect to update frequently.
Use import syntax or set { type: 'module' } in your package.json.Use `Manifest` instead of `StreamManifest`.
Use `import { Manifest } from 'sp-schema'` for the TypeScript type.Switch to ESM (use import) or dynamic import: const spSchema = await import('sp-schema');Access properties directly: spSchema.SomeType instead of spSchema().
Ensure sp-schema is installed and check if types are included. If not, declare module: declare module 'sp-schema';
No dependency data recorded yet.