Repo map

Excalidraw architecture.

Excalidraw is a virtual whiteboard for hand-drawn style diagrams. Nodeway mapped the excalidraw/excalidraw repository at commit a0d99e7, from 28 November 2026, and found 558 source files, 2,999 functions, classes and components and 1 route. This page is drawn from that map.

Free to start. macOS (Apple silicon and Intel), Windows and Linux.
Source files
558
Functions and classes
2,999
Confirmed calls
7,937
Routes
1
Tables
0

How the code is laid out

Most of it is TypeScript: 528 files of 558, followed by JavaScript (29) and Shell (1).

The repository is split into 11 packages: folders with their own manifest, such as a package.json, pyproject.toml or go.mod. The largest are packages/excalidraw (372 files), packages/element (55 files), excalidraw-app (42 files), packages/common (19 files), packages/math (16 files) and dev-docs (10 files).

These are its top-level folders by number of source files, with 3 more files at the root. The biggest ones show their own largest folders underneath.

  • packages/470 files
  • excalidraw/package372 files
  • element/package55 files
  • common/package19 files
  • math/package16 files
  • laser-pointer/package4 files
  • utils/package3 files
  • excalidraw-app/package42 files
  • data/11 files
  • components/10 files
  • app-language/3 files
  • scripts/17 files
  • stats/4 files
  • woff2/2 files
  • examples/13 files1 route
  • with-script-in-browser/package8 files
  • with-nextjs/package5 files1 route
  • dev-docs/package10 files
  • src/7 files
  • .github/assets/banner/1 file
  • .husky/1 file
  • public/1 file

Where the code starts

Nodeway looked for files that define a main function, and for files named like a starting point (main, server, app, cli and similar) that at most one other file imports, then for index files that nothing imports. Ranked that way, then by how many files each one reaches through its imports:

FileReaches
excalidraw-app/index.tsx464 files
packages/excalidraw/actions/index.ts414 files
packages/utils/src/index.ts114 files
packages/excalidraw/fonts/index.ts98 files

Routes

Nodeway found 1 route, 1 of them pages, and linked 1 to the function that handles them. All are under examples/with-nextjs (1).

Some of them

RouteMethod
/Page · examples/with-nextjs/src/app/page.tsxPage

The most-called code

Ranked by how many different functions call each one, counting only calls the analyzer could confirm from the code. These are often the helpers worth reading first.

FunctionCallers
pointFromfunction · packages/math/src/point.ts204
tfunction · packages/excalidraw/i18n.ts187
getNonDeletedElementsMapmethod · packages/element/src/Scene.ts144
isTextElementfunction · packages/element/src/typeChecks.ts81
pointRotateRadsfunction · packages/math/src/point.ts80
arrayToMapfunction · packages/common/src/utils.ts74
isArrowElementfunction · packages/element/src/typeChecks.ts72
mutateElementmethod · packages/element/src/Scene.ts70

Open this repo in Nodeway

Nodeway is a desktop app that draws this map on your own computer, so you can click into any folder, read the code beside the map and trace a request yourself. Clone the repository:

git clone https://github.com/excalidraw/excalidraw.git
  • Install Nodeway for macOS, Windows or Linux: the getting started guide has every installer.
  • Open the cloned folder. The first map is drawn on your machine and nothing is uploaded.
  • Search for pointFrom and trace what it calls, or pick a route and follow it to the database.

New to reading a codebase this size? See how to understand a large codebase and how to read a call graph.

Questions

What language is Excalidraw written in?

Mostly TypeScript: 528 of its 558 source files at commit a0d99e7, then JavaScript with 29.

Where does the Excalidraw code start?

The entry point that reaches the most code is excalidraw-app/index.tsx, which leads to 464 files through its imports.

How many routes does Excalidraw have?

Nodeway found 1 route, 1 of them linked to a handler. The most are under examples/with-nextjs.

How this page was made

Generated from a map Nodeway's analyzer (version 18) made of excalidraw/excalidraw at commit a0d99e7, committed on 28 November 2026. Tests, dependencies and build output are mostly left out. A call counts only when the analyzer could confirm its target from the code, so real totals are higher. The project will have changed since.

More codebases, mapped

All repo maps

See your whole codebase in minutes.

Open a folder and Nodeway maps it on your own computer. No account, and nothing is uploaded.

More guides