Repo map

PocketBase architecture.

PocketBase is an open-source backend in a single file. Nodeway mapped the pocketbase/pocketbase repository at commit 7f2773e, from 26 October 2026, and found 453 source files, 2,603 functions, classes and components and 45 routes. This page is drawn from that map.

Free to start. macOS (Apple silicon and Intel), Windows and Linux.
Source files
453
Functions and classes
2,603
Confirmed calls
4,372
Routes
45
Tables
0

How the code is laid out

Most of it is Go: 263 files of 453, followed by JavaScript (190).

The repository is split into 7 packages: folders with their own manifest, such as a package.json, pyproject.toml or go.mod. The largest are ui (192 files), core (76 files), apis (40 files), migrations (8 files), forms (4 files) and mails (4 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.

  • ui/package192 files
  • src/185 files
  • public/libs/4 files
  • tools/111 files3 routes
  • auth/33 files3 routes
  • filesystem/18 files
  • router/8 files
  • core/package76 files
  • validators/5 files
  • apis/package40 files41 routes
  • plugins/13 files
  • jsvm/6 files
  • migratecmd/3 files
  • ghupdate/2 files
  • migrations/package8 files
  • forms/package4 files
  • mails/package4 files
  • templates/2 files
  • cmd/package2 files
  • examples/base/1 file1 route

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
ui/src/main.js84 files
core/app.go6 files
plugins/jsvm/internal/types/types.godefines main3 files

Routes

Nodeway found 45 routes and linked 44 to the function that handles them. They by HTTP method: POST 21, GET 17, DELETE 4, PATCH 2, PUT 1. Most are under apis (41), tools/auth (3) and examples/base (1).

Some of them

RouteMethod
/{id}cronRun · apis/cron.goPOST
/{id}logsView · apis/logs.goGET
/{id}bindRecordCrudApi · apis/record_crud.goPATCH
/importcollectionsImport · apis/collection.goPUT
/emailsfetchPrimaryEmail · tools/auth/bitbucket.goGET
/test/s3settingsTestS3 · apis/settings.goPOST
/extensions/bindUIExtensions · apis/extensions.goGET
/_/{path...}Serve · apis/serve.goGET

One request, traced

Nodeway followed POST /api/backups/upload from its route to the code that handles it, then along confirmed calls.

  1. POST /api/backups/uploadroute · apis/backup.go
  2. backupUploadfunction · apis/backup_upload.go:12
  3. Closemethod · tools/filesystem/filesystem.go:122
  4. Closemethod · tools/filesystem/blob/bucket.go:699
  5. wrapErrorfunction · tools/filesystem/blob/bucket.go:712
  6. NormalizeErrormethod · tools/filesystem/internal/fileblob/fileblob.go:156

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
Collectionmethod · core/record_model.go81
NewTaggedHookfunction · tools/hook/tagged.go64
Loggermethod · core/base.go50
GetRawmethod · core/record_model.go46
ParseDateTimefunction · tools/types/datetime.go39
Settingsmethod · core/base.go33
RecordQuerymethod · core/record_query.go32
IsAuthmethod · core/collection_model.go30

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/pocketbase/pocketbase.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 Collection 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 PocketBase written in?

Mostly Go: 263 of its 453 source files at commit 7f2773e, then JavaScript with 190.

Where does the PocketBase code start?

The entry point that reaches the most code is ui/src/main.js, which leads to 84 files through its imports.

How many routes does PocketBase have?

Nodeway found 45 routes, 44 of them linked to a handler. The most are under apis.

How this page was made

Generated from a map Nodeway's analyzer (version 18) made of pocketbase/pocketbase at commit 7f2773e, committed on 26 October 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