Skip to content

System Overview

concept
2 min readUpdated

NestJS head-to-head

Overview

Auto-generated technical documentation for NestJS head-to-head — 1520 entities (413 doc comments, 259 interfaces, 259 classs, 183 functions).

Architecture

mermaid
flowchart LR
  service_ConsoleLogger_38089336["ConsoleLogger"]
  service_Logger_56f71189["Logger"]
  service_ClassSerializerInterceptor_38d66def["ClassSerializerInterceptor"]
  module_ClientsModule_41eb342d["ClientsModule"]
  module_MulterModule_1337416c["MulterModule"]

Modules

  • ClientsModule
  • MulterModule

Entry Points

  • GET / → moduleKey
  • GET / → moduleName
  • ALL / → handler
  • GET / → metatype
  • GET / → handler
  • ALL / → handler
  • GET / → modulesContainer
  • GET / → normalizedPattern
  • GET / → route

Key Components

The most-referenced entities — start here.

  • Module (function) — referenced 181×
  • Get (constant) — referenced 77×
  • Scope (enum) — referenced 69×
  • Inject (function) — referenced 64×
  • Type (interface) — referenced 62×
  • Logger (service) — referenced 52×
  • ExecutionContext (interface) — referenced 48×
  • Post (constant) — referenced 37×
  • NestInterceptor (interface) — referenced 36×
  • CallHandler (interface) — referenced 32×

Subsystems

Ordered by how much of the rest of the system depends on them, not by how much code they contain. A small module many things import shapes this codebase more than a large one nothing imports.

SubsystemDepended on byEntitiesStarts at
Common8353DefaultValuePipe, ParseFilePipe
Core5284moduleKey, moduleName
Websockets487Readme.md, BaseWsInstance
Microservices1429normalizedPattern, route
Platform Express052MulterModule
Platform Fastify044Readme.md, FastifyAdapter
Testing041TestingLogger, Readme.md
Platform Socket.io031Readme.md, IoAdapter
Platform Ws031Readme.md, WsAdapter

Common depend on no other subsystem here — they are the leaves.

How this code is named

These conventions cover most of the codebase. Learning them is faster than reading an index — each one lets you find any member of its family without looking it up.

PatternWhereCountExamples
*.interface.tsacross the repository128type.interface.ts, file.interface.ts, edge.interface.ts, node.interface.ts
*.exception.tsacross the repository55gone.exception.ts, http.exception.ts, runtime.exception.ts, conflict.exception.ts
*.decorator.tsacross the repository39sse.decorator.ts, ctx.decorator.ts, ack.decorator.ts, bind.decorator.ts
*.util.tsacross the repository21cli-colors.util.ts, forward-ref.util.ts, is-log-level.util.ts, load-package.util.ts
*.pipe.tsacross the repository10parse-int.pipe.ts, parse-file.pipe.ts, parse-bool.pipe.ts, parse-date.pipe.ts
*.enum.tsacross the repository10transport.enum.ts, http-status.enum.ts, version-type.enum.ts, ws-paramtype.enum.ts

Was this page helpful?

Download as PDF