Samples

July 2, 2026 ยท View on GitHub

This folder uses a hybrid model:

  • 00-showcase: full end-to-end baseline with all major capabilities together.
  • 01-* onward: focused runnable extractions, each isolating one topic.
  • 12-angular-fullstack-showcase: browser-client showcase using Angular with @trpc/client.

Quick Start

npm run start --workspace nest-trpc-native-showcase
npm run client --workspace nest-trpc-native-showcase
npm run client:subscription --workspace nest-trpc-native-showcase
npm run angular-showcase
npm run ci:sample

Focused Samples

FolderFocusStateCommand
00-showcaseFull integration baselineRunnablenpm run test --workspace nest-trpc-native-showcase
01-basics-query-mutationRouter basicsRunnablenpm run test --workspace nest-trpc-native-sample-01-basics
02-enhancers-guards-pipes-filtersGuards/interceptors/pipes/filtersRunnablenpm run test --workspace nest-trpc-native-sample-02-enhancers
03-context-request-scope@TrpcContext + request scopeRunnablenpm run test --workspace nest-trpc-native-sample-03-context
04-validation-zodZod validation and inferenceRunnablenpm run test --workspace nest-trpc-native-sample-04-zod
05-validation-class-validatorDTO + ValidationPipeRunnablenpm run test --workspace nest-trpc-native-sample-05-class-validator
06-subscriptionsServer/client subscriptionsRunnablenpm run test --workspace nest-trpc-native-sample-06-subscriptions
07-express-fastifyAdapter parityRunnablenpm run test --workspace nest-trpc-native-sample-07-adapters
08-autoschema-client-typecheckautoSchemaFile + typed client checksRunnablenpm run test --workspace nest-trpc-native-sample-08-autoschema
09-forrootasync-config-middlewareforRootAsync + ConfigService + middlewareRunnablenpm run test --workspace nest-trpc-native-sample-09-config-middleware
10-nested-alias-routersDotted aliases as nested router objectsRunnablenpm run test --workspace nest-trpc-native-sample-10-nested-alias
11-microservice-transporttRPC gateway + Nest microservice transport (TCP)Runnablenpm run test --workspace nest-trpc-native-sample-11-microservice
12-angular-fullstack-showcaseAngular browser client + NestJS backendRunnablenpm run test --workspace nest-trpc-native-sample-12-angular-showcase
13-transformer-error-formattingsuperjson transformer + errorFormatter + responseMeta + onErrorRunnablenpm run test --workspace nest-trpc-native-sample-13-transformer

Use website/docs/samples/index.md for file-level pointers and website/docs/samples/architecture.md for structural rationale.

For reviewer-oriented commands, see website/docs/samples/how-to-review.md.