Skip to content

Getting Started with Draph

Draph is a visual diagram editor that runs entirely in your browser. No account needed, no installation required.

Online: Visit draph.sanath.dev

Locally:

Terminal window
git clone https://github.com/sanathks/draph.git
cd draph
npx serve
# Or just open index.html directly
  • Logo - Click to reset/new diagram
  • Line Style - Toggle between rounded and straight connectors
  • Export - Download as PNG or SVG

The vertical toolbar on the left contains your drawing tools:

ToolKeyDescription
SelectVSelect, move, and edit nodes
Rectangle1Standard rectangular node
Pill2Rounded rectangle
Diamond3Decision/condition shape
Circle4Terminal/event shape
Container5Dashed group box for organizing
Text6Free text annotation
Arrow7Standalone arrow/line
Auto-arrangeAAutomatically layout nodes
MermaidMImport from Mermaid syntax
GridGToggle snap-to-grid

The main drawing area. You can:

  • Pan - Click and drag on empty space (or middle-mouse)
  • Zoom - Scroll wheel
  • Select - Click on nodes or drag a selection box

Click a shape tool (or press 1-7), then click and drag on the canvas to create a node.

  1. Switch to Select mode (V)
  2. Hover over a node to see connection points (small circles on edges)
  3. Click and drag from a connection point to another node
  4. Or drag to empty space - a picker appears to choose the target node type

Double-click any node to edit its label. Press Enter or click away to confirm.

Select a node to see the floating toolbar with options for:

  • Shape type
  • Fill style (outline, solid, striped, grid)
  • Fill color
  • Border color
  • Share URL - Your diagram is encoded in the URL. Just copy and share it.
  • Export - Click Export in the top toolbar to download PNG or SVG.
  • Undo/Redo - Ctrl+Z / Ctrl+Y
  • Copy/Paste - Ctrl+C / Ctrl+V (works across browser tabs!)
  • Delete - Select and press Delete or Backspace
  • Multi-select - Drag a selection box, or Ctrl+Click to add to selection
  • Quick connect - Drop a connection on empty canvas to pick node type instantly