json-canvas

Generate and validate JSON Canvas .canvas files with nodes and edges.

Updated Feb 11, 2016
One-click install
npx skills add https://github.com/Ehrax/dotfiles --skill json-canvas-ehrax
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: json-canvas
Source: https://github.com/Ehrax/dotfiles/tree/main/configs/agents/skills/json-canvas
Command: npx skills add https://github.com/Ehrax/dotfiles --skill json-canvas-ehrax

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

JSON Canvas files (.canvas) enable visual diagrams like mind maps and flowcharts, but many people struggle to create, edit, and validate the underlying JSON structure and relationships without tooling.

Core Features & Use Cases

  • Create a new canvas with the base structure {"nodes": [], "edges": []} and add nodes of type text, file, link, or group with coordinates and sizes.
  • Connect nodes with edges using fromNode/toNode IDs, optional sides, and labels to visualize relationships and workflows.
  • Validate JSON Canvas files to ensure unique IDs and valid node references, enabling reliable diagrams across editors and plugins.

Quick Start

Create a new .canvas file with the base structure and start adding nodes and edges to map your idea.

Frequently Asked Questions about json-canvas

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a valid JSON Canvas file for Obsidian?

To create a JSON Canvas file, start with the base structure {"nodes": [], "edges": []} and add nodes of type text, file, link, or group with coordinates and sizes. This ensures your canvas is parseable and consistent across editors.

What is the JSON Canvas format used for?

The JSON Canvas format is used to enable visual diagrams like mind maps and flowcharts. It structures relationships and workflows using nodes and edges, allowing you to visualize ideas within Obsidian, docs, or code projects.

How do I connect nodes in a .canvas flowchart?

You connect nodes in a .canvas flowchart by adding edges that reference fromNode and toNode IDs. You can also specify optional sides and labels to clearly visualize relationships and workflows within your diagram.

Can I validate JSON Canvas files to ensure unique IDs?

Yes, you can validate JSON Canvas files to ensure unique IDs and valid node references. This validation enforces basic rules to guarantee your diagrams remain reliable and parseable across different editors and plugins.

Does JSON Canvas support grouping nodes for project diagrams?

Yes, JSON Canvas supports adding nodes of type group alongside text, file, and link nodes. By assigning coordinates and sizes, you can organize complex project diagrams and visually cluster related elements.

What is the best way to structure a mind-map using JSON?

The best way to structure a mind-map using JSON is to define text nodes with specific coordinates and sizes, then link them using edges with fromNode and toNode IDs. This creates a parseable visual workflow.