ContractSpec docs

OSS-first docs

These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.

GraphExport — export pipeline contract

ExportFormat union (png/svg/json/pdf/mermaid/dot), shared option/result shapes, and the GraphExportProvider interface for format-specific exporters.

field.key.label
GraphExport — export pipeline contract
field.version.label
field.type.label
field.title.label
GraphExport — export pipeline contract
field.description.label

ExportFormat union (png/svg/json/pdf/mermaid/dot), shared option/result shapes, and the GraphExportProvider interface for format-specific exporters.

field.tags.label
graph,export,contract,png,svg,pdf,mermaid,dot,m3
field.owners.label
field.stability.label
public

ExportFormat

`"png" | "svg" | "json" | "pdf" | "mermaid" | "dot"`

GraphExportProvider

Interface all format exporters must implement.

interface GraphExportProvider {
  readonly format: ExportFormat;
  export(options: GraphExportOptions): Promise<GraphExportResult>;
  isSupported(): boolean;
}

Web implementations (M3 P6/W6.2)

`PngExporter` — dom-to-image-more, HiDPI scale=2

`SvgExporter` — XMLSerializer + data URL