{
  "version": 1,
  "baseUrl": "https://patterns.riyaj.in",
  "description": "Schema for the compiled pattern-library knowledge graph. Source of truth is data/*.json — regenerate, do not hand-edit graph.json.",
  "regenerate": "node scripts/export-llm-map.js",
  "nodeTypes": {
    "pattern": "UX pattern article — fetch llm/patterns/{id}.md",
    "framework": "Journey-stage framework — fetch llm/frameworks/{id}.md",
    "theory": "Psychological theory — psychology pages",
    "bias": "Cognitive bias — psychology pages",
    "contradiction": "Documented tradeoff between patterns",
    "collection": "Themed pattern bundle",
    "intent": "Problem → pattern routing slug"
  },
  "edgeTypes": {
    "related": "Curated pattern ↔ pattern link",
    "contradicts": "Opposing patterns in a documented tension",
    "uses_bias": "Pattern grounded in bias",
    "uses_theory": "Pattern grounded in theory",
    "includes": "Framework includes pattern",
    "in_framework": "Pattern belongs to framework",
    "curates": "Collection includes pattern",
    "routes_to": "Intent route includes pattern",
    "tension_between": "Contradiction node links to pattern"
  },
  "queryProtocol": [
    "Start at llm/graph-index.md or filter llm/graph.json hubs",
    "Expand neighbors via edges[] where source or target matches",
    "Use backlinks[nodeId] for reverse traversal",
    "Resolve detail with pattern markdown, not embeddings"
  ]
}
