Skip to main content
Glama

Antigravity Whiteboard

An AI-drawable Excalidraw whiteboard MCP App plugin for Google Antigravity with a multi-layout ELK.js anti-overlap engine and surgical box-selection local editing.

Highlights

  • Left + Right Sidebar Entrypoints:

    • Left Sidebar (global): Full-page infinite canvas for inspecting large diagrams, freehand editing, and managing multiple boards.

    • Right Sidebar (aux_pane): Companion canvas bound to the active conversation with instant AI updates and one-click Attach Selection.

    • Both surfaces stay live-synced through shared local storage (${PLUGIN_DATA}/boards/).

  • No Template Lock-In — 7 Layout Strategies:

    • layered-tb: Layered system architecture & deployment diagrams (nested groups + orthogonal obstacle-avoiding arrows)

    • layered-lr: Left-to-right data flow diagrams (DFD), pipelines, and ETL flows

    • box: Nested module & capability blueprints (compact rectpacking matrix)

    • stress: Natural cluster topology for microservice / dependency meshes

    • mrtree: Clean hierarchical trees & mindmaps

    • sequence: Request interaction timelines with lifelines and numbered horizontal arrows

    • free: Custom zones/comparisons with automatic text sizing and AABB collision resolution

    • Plus multi-zone placement (replace, append-right, append-below) and import_mermaid.

  • Mathematical Anti-Overlap & Native Excalidraw Bindings:

    • Server-side CJK/Latin text measurement + ELK.js compound layout + 90° orthogonal edge routing.

    • Compiles to 100% native Excalidraw v2 elements (containerId bound labels, startBinding/endBinding arrows), so dragging any node moves its labels and arrows automatically.

  • Precision Box-Selection Local Editing:

    • Box-select any region on the canvas and click Attach (or Copy Context in global view).

    • Extracts exact semantic element IDs, selection bounding box, external boundary edges (incoming/outgoing connections to unselected neighbors), nearby obstacles, and an optional PNG visual snapshot.

    • replace_region locks everything outside your selection, re-lays out only the selected area with collision protection, and cleanly rebinds external boundary arrows.

  • 100% Offline & CSP-Safe: Single-file HTML bundle (~3.6 MiB) with bundled local fonts and zero external CDN calls.

  • Bundled Skill (skills/diagram-design/SKILL.md): Teaches Antigravity how to pick the best layout strategy and perform surgical local edits.

Related MCP server: excalidraw-mcp

Installation

Option 1: Clone directly as a plugin (Quickest)

Requires Node.js 20+.

git clone https://github.com/Anon2Tokyo/antigravity-whiteboard.git ~/.gemini/config/plugins/antigravity-whiteboard

Option 2: Build from source & install

git clone https://github.com/Anon2Tokyo/antigravity-whiteboard.git
cd antigravity-whiteboard
npm install
npm run install-plugin

Usage in Antigravity

  1. Open Whiteboard from Antigravity's left sidebar (full-page) or the right sidebar + menu (companion mode).

  2. Ask Antigravity to draw diagrams, for example:

    • "Read src/ and draw a layered architecture diagram on the whiteboard."

    • "Draw a left-to-right data flow diagram showing how requests are processed."

    • "Map out the project modules as a box module blueprint."

  3. Precision local edits: Box-select any part of the diagram you want refined → click Attach → tell Antigravity what to change. Only the selected region updates while external nodes stay locked and connected.

  4. Click the export button in the toolbar to save .excalidraw, .svg, or .png directly into your active project's docs/diagrams/ directory.

Architecture

See DESIGN.md for full architecture, anti-overlap pipeline, selection protocol, and MCP tool specifications.

Development

npm run typecheck      # TypeScript checks
npm run build          # Build dist/index.html & dist/server.mjs
npm test               # Run end-to-end MCP & anti-overlap smoke tests
npm run install-plugin # Build & install into ~/.gemini/config/plugins/antigravity-whiteboard

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to programmatically control a live Excalidraw canvas with element-level CRUD operations and real-time synchronization. It supports iterative diagramming through scene descriptions, screenshots, and advanced layout tools for collaborative AI-human workflows.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to create, read, modify, and render Excalidraw diagrams through a semantic graph abstraction, handling spatial reasoning automatically.
      1
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI coding assistants to generate and revise hand-drawn Excalidraw diagrams across 25 types, including architecture, flowcharts, sequence diagrams, Gantt charts, and charts, with automatic layout, styling, and offline SVG/PNG export. It can also optionally maintain a queryable architecture knowledge graph for version-controlled system models.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI coding tools to turn architecture and other structured descriptions into auto-laid-out, hand-drawn Excalidraw diagrams across 25 diagram types, including architecture, flowcharts, sequence, ER, swimlanes, timelines, Gantt, and charts. It also supports natural-language revision, SVG/PNG export, and optionally a queryable knowledge graph of the system.
      -