This plugin is a page type plugin that renders JSON Canvas (.canvas) files as interactive, pannable and zoomable canvas pages. It uses a custom "canvas" page frame that provides a fullscreen, always-on canvas experience with a togglable left sidebar for navigation. It supports the full JSON Canvas 1.0 spec, including text nodes with Markdown rendering, file nodes that link to other pages in your vault, link nodes for external URLs, and group nodes for visual organization. Edges between nodes are rendered as SVG paths with optional labels, arrow markers, and colors.
For information on how to add, remove or configure plugins, see the Configuration page.
This plugin accepts the following configuration options:
enableInteraction: Whether to enable pan and zoom interaction on the canvas. Default:true.initialZoom: The initial zoom level when the canvas is first displayed. Default:1.minZoom: The minimum zoom level allowed when zooming out. Default:0.1.maxZoom: The maximum zoom level allowed when zooming in. Default:5.wheelBehavior: What the mouse wheel and two-finger trackpad scroll do."pan"(default) moves the canvas, as in Obsidian (Shift + wheel: sideways); Ctrl/Cmd + wheel and pinching zoom."zoom": the wheel always zooms.textNodeMarkdown: How text nodes are rendered."site"(default): with the site’s own Markdown plugins, like a note."basic": plain CommonMark + GFM, with wikilinks and links to notes still resolved.
Canvas Frame
The canvas-page plugin provides its own "canvas" page frame via the Frame Registry. This frame:
- Renders the canvas in fullscreen mode by default (100vw × 100vh), giving the canvas maximum screen space — leaning into the “endless canvas” concept of JSON Canvas.
- Provides a togglable left sidebar that slides in from the left edge. This is the only layout slot available — it renders the same components as the
leftsidebar on content pages (e.g., Explorer, Search, Page Title). - The sidebar toggle button (hamburger/close icon) is positioned in the top-left corner.
- Canvas controls (zoom in, zoom out, reset) are positioned on the right side.
- On mobile, the sidebar overlays the canvas rather than pushing it aside.
Users can override this frame via quartz.config.yaml if needed:
layout:
byPageType:
canvas:
template: default # Use standard three-column layout insteadFeatures
- Text nodes: Rendered with the site’s own Markdown plugins, like a note, as in Obsidian: wikilinks, callouts, Mermaid diagrams, math, syntax highlighting and embedded notes (
![[Note#Section]]). Tags in text nodes count as the canvas’s tags, so they get tag pages. - File nodes: Link to other pages in your vault. Supports popover previews on hover.
- Link nodes: Reference external URLs.
- Group nodes: Visual grouping containers with optional labels and background colors.
- Edges: SVG connections between nodes with optional labels, arrow markers, and colors. Supports all four sides (top, right, bottom, left) and both preset colors (1–6) and custom hex colors.
- Togglable sidebar: Hamburger button in the top-left corner toggles the left sidebar for navigation. Press
Escapeor click the close button to dismiss. - Preset colors: Six preset colors (red, orange, yellow, green, cyan, purple) plus custom hex colors (
#RRGGBB) for nodes and edges.
API
- Category: Page Type
- Function name:
ExternalPlugin.CanvasPage(). - Source:
quartz-community/canvas-page - Install:
npx quartz plugin add @quartz-community/canvas-page(included in the default configuration)