Supabase architecture.
Supabase is a Postgres development platform; this repository holds its dashboard, docs and websites. Nodeway mapped the supabase/supabase repository at commit fa9594b, from 28 November 2026, and found 7,924 source files, 16,114 functions, classes and components, 212 routes and 2 database tables. This page is drawn from that map.
- Source files
- 7,924
- Functions and classes
- 16,114
- Confirmed calls
- 19,742
- Routes
- 212
- Tables
- 2
How the code is laid out
Most of it is TypeScript: 7,511 files of 7,924, followed by JavaScript (188), Vue (70) and Kotlin (56).
The repository is split into 86 packages: folders with their own manifest, such as a package.json, pyproject.toml or go.mod. The largest are apps/studio (4,179 files), apps/www (964 files), apps/docs (515 files), apps/design-system (430 files), apps/ui-library (310 files) and packages/ui-patterns (217 files).
These are its top-level folders by number of source files. The biggest ones show their own largest folders underneath.
- apps/6,527 files148 routes
- studio/package4,179 files
- www/package964 files52 routes
- docs/package515 files52 routes
- design-system/package430 files2 routes
- ui-library/package310 files40 routes
- kb/package74 files
- packages/698 files
- ui-patterns/package217 files
- ui/package150 files
- pg-meta/package103 files
- examples/560 files64 routes · 2 tables
- user-management/159 files12 routes
- auth/138 files19 routes
- edge-functions/67 files4 routes · 2 tables
- blocks/vue/package96 files
- registry/95 files
- docker/19 files
- volumes/9 files
- utils/6 files
- scripts/11 files
- supabase/functions/9 files
- og-images/5 files
- common/3 files
- search-embeddings/1 file
- .agents/3 files
- skills/2 files
- scripts/1 file
- .claude/scripts/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:
| File | Reaches |
|---|---|
| apps/docs/scripts/search/generate-embeddings.tsdefines main | 38 files |
| apps/docs/scripts/search_v2/ingest.tsdefines main | 13 files |
| packages/build-icons/src/main.mjs | 7 files |
| apps/studio/start.ts | 6 files |
| scripts/fix-audit-vulnerability.tsdefines main | 1 file |
| .agents/skills/test-the-docs/sandbox/run.shdefines main | – |
Routes
Nodeway found 212 routes, 129 of them pages, and linked 152 to the function that handles them. The rest by HTTP method: GET 44, POST 23, OPTIONS 7, ALL 5, DELETE 1, HEAD 1. Most are under apps/docs (52), apps/www (52) and apps/ui-library (40).
Some of them
| Route | Method |
|---|---|
| /default · examples/user-management/sveltekit-user-management/src/routes/+page.server.ts | POST |
| /authsignup · examples/auth/sveltekit-full/src/routes/auth/+page.server.ts | POST |
| /accountupdate · examples/user-management/sveltekit-user-management/src/routes/account/+page.server.ts | POST |
| /llms.txtGET · apps/www/app/llms.txt/route.ts | GET |
| /api/hellohandler · examples/caching/with-nextjs-13-server-components/pages/api/hello.ts | ALL |
| /auth/oauthGET · apps/ui-library/registry/default/blocks/social-auth-nextjs/app/auth/oauth/route.ts | GET |
| /api/ai/sqlPOST · apps/ui-library/registry/default/platform/platform-kit-nextjs/app/api/ai/sql/route.ts | POST |
| /api/ai/docsPOST · apps/docs/app/api/ai/docs/route.ts | POST |
Data model
Nodeway found 2 database tables, defined with Drizzle. Code in the repository reads or writes 1 of them. The most used:
| Table | Used by |
|---|---|
| countries2 columns · examples/edge-functions/supabase/functions/_shared/schema.ts | 1 read0 write |
| user7 columns · examples/edge-functions/supabase/functions/_shared/schema.ts | 0 read0 write |
One request, traced
Nodeway followed POST /api/ai/docs from its route to the code that handles it, then along confirmed calls.
- POST /api/ai/docsroute · apps/docs/app/api/ai/docs/route.ts
- POSTfunction · apps/docs/app/api/ai/docs/route.ts:39
- clippyfunction · packages/ai-commands/src/docs.ts:29
- capMessagesfunction · packages/ai-commands/src/docs.ts:240
- getChatRequestTokenCountfunction · packages/ai-commands/src/tokenizer.ts:19
- getMessageTokenCountfunction · packages/ai-commands/src/tokenizer.ts:35
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 |
|---|---|
| useParamshook · packages/common/hooks/useParams.ts | 772 |
| useSelectedProjectQueryhook · apps/studio/hooks/misc/useSelectedProject.ts | 441 |
| handleErrorfunction · apps/studio/data/fetchers.ts | 437 |
| useTrackhook · apps/studio/lib/telemetry/track.ts | 206 |
| useAsyncCheckPermissionsV2hook · apps/studio/hooks/misc/useCheckPermissionsV2.ts | 184 |
| executeSqlfunction · apps/studio/data/sql/execute-sql-mutation.ts | 178 |
| useSelectedOrganizationQueryhook · apps/studio/hooks/misc/useSelectedOrganization.ts | 172 |
| literalfunction · packages/pg-meta/src/pg-format/index.ts | 159 |
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/supabase/supabase.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
useParamsand 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 Supabase written in?
Mostly TypeScript: 7,511 of its 7,924 source files at commit fa9594b, then JavaScript with 188.
Where does the Supabase code start?
The entry point that reaches the most code is apps/docs/scripts/search/generate-embeddings.ts, which leads to 38 files through its imports.
How many routes does Supabase have?
Nodeway found 212 routes, 152 of them linked to a handler. The most are under apps/docs.
What database tables does Supabase use?
2 tables, defined with Drizzle. The most used are countries and user.
How this page was made
Generated from a map Nodeway's analyzer (version 18) made of supabase/supabase at commit fa9594b, 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.