Repo map

n8n architecture.

n8n is a workflow automation platform. Nodeway mapped the n8n-io/n8n repository at commit c1759f3, from 29 November 2026, and found 16,395 source files, 69,826 functions, classes and components, 20 routes and 217 database tables. This page is drawn from that map.

Free to start. macOS (Apple silicon and Intel), Windows and Linux.
Source files
16,395
Functions and classes
69,826
Confirmed calls
109,224
Routes
20
Tables
217

How the code is laid out

Most of it is TypeScript: 14,309 files of 16,395, followed by Vue (1,659), JavaScript (343) and Python (69).

The repository is split into 129 packages: folders with their own manifest, such as a package.json, pyproject.toml or go.mod. The largest are packages/nodes-base (3,719 files), packages/cli (2,663 files), packages/frontend/editor-ui (2,584 files), packages/@n8n/db (714 files), packages/@n8n/nodes-langchain (599 files) and packages/@n8n/api-types (534 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/16,129 files20 routes · 217 tables
  • @n8n/5,167 files10 routes · 97 tables
  • nodes-base/package3,719 files
  • frontend/3,315 files
  • cli/package2,663 files10 routes · 101 tables
  • modules/661 files19 tables
  • quality/295 files
  • scripts/135 files
  • experimental/rig/package63 files
  • lint-parity/7 files
  • codespace-preview/6 files
  • .github/77 files
  • scripts/package76 files
  • actions/ci-filter/1 file
  • .agents/skills/35 files
  • testmax-n8n-ai/23 files
  • testmax-assistant-ui/12 files
  • .devcontainer/10 files
  • codespaces/9 files
  • preview/1 file
  • docker/4 files
  • images/2 files
  • .claude/plugins/n8n/scripts/1 file
  • .githooks/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
packages/cli/src/commands/start.ts3,065 files
packages/cli/src/server.ts2,993 files
packages/frontend/editor-ui/src/main.ts1,103 files
scripts/experimental/rig/src/cli.tsdefines main63 files
.agents/skills/testmax-assistant-ui/scripts/run.pydefines main11 files
.agents/skills/testmax-assistant-ui/scripts/live_page.pydefines main8 files

Routes

Nodeway found 20 routes and linked 4 to the function that handles them. They by HTTP method: POST 14, GET 6. Most are under packages/@n8n (10) and packages/cli (10).

Some of them

RouteMethod
/locatenotConfigured · packages/@n8n/engine/src/server/routes/resume-requests.tsPOST
/v1/responseshandleUnrouted · packages/cli/src/modules/instance-ai/eval/llm-wire-server.tsPOST
/packages/@n8n/engine/src/server/routes/workflow-executions.tsPOST
/gcpackages/cli/src/services/e2e-diagnostics.router.tsPOST
/:idpackages/@n8n/engine/src/server/routes/workflow-executions.tsGET
/searchpackages/@n8n/engine/src/server/routes/workflow-executions.tsPOST
/healthzpackages/@n8n/engine/src/server/create-engine-server.tsGET
/internalspackages/cli/src/services/e2e-diagnostics.router.tsGET

Data model

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

TableUsed by
workflow_entity11 columns · links to folder, tag_entity and workflow_history · packages/@n8n/db/src/entities/workflow-entity.ts38 read14 write
project6 columns · links to user · packages/@n8n/db/src/entities/project.ts32 read6 write
shared_workflow3 columns · links to project and workflow_entity · packages/@n8n/db/src/entities/shared-workflow.ts29 read6 write
agents12 columns · links to agent_history, project and tag_entity · packages/cli/src/modules/agents/entities/agent.entity.ts17 read16 write
credentials_entity10 columns · packages/@n8n/db/src/entities/credentials-entity.ts23 read9 write
agent_execution19 columns · links to agent_execution_threads · packages/cli/src/modules/agents/entities/agent-execution.entity.ts20 read8 write
project_relation3 columns · links to project, role and user · packages/@n8n/db/src/entities/project-relation.ts18 read10 write
settings3 columns · packages/@n8n/db/src/entities/settings.ts15 read12 write

One request, traced

Nodeway followed POST /:id/resolve from its route to the code that handles it, then along confirmed calls.

  1. POST /:id/resolveroute · packages/@n8n/engine/src/server/routes/resume-requests.ts
  2. notConfiguredfunction · packages/@n8n/engine/src/server/routes/resume-requests.ts:42
  3. failfunction · packages/@n8n/engine/src/server/error-response.ts:19

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
Servicefunction · packages/@n8n/di/src/di.ts1,248
isRecordfunction · packages/@n8n/utils/src/is-record.ts913
useToasthook · packages/frontend/@n8n/composables/src/useToast.ts911
warnmethod · packages/@n8n/backend-common/src/logging/logger.ts906
getmethod · packages/@n8n/di/src/di.ts800
debugmethod · packages/@n8n/backend-common/src/logging/logger.ts652
managerFormethod · packages/@n8n/db/src/repositories/base-repository.ts599
classmethod · packages/@n8n/api-types/src/zod-class.ts561

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/n8n-io/n8n.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 Service 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 n8n written in?

Mostly TypeScript: 14,309 of its 16,395 source files at commit c1759f3, then Vue with 1,659.

Where does the n8n code start?

The entry point that reaches the most code is packages/cli/src/commands/start.ts, which leads to 3,065 files through its imports.

How many routes does n8n have?

Nodeway found 20 routes, 4 of them linked to a handler. The most are under packages/@n8n.

What database tables does n8n use?

217 tables, defined with TypeORM. The most used are workflow_entity, project and shared_workflow.

How this page was made

Generated from a map Nodeway's analyzer (version 18) made of n8n-io/n8n at commit c1759f3, committed on 29 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