obsidian-excalidraw
Installation
SKILL.md
Obsidian Excalidraw
Generate .excalidraw files programmatically and embed them in Obsidian markdown notes.
Quick start
Use the helper module in scripts/shapes.js — it generates valid Excalidraw JSON with no dependencies:
# Run the working example to generate a diagram
node examples/example.js > my-diagram.excalidraw
# Inspect or validate generated JSON with jq (never python)
node examples/example.js | jq '.elements | length'
node examples/example.js | jq '.elements[] | select(.type == "arrow") | .id'
Or require it in your own script: