limixbot 0.3.143 → 0.3.145

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/assets/{ActivityPanel-D5VsAHpV.js → ActivityPanel-CqObZQbN.js} +1 -1
  2. package/dist/assets/{App-BFnQK962.js → App-DcG1JmK6.js} +126 -126
  3. package/dist/assets/{AppEventEditor-npoRs7Gv.js → AppEventEditor-DR01sHAK.js} +1 -1
  4. package/dist/assets/{BotSettingsDialog-DyQB_KER.js → BotSettingsDialog-BHgSIU9E.js} +1 -1
  5. package/dist/assets/{BrowserPanel-B-Gb4Ryo.js → BrowserPanel-g96rlnqQ.js} +1 -1
  6. package/dist/assets/{BrowserProfilesManager-C4_r4TCi.js → BrowserProfilesManager-UJJC6OPf.js} +1 -1
  7. package/dist/assets/{CloudAddDialog-BiZwg41q.js → CloudAddDialog-BjPYPhnk.js} +1 -1
  8. package/dist/assets/{ComputerFilesPane-DfJRiNEq.js → ComputerFilesPane-DA7MBSD0.js} +1 -1
  9. package/dist/assets/{ComputerPanel-WDw0cKiS.js → ComputerPanel--rY7_KCN.js} +2 -2
  10. package/dist/assets/{DataPanel-CA6Q5vTA.js → DataPanel-CEhe1WKo.js} +1 -1
  11. package/dist/assets/{DesktopViewer-CiOyDjp2.js → DesktopViewer-RNuariIo.js} +1 -1
  12. package/dist/assets/{GrokMoveDialog-CdQMwpiq.js → GrokMoveDialog-DoUN6m5b.js} +1 -1
  13. package/dist/assets/{InspectorPanel-6owsh6AF.js → InspectorPanel-CdCXUouJ.js} +1 -1
  14. package/dist/assets/{KeyboardShortcutsModal-BmmNyVQ1.js → KeyboardShortcutsModal-CZ-BQqzV.js} +1 -1
  15. package/dist/assets/{LimixResizeHandles-B9fy1QSR.js → LimixResizeHandles-BUe_6hSJ.js} +1 -1
  16. package/dist/assets/{LiveDesktop-BjD6CYlm.js → LiveDesktop-BnaxuTzU.js} +1 -1
  17. package/dist/assets/{LocalVmWorkspace-CKA42noW.js → LocalVmWorkspace-X1ev9Wov.js} +1 -1
  18. package/dist/assets/{MacLocalControl-CR4SkBMx.js → MacLocalControl-RXW-1ET9.js} +1 -1
  19. package/dist/assets/{MarkdownFilePreview-DpSyTelP.js → MarkdownFilePreview-CIYTKbNj.js} +1 -1
  20. package/dist/assets/{MenuMotion-CJ3EL6xi.js → MenuMotion-C-qcisoG.js} +1 -1
  21. package/dist/assets/{NewBotDialog-CTj8zOTI.js → NewBotDialog-D_22AmDd.js} +1 -1
  22. package/dist/assets/{PhoneAppDialog-DUOfnoVL.js → PhoneAppDialog-WOhzSF82.js} +1 -1
  23. package/dist/assets/{PlacesRail-owo7-LYs.js → PlacesRail-DoUGQSpd.js} +1 -1
  24. package/dist/assets/{PluginsPanel-BaDKsIiF.js → PluginsPanel-DxM_qWtC.js} +1 -1
  25. package/dist/assets/{ProIntroduction-ygc-IDwt.js → ProIntroduction-CQFDxYxi.js} +1 -1
  26. package/dist/assets/{RemoteAgentSettingsPanel-Bsk-uLU6.js → RemoteAgentSettingsPanel-CdQmz7Qu.js} +1 -1
  27. package/dist/assets/{RoomPanel-Beak5cFq.js → RoomPanel-DVsYTCX7.js} +1 -1
  28. package/dist/assets/{RoutinesPage-E0_zyR6z.js → RoutinesPage-DG30sQw7.js} +1 -1
  29. package/dist/assets/SettingsModal-BFeWJ1OS.js +20 -0
  30. package/dist/assets/{ShareTeamDialog-0eIGkV95.js → ShareTeamDialog-BLddRjax.js} +1 -1
  31. package/dist/assets/{SignedInSites-DJDN1MMs.js → SignedInSites-BREmZ6gH.js} +1 -1
  32. package/dist/assets/{TeamLibraryPanel-T_B92anY.js → TeamLibraryPanel-Sg1D_gYP.js} +1 -1
  33. package/dist/assets/{TeamMapPage-BRnNgoL4.js → TeamMapPage-CP7ug7dF.js} +1 -1
  34. package/dist/assets/{TriggersPage-B9x6InCY.js → TriggersPage-DmY-ibGg.js} +1 -1
  35. package/dist/assets/{VisibilitySection-CM3W0MSu.js → VisibilitySection-BqQTMT_O.js} +1 -1
  36. package/dist/assets/{WebhookTrigger-CBbyorl9.js → WebhookTrigger-Bk2khhKt.js} +1 -1
  37. package/dist/assets/{WorksOnGrid-D_dPyzr3.js → WorksOnGrid-BhZTjLmG.js} +1 -1
  38. package/dist/assets/{abnfDiagram-YUKMZFIV-BShIKw4N.js → abnfDiagram-YUKMZFIV-4h66COg4.js} +1 -1
  39. package/dist/assets/{activity-Dg86AW-Y.js → activity-JVyqvn--.js} +1 -1
  40. package/dist/assets/{architectureDiagram-47P4ROYG-CmJg21RW.js → architectureDiagram-47P4ROYG-XVFtgz_w.js} +1 -1
  41. package/dist/assets/{blockDiagram-E7TT5TSB-Aj1hwdGc.js → blockDiagram-E7TT5TSB-Bzpnrunu.js} +1 -1
  42. package/dist/assets/{c4Diagram-CRA5TL53-DW8z1IzA.js → c4Diagram-CRA5TL53-Baf7lWcX.js} +1 -1
  43. package/dist/assets/{calendar-days-uny4AeNj.js → calendar-days-DJ8Sk4Wo.js} +1 -1
  44. package/dist/assets/channel-DJthUr0W.js +1 -0
  45. package/dist/assets/{chunk-2Q5K7J3B-Td582DAI.js → chunk-2Q5K7J3B-C01NJDuW.js} +1 -1
  46. package/dist/assets/{chunk-5VM5RSS4-DcogMbBa.js → chunk-5VM5RSS4-zCxCK82Z.js} +1 -1
  47. package/dist/assets/{chunk-7TKQ45FW-C3iGtJOF.js → chunk-7TKQ45FW-Dn3xzwzp.js} +1 -1
  48. package/dist/assets/{chunk-AW2ZBBNX-CrMPDJa8.js → chunk-AW2ZBBNX-D5v1LEvi.js} +1 -1
  49. package/dist/assets/{chunk-FVRAUYC3-o1j5js-h.js → chunk-FVRAUYC3-B_j2BQfP.js} +2 -2
  50. package/dist/assets/{chunk-HTAEGDNF-11Po0gGl.js → chunk-HTAEGDNF-CYEfb4lj.js} +1 -1
  51. package/dist/assets/{chunk-JWPE2WC7-DNNG2IRB.js → chunk-JWPE2WC7-DYxCqsdI.js} +1 -1
  52. package/dist/assets/{chunk-KQW6MTUR-8bqxTMty.js → chunk-KQW6MTUR-BVs1owNv.js} +1 -1
  53. package/dist/assets/{chunk-XXDRQBXY-nBGQqm9O.js → chunk-XXDRQBXY-oNREPc9w.js} +1 -1
  54. package/dist/assets/{classDiagram-v2-K4WV4PDN-tyTV-26Y.js → classDiagram-v2-K4WV4PDN-B8JOWdQM.js} +1 -1
  55. package/dist/assets/{coins-9fYbHf4u.js → coins-D-zVxeJ6.js} +1 -1
  56. package/dist/assets/{core-C06bWOSD.js → core-DGyt94O8.js} +1 -1
  57. package/dist/assets/{cose-bilkent-JH36ORCC-B3N4BJ97.js → cose-bilkent-JH36ORCC-Cvvvdg2x.js} +1 -1
  58. package/dist/assets/{cynefin-EF2NZ3EQ-CkGBluyX.js → cynefin-EF2NZ3EQ-BlyJPVpP.js} +1 -1
  59. package/dist/assets/{cynefinDiagram-3GCD6N5R-Cw7BUT2F.js → cynefinDiagram-3GCD6N5R-aXWhkS0N.js} +1 -1
  60. package/dist/assets/{dagre-W4DXFKR2-D0Adi0WD.js → dagre-W4DXFKR2-CK9mZlxS.js} +1 -1
  61. package/dist/assets/{diagram-2UJZ2QOL-DglYBdi-.js → diagram-2UJZ2QOL-ciDDPAUW.js} +1 -1
  62. package/dist/assets/{diagram-OVF4WLC6-BCESoOTI.js → diagram-OVF4WLC6-ZC2XGXAQ.js} +1 -1
  63. package/dist/assets/{diagram-PFPMY2P6-CJPe3Aln.js → diagram-PFPMY2P6-B_UNW8Y1.js} +1 -1
  64. package/dist/assets/{diagram-UMYRVEAY-dihXhKwO.js → diagram-UMYRVEAY-BzqwG15l.js} +1 -1
  65. package/dist/assets/{diagram-YEKJPTXX-fMI2BfDq.js → diagram-YEKJPTXX-f7zBrJwE.js} +1 -1
  66. package/dist/assets/{diagram-ZIFT7M5P-BsyTuxHx.js → diagram-ZIFT7M5P-QClomp2E.js} +1 -1
  67. package/dist/assets/{ebnfDiagram-VR2GEFS7-DqUUqK6O.js → ebnfDiagram-VR2GEFS7-BwcmIXBL.js} +1 -1
  68. package/dist/assets/{elk-IJKZMXRS-CInxAtfn.js → elk-IJKZMXRS-DPv8qzg-.js} +1 -1
  69. package/dist/assets/{erDiagram-O2IAPWRE-CtLhNkB3.js → erDiagram-O2IAPWRE-BHknllso.js} +1 -1
  70. package/dist/assets/{file-up-0W3zPN3C.js → file-up-B5lQ3tIu.js} +1 -1
  71. package/dist/assets/{flowDiagram-OXPTDLAJ-CSJXQyPz.js → flowDiagram-OXPTDLAJ-LwDo9oFR.js} +1 -1
  72. package/dist/assets/{ganttDiagram-R7TSEDQI-BxPwhRE_.js → ganttDiagram-R7TSEDQI-DDXQuF2p.js} +1 -1
  73. package/dist/assets/{gitGraphDiagram-XJZIOB7I-B7_5GQWX.js → gitGraphDiagram-XJZIOB7I-DxAL8MxK.js} +1 -1
  74. package/dist/assets/{import-name-DSkjrWGm.js → import-name-fUZKEQiu.js} +1 -1
  75. package/dist/assets/{index-x-tLeVCm.js → index-Bb6OwohQ.js} +1 -1
  76. package/dist/assets/{index-DZeZApXw.js → index-C_1rKgRm.js} +3 -3
  77. package/dist/assets/{infoDiagram-5W2HQ5XZ-DTe4tqre.js → infoDiagram-5W2HQ5XZ-BxZNIlp6.js} +1 -1
  78. package/dist/assets/{ishikawaDiagram-K3B6WC7H-D_lFS_pL.js → ishikawaDiagram-K3B6WC7H-C6c1u1w2.js} +1 -1
  79. package/dist/assets/{journeyDiagram-COXZFDF6-BWwkG9Wu.js → journeyDiagram-COXZFDF6-BrngL-3X.js} +1 -1
  80. package/dist/assets/{kanban-definition-P3RFRI5V-yY-GGfzv.js → kanban-definition-P3RFRI5V-BhTOtF-B.js} +1 -1
  81. package/dist/assets/{mermaid.core-DH28Cv2M.js → mermaid.core-Cy9_uq1T.js} +4 -4
  82. package/dist/assets/{mindmap-definition-LZFPQGKD--BlKMUpH.js → mindmap-definition-LZFPQGKD-Dr3QB9wA.js} +1 -1
  83. package/dist/assets/{minimize-Cub3T_xk.js → minimize-Ct6C2khA.js} +1 -1
  84. package/dist/assets/{monitor-Bt-Nw5iC.js → monitor-BZrhga_j.js} +1 -1
  85. package/dist/assets/{new-bot-RHcTiQhX.js → new-bot-DCA0S24E.js} +1 -1
  86. package/dist/assets/{org-library-CWZn7Pto.js → org-library-DgVAGwBY.js} +1 -1
  87. package/dist/assets/{package-format-pwodjdBX.js → package-format-BvWgfqGs.js} +1 -1
  88. package/dist/assets/{pegDiagram-BGZESJAR-xNMFigxg.js → pegDiagram-BGZESJAR-D0bSaHqd.js} +1 -1
  89. package/dist/assets/{pieDiagram-CAPJLFHJ-BeqCVqVc.js → pieDiagram-CAPJLFHJ-B8i7ox8l.js} +1 -1
  90. package/dist/assets/{quadrantDiagram-GDMTTRAM-BcXtvC07.js → quadrantDiagram-GDMTTRAM-BcJTpsdR.js} +1 -1
  91. package/dist/assets/{rail-Bh9Kz5ar.js → rail-Bzq4BbCt.js} +1 -1
  92. package/dist/assets/{railroadDiagram-SM67HX2B-BBvW1QlX.js → railroadDiagram-SM67HX2B-DSO-XOKW.js} +1 -1
  93. package/dist/assets/{remote-desktop-panel-ClKGLfg-.js → remote-desktop-panel-BVRS7AXc.js} +1 -1
  94. package/dist/assets/{requirementDiagram-X7JNWC4A-CJW-jnaM.js → requirementDiagram-X7JNWC4A-B5gEynme.js} +1 -1
  95. package/dist/assets/{sankeyDiagram-UM26HJRW-DM75AxXv.js → sankeyDiagram-UM26HJRW-CK2T6Pgm.js} +1 -1
  96. package/dist/assets/{sequenceDiagram-ZO4K6R2Y-C89f2OJQ.js → sequenceDiagram-ZO4K6R2Y-Dx9DVGEG.js} +1 -1
  97. package/dist/assets/{sizeCapture-INFHLROL-FvDzKQKk.js → sizeCapture-INFHLROL-BbirmlCW.js} +1 -1
  98. package/dist/assets/{stateDiagram-v2-TBUQTH76-CBLS4xm0.js → stateDiagram-v2-TBUQTH76-CuJOlmiS.js} +1 -1
  99. package/dist/assets/{styles-Pta9BaPs.css → styles-CE5PtWhb.css} +1 -1
  100. package/dist/assets/{swimlanes-N4OXWK64-0bIYZbSm.js → swimlanes-N4OXWK64-BWFqBYF_.js} +1 -1
  101. package/dist/assets/swimlanesDiagram-K3J5GTZL-BjpCZGc-.js +8 -0
  102. package/dist/assets/{team-share-DLeRlsAM.js → team-share-1e1FK9fo.js} +1 -1
  103. package/dist/assets/{timeline-definition-YOQAKGHF-D90qmKgS.js → timeline-definition-YOQAKGHF-CzxPBKDi.js} +1 -1
  104. package/dist/assets/{usecaseDiagram-VIAY4XPW-ZU4U3uEB.js → usecaseDiagram-VIAY4XPW-B5-pXbU3.js} +1 -1
  105. package/dist/assets/{vennDiagram-BLWOH2XV-DaL2hish.js → vennDiagram-BLWOH2XV-BccL1p-U.js} +1 -1
  106. package/dist/assets/{wardleyDiagram-YMQ3BMBF-idgSzgFw.js → wardleyDiagram-YMQ3BMBF-DdJ9Pves.js} +1 -1
  107. package/dist/assets/{xychartDiagram-TAQBALBS-Dux_Zrd0.js → xychartDiagram-TAQBALBS-BAg7I3YQ.js} +1 -1
  108. package/dist/index.html +3 -3
  109. package/dist/rail.html +5 -5
  110. package/dist-server/index.js +1872 -1851
  111. package/dist-server/package.json +1 -1
  112. package/dist-server/server/cloud-codex-session.js +135 -0
  113. package/dist-server/server/cloud-connections.js +1 -0
  114. package/dist-server/server/index.js +9 -0
  115. package/dist-server/server/limix-skill-store.js +7 -0
  116. package/dist-server/server/routes/cloud-codex-session.js +47 -0
  117. package/dist-server/server/routes/config.js +50 -1
  118. package/package.json +1 -1
  119. package/skills/defuddle/LICENSE +21 -0
  120. package/skills/defuddle/SKILL.md +58 -0
  121. package/skills/defuddle/manifest.json +21 -0
  122. package/skills/json-canvas/LICENSE +21 -0
  123. package/skills/json-canvas/SKILL.md +265 -0
  124. package/skills/json-canvas/manifest.json +22 -0
  125. package/skills/json-canvas/references/EXAMPLES.md +329 -0
  126. package/skills/knap/LICENSE +21 -0
  127. package/skills/knap/SKILL.md +120 -0
  128. package/skills/knap/manifest.json +22 -0
  129. package/skills/obsidian-bases/LICENSE +21 -0
  130. package/skills/obsidian-bases/SKILL.md +619 -0
  131. package/skills/obsidian-bases/manifest.json +22 -0
  132. package/skills/obsidian-bases/references/FUNCTIONS_REFERENCE.md +173 -0
  133. package/skills/obsidian-cli/LICENSE +21 -0
  134. package/skills/obsidian-cli/SKILL.md +158 -0
  135. package/skills/obsidian-cli/manifest.json +21 -0
  136. package/skills/obsidian-headless/LICENSE +21 -0
  137. package/skills/obsidian-headless/SKILL.md +92 -0
  138. package/skills/obsidian-headless/manifest.json +23 -0
  139. package/skills/obsidian-markdown/LICENSE +21 -0
  140. package/skills/obsidian-markdown/SKILL.md +210 -0
  141. package/skills/obsidian-markdown/manifest.json +22 -0
  142. package/skills/obsidian-markdown/references/CALLOUTS.md +58 -0
  143. package/skills/obsidian-markdown/references/EMBEDS.md +70 -0
  144. package/skills/obsidian-markdown/references/PROPERTIES.md +63 -0
  145. package/dist/assets/SettingsModal-B7L3QwQY.js +0 -20
  146. package/dist/assets/channel-DI3JBS-g.js +0 -1
  147. package/dist/assets/swimlanesDiagram-K3J5GTZL-BDfw8Tlz.js +0 -8
  148. /package/dist/assets/{styles-B38kYzzJ.js → styles-CLQR3ehf.js} +0 -0
@@ -0,0 +1,265 @@
1
+ ---
2
+ name: json-canvas
3
+ description: Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.
4
+ ---
5
+
6
+ > Source: https://github.com/obsidianmd/obsidian-skills/tree/9c9560a870fd490b0e1a847f2c8401a50e2d931d/plugins/obsidian/skills/json-canvas (MIT).
7
+
8
+ # JSON Canvas Skill
9
+
10
+ ## File Structure
11
+
12
+ A canvas file (`.canvas`) contains two top-level arrays following the [JSON Canvas Spec 1.0](https://jsoncanvas.org/spec/1.0/):
13
+
14
+ ```json
15
+ {
16
+ "nodes": [],
17
+ "edges": []
18
+ }
19
+ ```
20
+
21
+ - `nodes` (optional): Array of node objects
22
+ - `edges` (optional): Array of edge objects connecting nodes
23
+
24
+ ## Common Workflows
25
+
26
+ ### 1. Create a New Canvas
27
+
28
+ 1. Create a `.canvas` file with the base structure `{"nodes": [], "edges": []}`
29
+ 2. Generate unique 16-character hex IDs for each node (e.g., `"6f0ad84f44ce9c17"`)
30
+ 3. Add nodes with required fields: `id`, `type`, `x`, `y`, `width`, `height`
31
+ 4. Add edges referencing valid node IDs via `fromNode` and `toNode`
32
+ 5. **Validate**: Parse the JSON to confirm it is valid. Verify all `fromNode`/`toNode` values exist in the nodes array
33
+
34
+ ### 2. Add a Node to an Existing Canvas
35
+
36
+ 1. Read and parse the existing `.canvas` file
37
+ 2. Generate a unique ID that does not collide with existing node or edge IDs
38
+ 3. Choose position (`x`, `y`) that avoids overlapping existing nodes (leave 50-100px spacing)
39
+ 4. Append the new node object to the `nodes` array
40
+ 5. Optionally add edges connecting the new node to existing nodes
41
+ 6. **Validate**: Confirm all IDs are unique and all edge references resolve to existing nodes
42
+
43
+ ### 3. Connect Two Nodes
44
+
45
+ 1. Identify the source and target node IDs
46
+ 2. Generate a unique edge ID
47
+ 3. Set `fromNode` and `toNode` to the source and target IDs
48
+ 4. Optionally set `fromSide`/`toSide` (top, right, bottom, left) for anchor points
49
+ 5. Optionally set `label` for descriptive text on the edge
50
+ 6. Append the edge to the `edges` array
51
+ 7. **Validate**: Confirm both `fromNode` and `toNode` reference existing node IDs
52
+
53
+ ### 4. Edit an Existing Canvas
54
+
55
+ 1. Read and parse the `.canvas` file as JSON
56
+ 2. Locate the target node or edge by `id`
57
+ 3. Modify the desired attributes (text, position, color, etc.)
58
+ 4. Write the updated JSON back to the file
59
+ 5. **Validate**: Re-check all ID uniqueness and edge reference integrity after editing
60
+
61
+ ## Nodes
62
+
63
+ Nodes are objects placed on the canvas. Array order determines z-index: first node = bottom layer, last node = top layer.
64
+
65
+ ### Generic Node Attributes
66
+
67
+ | Attribute | Required | Type | Description |
68
+ |-----------|----------|------|-------------|
69
+ | `id` | Yes | string | Unique 16-char hex identifier |
70
+ | `type` | Yes | string | `text`, `file`, `link`, or `group` |
71
+ | `x` | Yes | integer | X position in pixels |
72
+ | `y` | Yes | integer | Y position in pixels |
73
+ | `width` | Yes | integer | Width in pixels |
74
+ | `height` | Yes | integer | Height in pixels |
75
+ | `color` | No | canvasColor | Preset `"1"`-`"6"` or hex (e.g., `"#FF0000"`) |
76
+
77
+ ### Text Nodes
78
+
79
+ | Attribute | Required | Type | Description |
80
+ |-----------|----------|------|-------------|
81
+ | `text` | Yes | string | Plain text with Markdown syntax |
82
+
83
+ ```json
84
+ {
85
+ "id": "6f0ad84f44ce9c17",
86
+ "type": "text",
87
+ "x": 0,
88
+ "y": 0,
89
+ "width": 400,
90
+ "height": 200,
91
+ "text": "# Hello World\n\nThis is **Markdown** content."
92
+ }
93
+ ```
94
+
95
+ **Newline pitfall**: Use `\n` for line breaks in JSON strings. Do **not** use the literal `\\n` -- Obsidian renders that as the characters `\` and `n`.
96
+
97
+ **Quote escaping pitfall**: Double quotes inside `text` content must be escaped as `\"`. For example, the text `公司的"外交官"` must be stored as `"text": "公司的\"外交官\""`. Unescaped quotes break the JSON parse and the canvas will fail to render. When generating canvas JSON programmatically, always use a JSON serializer rather than manual string concatenation.
98
+
99
+ Write `.canvas` files directly. Don't create them with `obsidian create content=`, which turns every `\n` into a raw newline and breaks the JSON.
100
+
101
+ ### File Nodes
102
+
103
+ | Attribute | Required | Type | Description |
104
+ |-----------|----------|------|-------------|
105
+ | `file` | Yes | string | Path to file within the system |
106
+ | `subpath` | No | string | Link to heading or block (starts with `#`) |
107
+
108
+ **File path escaping**: If a file name contains double quotes, they must be escaped as `\"` in the JSON string. For example, a file named `My "Notes".md` should be referenced as `"file": "My \"Notes\".md"`.
109
+
110
+ ```json
111
+ {
112
+ "id": "a1b2c3d4e5f67890",
113
+ "type": "file",
114
+ "x": 500,
115
+ "y": 0,
116
+ "width": 400,
117
+ "height": 300,
118
+ "file": "Attachments/diagram.png"
119
+ }
120
+ ```
121
+
122
+ ### Link Nodes
123
+
124
+ | Attribute | Required | Type | Description |
125
+ |-----------|----------|------|-------------|
126
+ | `url` | Yes | string | External URL |
127
+
128
+ ```json
129
+ {
130
+ "id": "c3d4e5f678901234",
131
+ "type": "link",
132
+ "x": 1000,
133
+ "y": 0,
134
+ "width": 400,
135
+ "height": 200,
136
+ "url": "https://obsidian.md"
137
+ }
138
+ ```
139
+
140
+ ### Group Nodes
141
+
142
+ Groups are visual containers for organizing other nodes. Position child nodes inside the group's bounds.
143
+
144
+ | Attribute | Required | Type | Description |
145
+ |-----------|----------|------|-------------|
146
+ | `label` | No | string | Text label for the group |
147
+ | `background` | No | string | Path to background image |
148
+ | `backgroundStyle` | No | string | `cover`, `ratio`, or `repeat` |
149
+
150
+ ```json
151
+ {
152
+ "id": "d4e5f6789012345a",
153
+ "type": "group",
154
+ "x": -50,
155
+ "y": -50,
156
+ "width": 1000,
157
+ "height": 600,
158
+ "label": "Project Overview",
159
+ "color": "4"
160
+ }
161
+ ```
162
+
163
+ ## Edges
164
+
165
+ Edges connect nodes via `fromNode` and `toNode` IDs.
166
+
167
+ | Attribute | Required | Type | Default | Description |
168
+ |-----------|----------|------|---------|-------------|
169
+ | `id` | Yes | string | - | Unique identifier |
170
+ | `fromNode` | Yes | string | - | Source node ID |
171
+ | `fromSide` | No | string | - | `top`, `right`, `bottom`, or `left` |
172
+ | `fromEnd` | No | string | `none` | `none` or `arrow` |
173
+ | `toNode` | Yes | string | - | Target node ID |
174
+ | `toSide` | No | string | - | `top`, `right`, `bottom`, or `left` |
175
+ | `toEnd` | No | string | `arrow` | `none` or `arrow` |
176
+ | `color` | No | canvasColor | - | Line color |
177
+ | `label` | No | string | - | Text label |
178
+
179
+ ```json
180
+ {
181
+ "id": "0123456789abcdef",
182
+ "fromNode": "6f0ad84f44ce9c17",
183
+ "fromSide": "right",
184
+ "toNode": "a1b2c3d4e5f67890",
185
+ "toSide": "left",
186
+ "toEnd": "arrow",
187
+ "label": "leads to"
188
+ }
189
+ ```
190
+
191
+ ## Colors
192
+
193
+ The `canvasColor` type accepts either a hex string or a preset number:
194
+
195
+ | Preset | Color |
196
+ |--------|-------|
197
+ | `"1"` | Red |
198
+ | `"2"` | Orange |
199
+ | `"3"` | Yellow |
200
+ | `"4"` | Green |
201
+ | `"5"` | Cyan |
202
+ | `"6"` | Purple |
203
+
204
+ Preset color values are intentionally undefined -- applications use their own brand colors.
205
+
206
+ ## ID Generation
207
+
208
+ Generate 16-character lowercase hexadecimal strings (64-bit random value):
209
+
210
+ ```
211
+ "6f0ad84f44ce9c17"
212
+ "a3b2c1d0e9f8a7b6"
213
+ ```
214
+
215
+ ## Layout Guidelines
216
+
217
+ - Coordinates can be negative (canvas extends infinitely)
218
+ - `x` increases right, `y` increases down; position is the top-left corner
219
+ - Space nodes 50-100px apart; leave 20-50px padding inside groups
220
+ - Align to grid (multiples of 10 or 20) for cleaner layouts
221
+
222
+ | Node Type | Suggested Width | Suggested Height | CJK Width (1.5x) |
223
+ |-----------|-----------------|------------------|-------------------|
224
+ | Small text | 200-300 | 80-150 | 300-450 |
225
+ | Medium text | 300-450 | 150-300 | 450-675 |
226
+ | Large text | 400-600 | 300-500 | 600-900 |
227
+ | File preview | 300-500 | 200-400 | 450-750 |
228
+ | Link preview | 250-400 | 100-200 | 375-600 |
229
+
230
+ **CJK text sizing**: CJK characters (Chinese, Japanese, Korean) are wider than Latin characters. For content primarily in CJK languages, multiply the suggested width by ~1.5× to avoid cramped layouts and awkward line breaks.
231
+
232
+ ## Validation Checklist
233
+
234
+ After creating or editing a canvas file, verify:
235
+
236
+ 1. All `id` values are unique across both nodes and edges
237
+ 2. Every `fromNode` and `toNode` references an existing node ID
238
+ 3. Required fields are present for each node type (`text` for text nodes, `file` for file nodes, `url` for link nodes)
239
+ 4. `type` is one of: `text`, `file`, `link`, `group`
240
+ 5. `fromSide`/`toSide` values are one of: `top`, `right`, `bottom`, `left`
241
+ 6. `fromEnd`/`toEnd` values are one of: `none`, `arrow`
242
+ 7. Color presets are `"1"` through `"6"` or valid hex (e.g., `"#FF0000"`)
243
+ 8. Double quotes in `text` and `file` values are properly escaped as `\"`
244
+ 9. JSON is valid and parseable
245
+
246
+ If validation fails, check for duplicate IDs, dangling edge references, or malformed JSON strings (especially unescaped newlines in text content).
247
+
248
+ ## Complete Examples
249
+
250
+ See [references/EXAMPLES.md](references/EXAMPLES.md) for full canvas examples including mind maps, project boards, research canvases, and flowcharts.
251
+
252
+ ## References
253
+
254
+ - [JSON Canvas Spec 1.0](https://jsoncanvas.org/spec/1.0/)
255
+ - [JSON Canvas GitHub](https://github.com/obsidianmd/jsoncanvas)
256
+
257
+ ## Hướng dẫn tiếng Việt
258
+
259
+ Khi người dùng yêu cầu sơ đồ Obsidian, tạo tệp `.canvas` bằng JSON. Ví dụ tối thiểu sau tạo một thẻ văn bản.
260
+
261
+ ```json
262
+ {"nodes":[{"id":"3fd9a361bc58217e","type":"text","x":0,"y":0,"width":280,"height":100,"text":"Chốt lịch bàn giao"}],"edges":[]}
263
+ ```
264
+
265
+ Khi thêm thẻ vào sơ đồ sẵn có, đọc sơ đồ trước để giữ nguyên ID, nội dung và vị trí các thẻ hiện tại. Tạo ID riêng cho thẻ và đường nối mới. Kiểm tra JSON đọc được và hai đầu `fromNode`, `toNode` của từng đường nối đều trỏ tới thẻ có thật. Nếu dùng thẻ tệp, ghi đường dẫn tương đối từ gốc vault.
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "json-canvas",
3
+ "name": "JSON Canvas",
4
+ "version": "1.2.3",
5
+ "description": "Create and edit Obsidian canvases with cards, groups and connections.",
6
+ "defaultEnabled": true,
7
+ "triggerTerms": [
8
+ "json canvas",
9
+ "obsidian canvas",
10
+ "canvas obsidian",
11
+ "sơ đồ obsidian",
12
+ ".canvas file",
13
+ "tệp .canvas"
14
+ ],
15
+ "requiredCapabilities": [],
16
+ "source": {
17
+ "repo": "obsidianmd/obsidian-skills",
18
+ "commit": "9c9560a870fd490b0e1a847f2c8401a50e2d931d",
19
+ "folder": "plugins/obsidian/skills/json-canvas",
20
+ "license": "MIT"
21
+ }
22
+ }
@@ -0,0 +1,329 @@
1
+ # JSON Canvas Complete Examples
2
+
3
+ ## Simple Canvas with Text and Connections
4
+
5
+ ```json
6
+ {
7
+ "nodes": [
8
+ {
9
+ "id": "8a9b0c1d2e3f4a5b",
10
+ "type": "text",
11
+ "x": 0,
12
+ "y": 0,
13
+ "width": 300,
14
+ "height": 150,
15
+ "text": "# Main Idea\n\nThis is the central concept."
16
+ },
17
+ {
18
+ "id": "1a2b3c4d5e6f7a8b",
19
+ "type": "text",
20
+ "x": 400,
21
+ "y": -100,
22
+ "width": 250,
23
+ "height": 100,
24
+ "text": "## Supporting Point A\n\nDetails here."
25
+ },
26
+ {
27
+ "id": "2b3c4d5e6f7a8b9c",
28
+ "type": "text",
29
+ "x": 400,
30
+ "y": 100,
31
+ "width": 250,
32
+ "height": 100,
33
+ "text": "## Supporting Point B\n\nMore details."
34
+ }
35
+ ],
36
+ "edges": [
37
+ {
38
+ "id": "3c4d5e6f7a8b9c0d",
39
+ "fromNode": "8a9b0c1d2e3f4a5b",
40
+ "fromSide": "right",
41
+ "toNode": "1a2b3c4d5e6f7a8b",
42
+ "toSide": "left"
43
+ },
44
+ {
45
+ "id": "4d5e6f7a8b9c0d1e",
46
+ "fromNode": "8a9b0c1d2e3f4a5b",
47
+ "fromSide": "right",
48
+ "toNode": "2b3c4d5e6f7a8b9c",
49
+ "toSide": "left"
50
+ }
51
+ ]
52
+ }
53
+ ```
54
+
55
+ ## Project Board with Groups
56
+
57
+ ```json
58
+ {
59
+ "nodes": [
60
+ {
61
+ "id": "5e6f7a8b9c0d1e2f",
62
+ "type": "group",
63
+ "x": 0,
64
+ "y": 0,
65
+ "width": 300,
66
+ "height": 500,
67
+ "label": "To Do",
68
+ "color": "1"
69
+ },
70
+ {
71
+ "id": "6f7a8b9c0d1e2f3a",
72
+ "type": "group",
73
+ "x": 350,
74
+ "y": 0,
75
+ "width": 300,
76
+ "height": 500,
77
+ "label": "In Progress",
78
+ "color": "3"
79
+ },
80
+ {
81
+ "id": "7a8b9c0d1e2f3a4b",
82
+ "type": "group",
83
+ "x": 700,
84
+ "y": 0,
85
+ "width": 300,
86
+ "height": 500,
87
+ "label": "Done",
88
+ "color": "4"
89
+ },
90
+ {
91
+ "id": "8b9c0d1e2f3a4b5c",
92
+ "type": "text",
93
+ "x": 20,
94
+ "y": 50,
95
+ "width": 260,
96
+ "height": 80,
97
+ "text": "## Task 1\n\nImplement feature X"
98
+ },
99
+ {
100
+ "id": "9c0d1e2f3a4b5c6d",
101
+ "type": "text",
102
+ "x": 370,
103
+ "y": 50,
104
+ "width": 260,
105
+ "height": 80,
106
+ "text": "## Task 2\n\nReview PR #123",
107
+ "color": "2"
108
+ },
109
+ {
110
+ "id": "0d1e2f3a4b5c6d7e",
111
+ "type": "text",
112
+ "x": 720,
113
+ "y": 50,
114
+ "width": 260,
115
+ "height": 80,
116
+ "text": "## Task 3\n\n~~Setup CI/CD~~"
117
+ }
118
+ ],
119
+ "edges": []
120
+ }
121
+ ```
122
+
123
+ ## Research Canvas with Files and Links
124
+
125
+ ```json
126
+ {
127
+ "nodes": [
128
+ {
129
+ "id": "1e2f3a4b5c6d7e8f",
130
+ "type": "text",
131
+ "x": 300,
132
+ "y": 200,
133
+ "width": 400,
134
+ "height": 200,
135
+ "text": "# Research Topic\n\n## Key Questions\n\n- How does X affect Y?\n- What are the implications?",
136
+ "color": "5"
137
+ },
138
+ {
139
+ "id": "2f3a4b5c6d7e8f9a",
140
+ "type": "file",
141
+ "x": 0,
142
+ "y": 0,
143
+ "width": 250,
144
+ "height": 150,
145
+ "file": "Literature/Paper A.pdf"
146
+ },
147
+ {
148
+ "id": "3a4b5c6d7e8f9a0b",
149
+ "type": "file",
150
+ "x": 0,
151
+ "y": 200,
152
+ "width": 250,
153
+ "height": 150,
154
+ "file": "Notes/Meeting Notes.md",
155
+ "subpath": "#Key Insights"
156
+ },
157
+ {
158
+ "id": "4b5c6d7e8f9a0b1c",
159
+ "type": "link",
160
+ "x": 0,
161
+ "y": 400,
162
+ "width": 250,
163
+ "height": 100,
164
+ "url": "https://example.com/research"
165
+ },
166
+ {
167
+ "id": "5c6d7e8f9a0b1c2d",
168
+ "type": "file",
169
+ "x": 750,
170
+ "y": 150,
171
+ "width": 300,
172
+ "height": 250,
173
+ "file": "Attachments/diagram.png"
174
+ }
175
+ ],
176
+ "edges": [
177
+ {
178
+ "id": "6d7e8f9a0b1c2d3e",
179
+ "fromNode": "2f3a4b5c6d7e8f9a",
180
+ "fromSide": "right",
181
+ "toNode": "1e2f3a4b5c6d7e8f",
182
+ "toSide": "left",
183
+ "label": "supports"
184
+ },
185
+ {
186
+ "id": "7e8f9a0b1c2d3e4f",
187
+ "fromNode": "3a4b5c6d7e8f9a0b",
188
+ "fromSide": "right",
189
+ "toNode": "1e2f3a4b5c6d7e8f",
190
+ "toSide": "left",
191
+ "label": "informs"
192
+ },
193
+ {
194
+ "id": "8f9a0b1c2d3e4f5a",
195
+ "fromNode": "4b5c6d7e8f9a0b1c",
196
+ "fromSide": "right",
197
+ "toNode": "1e2f3a4b5c6d7e8f",
198
+ "toSide": "left",
199
+ "toEnd": "arrow",
200
+ "color": "6"
201
+ },
202
+ {
203
+ "id": "9a0b1c2d3e4f5a6b",
204
+ "fromNode": "1e2f3a4b5c6d7e8f",
205
+ "fromSide": "right",
206
+ "toNode": "5c6d7e8f9a0b1c2d",
207
+ "toSide": "left",
208
+ "label": "visualized by"
209
+ }
210
+ ]
211
+ }
212
+ ```
213
+
214
+ ## Flowchart
215
+
216
+ ```json
217
+ {
218
+ "nodes": [
219
+ {
220
+ "id": "a0b1c2d3e4f5a6b7",
221
+ "type": "text",
222
+ "x": 200,
223
+ "y": 0,
224
+ "width": 150,
225
+ "height": 60,
226
+ "text": "**Start**",
227
+ "color": "4"
228
+ },
229
+ {
230
+ "id": "b1c2d3e4f5a6b7c8",
231
+ "type": "text",
232
+ "x": 200,
233
+ "y": 100,
234
+ "width": 150,
235
+ "height": 60,
236
+ "text": "Step 1:\nGather data"
237
+ },
238
+ {
239
+ "id": "c2d3e4f5a6b7c8d9",
240
+ "type": "text",
241
+ "x": 200,
242
+ "y": 200,
243
+ "width": 150,
244
+ "height": 80,
245
+ "text": "**Decision**\n\nIs data valid?",
246
+ "color": "3"
247
+ },
248
+ {
249
+ "id": "d3e4f5a6b7c8d9e0",
250
+ "type": "text",
251
+ "x": 400,
252
+ "y": 200,
253
+ "width": 150,
254
+ "height": 60,
255
+ "text": "Process data"
256
+ },
257
+ {
258
+ "id": "e4f5a6b7c8d9e0f1",
259
+ "type": "text",
260
+ "x": 0,
261
+ "y": 200,
262
+ "width": 150,
263
+ "height": 60,
264
+ "text": "Request new data",
265
+ "color": "1"
266
+ },
267
+ {
268
+ "id": "f5a6b7c8d9e0f1a2",
269
+ "type": "text",
270
+ "x": 400,
271
+ "y": 320,
272
+ "width": 150,
273
+ "height": 60,
274
+ "text": "**End**",
275
+ "color": "4"
276
+ }
277
+ ],
278
+ "edges": [
279
+ {
280
+ "id": "a6b7c8d9e0f1a2b3",
281
+ "fromNode": "a0b1c2d3e4f5a6b7",
282
+ "fromSide": "bottom",
283
+ "toNode": "b1c2d3e4f5a6b7c8",
284
+ "toSide": "top"
285
+ },
286
+ {
287
+ "id": "b7c8d9e0f1a2b3c4",
288
+ "fromNode": "b1c2d3e4f5a6b7c8",
289
+ "fromSide": "bottom",
290
+ "toNode": "c2d3e4f5a6b7c8d9",
291
+ "toSide": "top"
292
+ },
293
+ {
294
+ "id": "c8d9e0f1a2b3c4d5",
295
+ "fromNode": "c2d3e4f5a6b7c8d9",
296
+ "fromSide": "right",
297
+ "toNode": "d3e4f5a6b7c8d9e0",
298
+ "toSide": "left",
299
+ "label": "Yes",
300
+ "color": "4"
301
+ },
302
+ {
303
+ "id": "d9e0f1a2b3c4d5e6",
304
+ "fromNode": "c2d3e4f5a6b7c8d9",
305
+ "fromSide": "left",
306
+ "toNode": "e4f5a6b7c8d9e0f1",
307
+ "toSide": "right",
308
+ "label": "No",
309
+ "color": "1"
310
+ },
311
+ {
312
+ "id": "e0f1a2b3c4d5e6f7",
313
+ "fromNode": "e4f5a6b7c8d9e0f1",
314
+ "fromSide": "top",
315
+ "fromEnd": "none",
316
+ "toNode": "b1c2d3e4f5a6b7c8",
317
+ "toSide": "left",
318
+ "toEnd": "arrow"
319
+ },
320
+ {
321
+ "id": "f1a2b3c4d5e6f7a8",
322
+ "fromNode": "d3e4f5a6b7c8d9e0",
323
+ "fromSide": "bottom",
324
+ "toNode": "f5a6b7c8d9e0f1a2",
325
+ "toSide": "top"
326
+ }
327
+ ]
328
+ }
329
+ ```
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Steph Ango (@kepano)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.