What it is responsible for
Core manages Nest's core functionality, low-level services, and utilities, while routing work through symbols such asRouterExplorerRouterExecutionContextRouterProxyRoutesRouteTreeRouteDefinitionRoutePathFactoryRouteParamsFactoryRouterExceptionFiltersExceptionsFilterREQUESTREQUEST_CONTEXT_IDrequestProviderWhat it refuses
Core rejects forbidden activation withForbiddenException!canActivateUnknownRequestMappingExceptionisUndefined(path)InternalServerErrorException!next!isObservable(value)InvalidExceptionFilterException!Array.isArray(filters)InvalidClassScopeExceptionwrapperRef.scope === Scope.REQUEST || wrapperRef.scope === Scope.TRANSIENT || !wrapperRef…UnknownElementException!instanceWhat it needs, and who needs it
Core has no dependencies in this repository. Integration,integration/inspector/src/commonsample/01-cats-app/src/commonsample/10-fastify/src/commonsample/36-hmr-esm/src/commonmoduleKeymoduleNamehandlermetatypehandlerNotable members
RouterExplorerPathsExplorerRouterModuleRouterExecutionContextRouterProxyRouterProxyCallbackRouterExceptionFiltersExceptionsFilterRouteParamsFactoryRoutePathFactorypackages/coreWhat it is made of
Its 285 entities sit in 158 files underpackages/coremessages.tsAbstractHttpAdapterWhere work enters
It publishes 7 HTTP endpoints — 5GETALL- —
moduleKey:27packages/core/middleware/container.ts - —
moduleName:68packages/core/middleware/container.ts - —
handler:94packages/core/middleware/middleware-module.ts - —
metatype:202packages/core/middleware/middleware-module.ts - —
handler:287packages/core/middleware/middleware-module.ts - —
handler:18packages/core/middleware/resolver.ts
How it refuses and fails
56 of its components record a refusal or a failure handler. 51 of them refuse work outright, under a condition written into the component itself. TheircatchBoundaries
6 other subsystems depend on this one —IntegrationInspector01 Cats App10 FastifyAuth36 Hmr EsmIntegrationReflectorDiscoveryModuleLazyModuleLoaderIt depends on no other subsystem in this repository — it is a leaf.
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.
| Pattern | Where | Count | Examples |
|---|---|---|---|
| across the repository | 19 | |
| | 17 | |
| | 5 | |
| exported symbols | 5 | |
Was this page helpful?