Files
root-at-skicandClaude Opus 5.5 22815a9940 Archify Diagram Viewer 0.1.0
VS Code extension that previews Archify diagrams from their JSON sources
(live, as you type) and opens rendered Archify HTML in a viewer tab.
Bundles the Archify 3.0.1 renderer and runs it on VS Code's Node runtime.
Adds validation diagnostics, JSON schema help, source-link navigation,
export saving, render-to-file and open-in-browser commands.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-30 12:44:15 +03:00

255 lines
6.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/tt-a1i/archify/schemas/dataflow.schema.json",
"title": "Archify Data Flow Diagram",
"type": "object",
"additionalProperties": false,
"required": [
"schema_version",
"diagram_type",
"meta",
"stages",
"nodes",
"flows"
],
"properties": {
"schema_version": {
"const": 1
},
"diagram_type": {
"const": "dataflow"
},
"meta": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"output"
],
"properties": {
"title": {
"type": "string",
"minLength": 1
},
"locale": {
"$ref": "common.schema.json#/$defs/locale"
},
"translations": {
"$ref": "common.schema.json#/$defs/translations"
},
"subtitle": {
"type": "string"
},
"output": {
"$ref": "common.schema.json#/$defs/portableOutputPath"
},
"animation": {
"$ref": "common.schema.json#/$defs/animation"
},
"visual_preset": {
"$ref": "common.schema.json#/$defs/visualPreset"
},
"quality_profile": {
"$ref": "common.schema.json#/$defs/qualityProfile"
},
"repository": {
"$ref": "common.schema.json#/$defs/repository"
},
"views": {
"$ref": "common.schema.json#/$defs/guidedViews"
},
"legend": {
"type": "object",
"additionalProperties": false,
"properties": {
"mode": { "$ref": "common.schema.json#/$defs/legendMode" },
"entries": {
"type": "object",
"additionalProperties": false,
"properties": {
"default": { "$ref": "common.schema.json#/$defs/legendEntry" },
"emphasis": { "$ref": "common.schema.json#/$defs/legendEntry" },
"security": { "$ref": "common.schema.json#/$defs/legendEntry" },
"dashed": { "$ref": "common.schema.json#/$defs/legendEntry" },
"database": { "$ref": "common.schema.json#/$defs/legendEntry" }
}
}
}
},
"viewBox": {
"type": "array",
"prefixItems": [
{
"type": "number",
"minimum": 360
},
{
"type": "number",
"minimum": 360
}
],
"items": false,
"minItems": 2,
"maxItems": 2
}
}
},
"stages": {
"type": "array",
"minItems": 2,
"maxItems": 5,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"label"
],
"properties": {
"label": {
"type": "string",
"minLength": 1
}
}
}
},
"nodes": {
"type": "array",
"minItems": 2,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"label",
"stage",
"row"
],
"properties": {
"id": {
"$ref": "common.schema.json#/$defs/id"
},
"type": {
"$ref": "common.schema.json#/$defs/componentType"
},
"label": {
"type": "string",
"minLength": 1
},
"sublabel": {
"type": "string"
},
"tag": {
"type": "string"
},
"icon": { "$ref": "common.schema.json#/$defs/nodeIcon" },
"brand": {
"$ref": "common.schema.json#/$defs/brandMark"
},
"sources": {
"$ref": "common.schema.json#/$defs/sourceReferences"
},
"stage": {
"type": "integer",
"minimum": 0
},
"row": {
"type": "integer",
"minimum": 0
},
"width": {
"type": "number",
"minimum": 48
},
"height": {
"type": "number",
"minimum": 36
},
"yOffset": {
"type": "number"
}
}
}
},
"flows": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"from",
"to",
"label"
],
"properties": {
"id": {
"$ref": "common.schema.json#/$defs/id"
},
"from": {
"$ref": "common.schema.json#/$defs/id"
},
"to": {
"$ref": "common.schema.json#/$defs/id"
},
"label": {
"type": "string",
"minLength": 1
},
"classification": {
"type": "string"
},
"variant": {
"$ref": "common.schema.json#/$defs/variant"
},
"route": {
"enum": [
"auto",
"straight",
"vertical-channel",
"bottom-channel",
"top-channel"
]
},
"fromSide": {
"$ref": "common.schema.json#/$defs/side"
},
"toSide": {
"$ref": "common.schema.json#/$defs/side"
},
"channelX": {
"type": "number"
},
"channelY": {
"type": "number"
},
"labelAt": {
"$ref": "common.schema.json#/$defs/point"
},
"labelDx": {
"type": "number"
},
"labelDy": {
"type": "number"
},
"labelSegment": {
"type": "integer",
"minimum": 0
},
"via": {
"type": "array",
"items": {
"$ref": "common.schema.json#/$defs/point"
}
},
"width": {
"$ref": "common.schema.json#/$defs/relationshipWidth"
}
}
}
},
"cards": {
"$ref": "common.schema.json#/$defs/cards"
}
}
}