@behavr/config-spec
v0.1.0
Published
Behavr open config specification, schema helpers, and validation utilities
Readme
@behavr/config-spec
Open-source specification helpers for Behavr config files.
What it provides
- Config schema version constants
- TypeScript types for Behavr config docs
- Lightweight runtime validation (no heavy validator dependency)
- Helper to convert a config document into the Behavr Cloud share API payload shape
- JSON Schema file for external tools (
schemas/behavr-config.schema.json)
Example
import { parseBehavrConfigDoc, toApiSharePayload } from '@behavr/config-spec';
const doc = parseBehavrConfigDoc(jsonFile);
const payload = toApiSharePayload(doc);Scope
This package does not include:
- certification logic
- ranking logic
- proprietary evidence signals
- hosted marketplace APIs
