Activepieces architecture.
Activepieces is an open-source automation platform. Nodeway mapped the activepieces/activepieces repository at commit b64405b, from 29 November 2026, and found 22,683 source files, 32,107 functions, classes and components, 631 routes and 68 database tables. This page is drawn from that map.
- Source files
- 22,683
- Functions and classes
- 32,107
- Confirmed calls
- 135,374
- Routes
- 631
- Tables
- 68
How the code is laid out
Most of it is TypeScript: 22,618 files of 22,683, followed by JavaScript (36), Shell (27) and Python (2).
The repository is split into 795 packages: folders with their own manifest, such as a package.json, pyproject.toml or go.mod. The largest are packages/server/api (1,372 files), packages/web (1,364 files), packages/pieces/community/ampeco (381 files), packages/pieces/community/podio (381 files), packages/pieces/community/shopify (315 files) and packages/pieces/community/zoho-desk (288 files).
These are its top-level folders by number of source files, with 2 more files at the root. The biggest ones show their own largest folders underneath.
- packages/22,586 files631 routes · 68 tables
- pieces/19,272 files94 routes
- server/1,589 files398 routes · 68 tables
- web/package1,364 files139 routes
- core/263 files
- tests-e2e/package71 files
- cli/package24 files
- tools/56 files
- scripts/32 files
- i18n/11 files
- benchmark/13 files
- smoke-test/8 files
- .agents/skills/6 files
- agent-browser/templates/3 files
- mcp-builder/scripts/2 files
- ai-task/1 file
- .husky/3 files
- deploy/pulumi/package3 files
- .devcontainer/2 files
- docs/snippets/2 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:
| File | Reaches |
|---|---|
| packages/server/api/src/main.tsdefines main | 1,908 files |
| packages/server/api/src/rollback.tsdefines main | 887 files |
| tools/scripts/check-manifest-migrations.tsdefines main | 887 files |
| tools/scripts/check-release-migrations.tsdefines main | 886 files |
| tools/scripts/pieces/publish-piece.tsdefines main | 51 files |
| .agents/skills/mcp-builder/scripts/evaluation.pydefines main | 1 file |
Routes
Nodeway found 631 routes and linked 108 to the function that handles them. They by HTTP method: POST 287, GET 285, DELETE 41, ALL 12, PATCH 3, PUT 3. Most are under packages/server (398), packages/web (139) and packages/pieces (94).
Some of them
| Route | Method |
|---|---|
| /v1/otpsendOtpEmail · packages/web/src/api/authentication-api.ts | POST |
| /userinfohandleUserInfo · packages/server/api/src/app/mcp/oauth/oidc/mcp-oauth-userinfo.controller.ts | POST |
| /v1/userslist · packages/web/src/api/platform-user-api.ts | GET |
| /v1/flowslist · packages/web/src/features/flows/api/flows-api.tsx | GET |
| /v1/agentslist · packages/web/src/features/agents/api/agents.ts | GET |
| /v1/alertscreate · packages/web/src/features/alerts/api/alerts-api.ts | POST |
| /v1/pieceslist · packages/web/src/features/pieces/api/pieces-api.ts | GET |
| /v1/fieldslist · packages/web/src/features/tables/api/fields-api.ts | GET |
Data model
Nodeway found 68 database tables, defined with TypeORM. Code in the repository reads or writes 64 of them. The most used:
| Table | Used by |
|---|---|
| project20 columns · links to concurrency_pool, piece_set and platform · packages/server/api/src/app/project/project-entity.ts | 42 read10 write |
| flow15 columns · links to flow_version, folder and project · packages/server/api/src/app/flows/flow/flow.entity.ts | 33 read13 write |
| agent_conversation21 columns · links to agent, platform and project · packages/server/api/src/app/ee/agent/agent-conversation-entity.ts | 26 read16 write |
| user9 columns · links to user_identity · packages/server/api/src/app/user/user-entity.ts | 30 read9 write |
| ai_provider17 columns · links to platform · packages/server/api/src/app/ai/ai-provider-entity.ts | 28 read7 write |
| flow_version14 columns · links to flow and user · packages/server/api/src/app/flows/flow-version/flow-version-entity.ts | 19 read11 write |
| flow_run23 columns · links to file, flow and flow_version · packages/server/api/src/app/flows/flow-run/flow-run-entity.ts | 20 read8 write |
| app_connection16 columns · links to user · packages/server/api/src/app/app-connection/app-connection.entity.ts | 16 read11 write |
One request, traced
Nodeway followed POST /userinfo from its route to the code that handles it, then along confirmed calls until it reached the user table.
- POST /userinforoute · packages/server/api/src/app/mcp/oauth/oidc/mcp-oauth-userinfo.controller.ts
- handleUserInfofunction · packages/server/api/src/app/mcp/oauth/oidc/mcp-oauth-userinfo.controller.ts:13
- authenticatemethod · packages/server/api/src/app/mcp/oauth/token/mcp-oauth-token.service.ts:146
- isActiveOnPlatformmethod · packages/server/api/src/app/user/user-service.ts:304
- usertable · 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.
| Function | Callers |
|---|---|
| createActionfunction · packages/pieces/framework/src/lib/action/action.ts | 13,537 |
| ShortTextmethod · packages/pieces/framework/src/lib/property/input/index.ts | 8,762 |
| StaticDropdownmethod · packages/pieces/framework/src/lib/property/input/index.ts | 3,279 |
| Numbermethod · packages/pieces/framework/src/lib/property/input/index.ts | 3,274 |
| sendRequestmethod · packages/pieces/common/src/lib/http/core/fetch-http-client.ts | 2,867 |
| isNilfunction · packages/core/utils/src/lib/utils.ts | 2,700 |
| LongTextmethod · packages/pieces/framework/src/lib/property/input/index.ts | 2,219 |
| Checkboxmethod · packages/pieces/framework/src/lib/property/input/index.ts | 1,777 |
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/activepieces/activepieces.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
createActionand 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 Activepieces written in?
Mostly TypeScript: 22,618 of its 22,683 source files at commit b64405b, then JavaScript with 36.
Where does the Activepieces code start?
The entry point that reaches the most code is packages/server/api/src/main.ts, which leads to 1,908 files through its imports.
How many routes does Activepieces have?
Nodeway found 631 routes, 108 of them linked to a handler. The most are under packages/server.
What database tables does Activepieces use?
68 tables, defined with TypeORM. The most used are project, flow and agent_conversation.
How this page was made
Generated from a map Nodeway's analyzer (version 18) made of activepieces/activepieces at commit b64405b, 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.