@miragon/wardley-schema-model
v0.3.0
Published
The Wardley map data model with types, validation, stage derivation, migrations and stable JSON serialization.
Downloads
664
Readme
@miragon/wardley-schema-model
DOM-free Wardley metamodel: types, Zod validation, stage derivation, and deterministic JSON serialization.
Install
npm install @miragon/wardley-schema-modelUsage
import { createEmptyMap, serializeMap, parseMapJSON } from '@miragon/wardley-schema-model';
const map = createEmptyMap('Tea Shop');
const json = serializeMap(map); // deterministic: stable key order, rounded coordinates
const restored = parseMapJSON(json); // validated + migrated to the current schemaPart of the Wardley Maps monorepo.
License
MIT
