Repo map

NestJS architecture.

NestJS is a TypeScript framework for Node.js backends. Nodeway mapped the nestjs/nest repository at commit 50e2c19, from 28 November 2026, and found 1,641 source files, 4,961 functions, classes and components, 516 routes and 12 database tables. This page is drawn from that map.

Free to start. macOS (Apple silicon and Intel), Windows and Linux.
Source files
1,641
Functions and classes
4,961
Confirmed calls
6,537
Routes
516
Tables
12

How the code is laid out

Most of it is TypeScript: 1,607 files of 1,641, followed by JavaScript (11), Protobuf (10) and GraphQL (8).

The repository is split into 54 packages: folders with their own manifest, such as a package.json, pyproject.toml or go.mod. The largest are packages/common (207 files), packages/core (207 files), packages/microservices (149 files), packages/websockets (46 files), packages/platform-fastify (43 files) and packages/platform-node (35 files).

These are its top-level folders by number of source files, with 4 more files at the root. The biggest ones show their own largest folders underneath.

  • packages/735 files1 route
  • common/package207 files
  • core/package207 files
  • microservices/package149 files
  • websockets/package46 files
  • platform-fastify/package43 files
  • platform-node/package35 files
  • integration/465 files428 routes · 1 table
  • scopes/src/78 files17 routes
  • inspector/src/74 files26 routes
  • microservices/src/40 files70 routes
  • sample/414 files84 routes · 11 tables
  • 37-outbox/package26 files6 routes · 3 tables
  • 32-graphql-federation-schema-first/25 files
  • 38-webhooks/package24 files16 routes · 3 tables
  • tools/17 files3 routes
  • benchmarks/package10 files3 routes
  • gulp/7 files
  • scripts/6 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:

FileReaches
integration/graphql-code-first/src/main.ts223 files
integration/versioning/src/main.ts223 files
integration/scopes/src/main.ts221 files
tools/benchmarks/src/main.tsdefines main1 file
packages/microservices/index.ts286 files
packages/core/index.ts225 files

Routes

Nodeway found 516 routes and linked 514 to the function that handles them. They by HTTP method: GET 375, POST 119, DELETE 10, PATCH 5, ALL 3, PUT 3. Most are under integration/http-adapters (183), integration/microservices (70) and integration/route-conflict (32).

Some of them

RouteMethod
/getGlobals · integration/cors/src/app.controller.tsGET
/call · integration/microservices/src/app.controller.tsPOST
/*catchAll · integration/http-adapters/src/wildcards/wildcards.module.tsGET
/okok · integration/http-adapters/src/errors/errors.module.tsGET
/gogo · integration/microservices/src/kafka-concurrent/kafka-concurrent.messages.controller.tsPOST
/setset · integration/cookies/src/app.controller.tsGET
/sumcall · integration/microservices/src/grpc/grpc.controller.tsPOST
/slowslow · integration/graceful-shutdown/src/app.controller.tsGET

Data model

Nodeway found 12 database tables, defined with Drizzle, Mongoose, Prisma, Sequelize and TypeORM. Code in the repository reads or writes 10 of them. The most used:

TableUsed by
orders7 columns · links to partners · sample/37-outbox/src/database/schema.ts5 read6 write
Post4 columns · sample/22-graphql-prisma/prisma/schema.prisma2 read3 write
user4 columns · sample/05-sql-typeorm/src/users/user.entity.ts2 read2 write
order_events5 columns · sample/37-outbox/analytics-service/src/database/schema.ts2 read1 write
products5 columns · sample/37-outbox/src/database/schema.ts2 read1 write
photo6 columns · integration/typeorm/src/photo/photo.entity.ts2 read0 write
partners3 columns · sample/38-webhooks/src/database/schema.ts1 read0 write
Users6 columns · sample/07-sequelize/src/users/models/user.model.ts0 read0 write

One request, traced

Nodeway followed GET /photo from its route to the code that handles it, then along confirmed calls until it reached the photo table.

  1. GET /photoroute · integration/typeorm/src/photo/photo.controller.ts
  2. findAllmethod · integration/typeorm/src/photo/photo.controller.ts:9
  3. findAllmethod · integration/typeorm/src/photo/photo.service.ts:13
  4. phototable · 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.

FunctionCallers
Modulefunction · packages/common/decorators/modules/module.decorator.ts257
Injectablefunction · packages/common/decorators/core/injectable.decorator.ts244
Controllerfunction · packages/common/decorators/core/controller.decorator.ts192
isFunctionfunction · packages/common/utils/shared.utils.ts100
Bodyfunction · packages/common/decorators/http/route-params.decorator.ts95
isNilfunction · packages/common/utils/shared.utils.ts95
Paramfunction · packages/common/decorators/http/route-params.decorator.ts90
Injectfunction · packages/common/decorators/core/inject.decorator.ts81

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/nestjs/nest.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 Module 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 NestJS written in?

Mostly TypeScript: 1,607 of its 1,641 source files at commit 50e2c19, then JavaScript with 11.

Where does the NestJS code start?

The entry point that reaches the most code is integration/graphql-code-first/src/main.ts, which leads to 223 files through its imports.

How many routes does NestJS have?

Nodeway found 516 routes, 514 of them linked to a handler. The most are under integration/http-adapters.

What database tables does NestJS use?

12 tables, defined with Drizzle, Mongoose, Prisma, Sequelize and TypeORM. The most used are orders, Post and user.

How this page was made

Generated from a map Nodeway's analyzer (version 18) made of nestjs/nest at commit 50e2c19, 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.

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