Hoppscotch architecture.
Hoppscotch is an open-source API development tool. Nodeway mapped the hoppscotch/hoppscotch repository at commit 6177eae, from 23 November 2026, and found 1,648 source files, 6,750 functions, classes and components, 56 routes and 23 database tables. This page is drawn from that map.
- Source files
- 1,648
- Functions and classes
- 6,750
- Confirmed calls
- 7,646
- Routes
- 56
- Tables
- 23
How the code is laid out
Most of it is TypeScript: 863 files of 1,648, followed by Vue (395), GraphQL (229) and Rust (104).
The repository is split into 21 packages: folders with their own manifest, such as a package.json, pyproject.toml or go.mod. The largest are packages/hoppscotch-common (906 files), packages/hoppscotch-backend (194 files), packages/hoppscotch-sh-admin (132 files), packages/hoppscotch-desktop (123 files), packages/hoppscotch-data (84 files) and packages/hoppscotch-selfhost-web (70 files).
These are its top-level folders by number of source files, with 5 more files at the root. The biggest ones show their own largest folders underneath.
- packages/1,643 files56 routes · 23 tables
- hoppscotch-common/package906 files
- hoppscotch-backend/package194 files39 routes · 23 tables
- hoppscotch-sh-admin/package132 files
- hoppscotch-desktop/package123 files1 route
- hoppscotch-data/package84 files
- hoppscotch-selfhost-web/package70 files7 routes
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/hoppscotch-selfhost-web/src/main.ts | 297 files |
| packages/hoppscotch-backend/src/main.ts | 177 files |
| packages/hoppscotch-desktop/src/main.ts | 36 files |
Routes
Nodeway found 56 routes and linked 55 to the function that handles them. They by HTTP method: GET 31, POST 10, ANY 7, DELETE 4, PATCH 2, ALL 1. Most are under packages/hoppscotch-backend (39), packages/hoppscotch-agent (9) and packages/hoppscotch-selfhost-web (7).
Some of them
| Route | Method |
|---|---|
| /pingping · packages/hoppscotch-backend/src/app.controller.ts | GET |
| /healthcheck · packages/hoppscotch-backend/src/health/health.controller.ts | GET |
| /healthHandleHealth · packages/hoppscotch-selfhost-web/webapp-server/internal/server/server.go | ANY |
| /executeexecute · packages/hoppscotch-agent/src-tauri/src/route.rs | POST |
| /site/setupfetchSetupInfo · packages/hoppscotch-backend/src/infra-config/infra-config.controller.ts | GET |
| /mock/*pathhandleMockRequest · packages/hoppscotch-backend/src/mock-server/mock-server.controller.ts | ALL |
| /auth/googlegoogleAuth · packages/hoppscotch-backend/src/auth/auth.controller.ts | GET |
| /infra/usersgetUsers · packages/hoppscotch-backend/src/infra-token/infra-token.controller.ts | GET |
Data model
Nodeway found 23 database tables, defined with Prisma. Code in the repository reads or writes 23 of them. The most used:
| Table | Used by |
|---|---|
| TeamCollection8 columns · links to Team · packages/hoppscotch-backend/prisma/schema.prisma | 24 read8 write |
| UserCollection9 columns · links to User · packages/hoppscotch-backend/prisma/schema.prisma | 22 read8 write |
| User11 columns · packages/hoppscotch-backend/prisma/schema.prisma | 12 read13 write |
| TeamRequest9 columns · links to Team and TeamCollection · packages/hoppscotch-backend/prisma/schema.prisma | 15 read5 write |
| UserRequest10 columns · links to User and UserCollection · packages/hoppscotch-backend/prisma/schema.prisma | 13 read5 write |
| InfraConfig7 columns · packages/hoppscotch-backend/prisma/schema.prisma | 12 read5 write |
| PublishedDocs16 columns · packages/hoppscotch-backend/prisma/schema.prisma | 10 read5 write |
| MockServer15 columns · links to User · packages/hoppscotch-backend/prisma/schema.prisma | 9 read4 write |
One request, traced
Nodeway followed POST /auth/verify from its route to the code that handles it, then along confirmed calls until it reached the User table.
- POST /auth/verifyroute · packages/hoppscotch-backend/src/auth/auth.controller.ts
- verifymethod · packages/hoppscotch-backend/src/auth/auth.controller.ts:76
- verifyMagicLinkTokensmethod · packages/hoppscotch-backend/src/auth/auth.service.ts:257
- generateAuthTokensmethod · packages/hoppscotch-backend/src/auth/auth.service.ts:135
- generateRefreshTokenmethod · packages/hoppscotch-backend/src/auth/auth.service.ts:103
- updateUserRefreshTokenmethod · packages/hoppscotch-backend/src/user/user.service.ts:119
- Usertable · written 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 |
|---|---|
| useI18nhook · packages/hoppscotch-common/src/composables/i18n.ts | 274 |
| throwErrfunction · packages/hoppscotch-backend/src/utils.ts | 142 |
| dispatchmethod · packages/hoppscotch-common/src/newstore/DispatchingStore.ts | 122 |
| GqlUserfunction · packages/hoppscotch-backend/src/decorators/gql-user.decorator.ts | 111 |
| runMutationfunction · packages/hoppscotch-common/src/helpers/backend/GQLClient.ts | 72 |
| useReadonlyStreamhook · packages/hoppscotch-common/src/composables/stream.ts | 61 |
| RequiresTeamRolefunction · packages/hoppscotch-backend/src/team/decorators/requires-team-role.decorator.ts | 57 |
| getServicefunction · packages/hoppscotch-common/src/modules/dioc.ts | 55 |
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/hoppscotch/hoppscotch.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
useI18nand 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 Hoppscotch written in?
Mostly TypeScript: 863 of its 1,648 source files at commit 6177eae, then Vue with 395.
Where does the Hoppscotch code start?
The entry point that reaches the most code is packages/hoppscotch-selfhost-web/src/main.ts, which leads to 297 files through its imports.
How many routes does Hoppscotch have?
Nodeway found 56 routes, 55 of them linked to a handler. The most are under packages/hoppscotch-backend.
What database tables does Hoppscotch use?
23 tables, defined with Prisma. The most used are TeamCollection, UserCollection and User.
How this page was made
Generated from a map Nodeway's analyzer (version 18) made of hoppscotch/hoppscotch at commit 6177eae, 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.