Umami architecture.
Umami is a privacy-focused web analytics platform. Nodeway mapped the umami-software/umami repository at commit dbb8d60, from 23 November 2026, and found 1,266 source files, 2,149 functions, classes and components, 275 routes and 29 database tables. This page is drawn from that map.
- Source files
- 1,266
- Functions and classes
- 2,149
- Confirmed calls
- 4,478
- Routes
- 275
- Tables
- 29
How the code is laid out
Most of it is TypeScript: 1,245 files of 1,266, followed by JavaScript (18) and Shell (2).
The repository is split into 2 packages: folders with their own manifest, such as a package.json, pyproject.toml or go.mod. The largest are packages/mcp (33 files) and packages/api-client (7 files).
These are its top-level folders by number of source files, with 9 more files at the root. The biggest ones show their own largest folders underneath.
- src/1,183 files275 routes
- app/687 files275 routes
- components/289 files
- queries/101 files
- lib/70 files
- openapi/13 files
- permissions/10 files
- packages/40 files
- mcp/package33 files
- api-client/package7 files
- scripts/30 files
- seed/11 files
- .eloqnt/1 file
- docker/1 file
- podman/1 file
- prisma/1 file29 tables
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/mcp/src/cli.ts | 30 files |
| scripts/seed-data.tsdefines main | 11 files |
| scripts/test-api.tsdefines main | – |
| src/index.ts | 304 files |
| src/queries/sql/index.ts | 87 files |
| src/components/svg/index.ts | 38 files |
Routes
Nodeway found 275 routes, 64 of them pages, and linked 275 to the function that handles them. The rest by HTTP method: GET 126, POST 64, DELETE 17, OPTIONS 3, PATCH 1. All are under src/app (275).
Some of them
| Route | Method |
|---|---|
| /mcpDELETE · src/app/mcp/route.ts | DELETE |
| /api/meGET · src/app/api/me/route.ts | GET |
| /p/[slug]GET · src/app/(collect)/p/[slug]/route.ts | GET |
| /q/[slug]GET · src/app/(collect)/q/[slug]/route.ts | GET |
| /api/sendPOST · src/app/api/send/route.ts | POST |
| /api/batchPOST · src/app/api/batch/route.ts | POST |
| /api/linksGET · src/app/api/links/route.ts | GET |
| /api/sharePOST · src/app/api/share/route.ts | POST |
Data model
Nodeway found 29 database tables, defined with Prisma. Code in the repository reads or writes 29 of them. The most used:
| Table | Used by |
|---|---|
| website12 columns · links to team and user · prisma/schema.prisma | 10 read8 write |
| team_user6 columns · links to team and user · prisma/schema.prisma | 7 read6 write |
| two_factor_auth6 columns · links to user · prisma/schema.prisma | 8 read5 write |
| share8 columns · prisma/schema.prisma | 4 read7 write |
| team8 columns · prisma/schema.prisma | 6 read5 write |
| board9 columns · links to team and user · prisma/schema.prisma | 3 read6 write |
| link9 columns · links to team and user · prisma/schema.prisma | 3 read5 write |
| pixel8 columns · links to team and user · prisma/schema.prisma | 3 read5 write |
One request, traced
Nodeway followed GET /p/[slug] from its route to the code that handles it, then along confirmed calls until it reached the share table.
- GET /p/[slug]route · src/app/(collect)/p/[slug]/route.ts
- GETfunction · src/app/(collect)/p/[slug]/route.ts:12
- POSTfunction · src/app/api/send/route.ts:23
- fetchWebsitefunction · src/lib/load.ts:6
- getWebsitefunction · src/queries/prisma/website.ts:92
- attachShareIdToWebsitefunction · src/queries/prisma/website.ts:359
- sharetable · 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 |
|---|---|
| useMessageshook · src/components/hooks/useMessages.ts | 295 |
| parseRequestfunction · src/lib/request.ts | 192 |
| jsonfunction · src/lib/response.ts | 179 |
| unauthorizedfunction · src/lib/response.ts | 164 |
| defineOperationfunction · src/openapi/operation.ts | 135 |
| useNavigationhook · src/components/hooks/useNavigation.ts | 102 |
| useApihook · src/components/hooks/useApi.ts | 94 |
| runQueryfunction · src/lib/db.ts | 78 |
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/umami-software/umami.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
useMessagesand 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 Umami written in?
Mostly TypeScript: 1,245 of its 1,266 source files at commit dbb8d60, then JavaScript with 18.
Where does the Umami code start?
The entry point that reaches the most code is packages/mcp/src/cli.ts, which leads to 30 files through its imports.
How many routes does Umami have?
Nodeway found 275 routes, 275 of them linked to a handler. The most are under src/app.
What database tables does Umami use?
29 tables, defined with Prisma. The most used are website, team_user and two_factor_auth.
How this page was made
Generated from a map Nodeway's analyzer (version 18) made of umami-software/umami at commit dbb8d60, committed on 23 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.