Capability

Generate contracts, docs, and agent context from one model.

One composable model emits OpenAPI, AsyncAPI, OpenRPC, GraphQL, Event Storming views, PRD docs, and viewer surfaces — and time-travels through every change.

What it is

Multi-format generation means the same source-of-truth model drives every downstream artefact: API contracts (OpenAPI, AsyncAPI, OpenRPC, GraphQL), Event Storming views, architecture diagrams, brand strategy docs, PRDs, and AI agent grounding context. When the model changes, everything regenerates from one source. The time-travel mode (as_is / to_be / point_in_time + migrationId on every query) lets you replay any prior state of the model and inspect rationale-aware change history.

Built on

  • ModelMode enum (as_is | to_be | point_in_time) on every GraphQL query
  • migrationId argument supported on entities / relations / metadata queries
  • modelDiff query comparing two states
  • Contract generator package — OpenAPI, AsyncAPI, OpenRPC, GraphQL
  • Multi-view living docs — Event Storming forward translation, PRD, blueprint viewer, brandvoice viewer

How it works

Update a YAML entity in the model. Run the contract generator package — it emits OpenAPI, AsyncAPI, OpenRPC, and GraphQL contracts validated against strict spec parsers. Run the viewers — Event Storming views, blueprint architecture viewer, brandvoice viewer + PDF, realm explorer, PRD viewer regenerate against the new model state. Every query accepts the time-travel mode argument, so consumers can read the model at as_is, to_be, or any point_in_time.

Sharing a single customer model across contexts may seem DRY and clean at first, but it introduces tight coupling, cross-team dependencies, and often leads to bloated models full of irrelevant attributes.
— ddd-crew, community context-mapping repository composition.EVD033
  • 4 contract formats OpenAPI + AsyncAPI + OpenRPC + GraphQL from one model composition.OFF005 + composition.EVD040
  • 3 time-travel modes as_is / to_be / point_in_time + migrationId per query composition.OFF003 + composition.EVD039
  • ~6 viewers Event Storming forward translation, blueprint, brandvoice, realm, PRD, garden-care composition.OFF004 + composition.EVD040