MCPcopy
hub / github.com/excalidraw/excalidraw

github.com/excalidraw/excalidraw @v0.18.1 sqlite

repository ↗ · DeepWiki ↗ · release v0.18.1 ↗
2,487 symbols 9,123 edges 541 files 71 documented · 3%
README

<img alt="Excalidraw" src="https://excalidraw.nyc3.cdn.digitaloceanspaces.com/github/excalidraw_github_cover_2.png" />

Excalidraw Editor | Blog | Documentation | Excalidraw+

An open source virtual hand-drawn style whiteboard. Collaborative and end-to-end encrypted.

Excalidraw is released under the MIT license. npm downloads/month PRs welcome! Chat on Discord Follow Excalidraw on Twitter

Product showcase
Create beautiful hand-drawn like diagrams, wireframes, or whatever you like.

Features

The Excalidraw editor (npm package) supports:

  • 💯 Free & open-source.
  • 🎨 Infinite, canvas-based whiteboard.
  • ✍️ Hand-drawn like style.
  • 🌓 Dark mode.
  • 🏗️ Customizable.
  • 📷 Image support.
  • 😀 Shape libraries support.
  • 👅 Localization (i18n) support.
  • 🖼️ Export to PNG, SVG & clipboard.
  • 💾 Open format - export drawings as an .excalidraw json file.
  • ⚒️ Wide range of tools - rectangle, circle, diamond, arrow, line, free-draw, eraser...
  • ➡️ Arrow-binding & labeled arrows.
  • 🔙 Undo / Redo.
  • 🔍 Zoom and panning support.

Excalidraw.com

The app hosted at excalidraw.com is a minimal showcase of what you can build with Excalidraw. Its source code is part of this repository as well, and the app features:

  • 📡 PWA support (works offline).
  • 🤼 Real-time collaboration.
  • 🔒 End-to-end encryption.
  • 💾 Local-first support (autosaves to the browser).
  • 🔗 Shareable links (export to a readonly link you can share with others).

We'll be adding these features as drop-in plugins for the npm package in the future.

Quick start

Note: following instructions are for installing the Excalidraw npm package when integrating Excalidraw into your own app. To run the repository locally for development, please refer to our Development Guide.

Use npm or yarn to install the package.

npm install react react-dom @excalidraw/excalidraw
# or
yarn add react react-dom @excalidraw/excalidraw

Check out our documentation for more details!

Contributing

Integrations

Who's integrating Excalidraw

Google CloudMetaCodeSandboxObsidian ExcalidrawReplitSliteNotionHackerRank • and many others

Sponsors & support

If you like the project, you can become a sponsor at Open Collective or use Excalidraw+.

Thank you for supporting Excalidraw

Last but not least, we're thankful to these companies for offering their services for free:

Vercel Sentry Crowdin

Extension points exported contracts — how you extend this code

Change (Interface)
* Encapsulates the modifications captured as `Delta`/s. [3 implementers]
packages/excalidraw/change.ts
Window (Interface)
(no doc)
excalidraw-app/global.d.ts
ImportMetaEnv (Interface)
(no doc)
excalidraw-app/vite-env.d.ts
BeforeInstallPromptEventChoiceResult (Interface)
(no doc)
excalidraw-app/App.tsx
Window (Interface)
(no doc)
excalidraw-app/debug.ts
TopErrorBoundaryState (Interface)
(no doc)
excalidraw-app/components/TopErrorBoundary.tsx
CollabState (Interface)
(no doc)
excalidraw-app/collab/Collab.tsx
Window (Interface)
(no doc)
examples/with-script-in-browser/index.tsx

Core symbols most depended-on inside this repo

pointFrom
called by 982
packages/math/point.ts
t
called by 625
packages/excalidraw/i18n.ts
createElement
called by 603
packages/excalidraw/tests/helpers/ui.ts
getSelectedElements
called by 349
packages/excalidraw/scene/Scene.ts
push
called by 283
packages/excalidraw/queue.ts
get
called by 219
packages/excalidraw/components/App.tsx
click
called by 198
packages/excalidraw/tests/helpers/ui.ts
createIcon
called by 177
packages/excalidraw/components/icons.tsx

Shape

Function 1,848
Method 384
Class 136
Interface 116
Enum 3

Languages

TypeScript100%

Modules by API surface

packages/excalidraw/subset/woff2/woff2-bindings.ts200 symbols
packages/excalidraw/utils.ts82 symbols
packages/excalidraw/components/App.tsx68 symbols
packages/excalidraw/change.ts62 symbols
packages/excalidraw/element/binding.ts56 symbols
packages/excalidraw/tests/helpers/ui.ts36 symbols
packages/excalidraw/frame.ts32 symbols
packages/excalidraw/element/linearElementEditor.ts32 symbols
packages/excalidraw/element/bounds.ts32 symbols
packages/excalidraw/element/typeChecks.ts31 symbols
packages/excalidraw/element/elbowArrow.ts29 symbols
packages/excalidraw/data/library.ts29 symbols

Dependencies from manifests, versioned

@babel/preset-env7.26.9 · 1×
@braintree/sanitize-url6.0.2 · 1×
@docusaurus/core2.2.0 · 1×
@docusaurus/module-type-aliases2.0.0-rc.1 · 1×
@docusaurus/preset-classic2.2.0 · 1×
@docusaurus/theme-live-codeblock2.2.0 · 1×
@excalidraw/eslint-config1.0.3 · 1×
@excalidraw/laser-pointer1.3.1 · 1×
@excalidraw/mermaid-to-excalidraw2.2.2 · 1×
@excalidraw/prettier-config1.0.2 · 1×
@excalidraw/random-username1.0.0 · 1×

For agents

$ claude mcp add excalidraw \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact