Repo map

Outline architecture.

Outline is a knowledge base for teams. Nodeway mapped the outline/outline repository at commit d3aab08, from 28 November 2026, and found 2,094 source files, 5,709 functions, classes and components, 250 routes and 4 database tables. This page is drawn from that map.

Free to start. macOS (Apple silicon and Intel), Windows and Linux.
Source files
2,094
Functions and classes
5,709
Confirmed calls
10,779
Routes
250
Tables
4

How the code is laid out

Most of it is TypeScript: 2,011 files of 2,094, followed by JavaScript (82) and Shell (1).

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

  • app/869 files
  • components/344 files
  • scenes/192 files
  • hooks/88 files
  • editor/71 files
  • models/41 files
  • stores/39 files
  • server/672 files219 routes · 4 tables
  • routes/133 files218 routes
  • queues/108 files
  • models/77 files4 tables
  • shared/326 files
  • editor/218 files
  • utils/55 files
  • components/19 files
  • plugins/203 files31 routes
  • webhooks/20 files4 routes
  • slack/17 files6 routes
  • github/14 files2 routes
  • .oxlint/10 files
  • .claude/skills/verify-outline/8 files
  • journeys/6 files
  • scripts/2 files

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
server/main.ts401 files
server/scripts/20230313000000-migrate-notification-settings.tsdefines main392 files
server/scripts/20240930113921-hash-api-keys.tsdefines main392 files
app/scenes/Shared/index.tsx766 files
app/scenes/Document/index.tsx737 files
app/scenes/Collection/index.tsx683 files

Routes

Nodeway found 250 routes and linked 3 to the function that handles them. They by HTTP method: POST 213, GET 33, DELETE 2, ALL 1, PUT 1. Most are under server/routes (218), plugins/passkeys (8) and plugins/slack (6).

Some of them

RouteMethod
/team.updatehandleTeamUpdate · server/routes/api/teams/teams.tsPOST
/users.update_roleupdateRole · server/routes/api/users/users.tsPOST
/server/routes/mcp/index.tsPOST
/server/routes/mcp/index.tsGET
/server/routes/mcp/index.tsDELETE
/sseserver/routes/discovery/mcp.tsGET
/emailplugins/email/server/auth/email.tsPOST
/slackplugins/slack/server/auth/slack.tsGET

Data model

Nodeway found 4 database tables, defined with Sequelize. Code in the repository reads or writes 4 of them. The most used:

TableUsed by
notifications19 columns · server/models/Notification.ts6 read18 write
authentication_providers8 columns · server/models/AuthenticationProvider.ts13 read1 write
group_users7 columns · server/models/GroupUser.ts9 read1 write
search_queries11 columns · server/models/SearchQuery.ts2 read4 write

One request, traced

Nodeway followed POST /team.update from its route to the code that handles it, then along confirmed calls until it reached the authentication_providers table.

  1. POST /team.updateroute · server/routes/api/teams/teams.ts
  2. handleTeamUpdatefunction · server/routes/api/teams/teams.ts:22
  3. teamUpdaterfunction · server/commands/teamUpdater.ts:21
  4. authentication_providerstable · read here

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
useStoreshook · app/hooks/useStores.ts281
authorizemethod · server/policies/cancan.ts192
sfunction · shared/styles/index.ts184
tmethod · server/emails/templates/BaseEmail.tsx114
ValidationErrorfunction · server/errors.ts99
findByPkmethod · server/models/Document.ts98
toErrorfunction · shared/utils/error.ts95
errToStringfunction · shared/utils/error.ts91

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/outline/outline.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 useStores 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 Outline written in?

Mostly TypeScript: 2,011 of its 2,094 source files at commit d3aab08, then JavaScript with 82.

Where does the Outline code start?

The entry point that reaches the most code is server/main.ts, which leads to 401 files through its imports.

How many routes does Outline have?

Nodeway found 250 routes, 3 of them linked to a handler. The most are under server/routes.

What database tables does Outline use?

4 tables, defined with Sequelize. The most used are notifications, authentication_providers and group_users.

How this page was made

Generated from a map Nodeway's analyzer (version 18) made of outline/outline at commit d3aab08, 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