tsgonest documentation
Native-speed TypeScript compilation with tsgo, generated runtime validators and serializers, and static OpenAPI 3.2 analysis for NestJS.
Explore the docs
Get up and running fast
Install tsgonest, configure your project, and build your first NestJS app with native-speed tsgo in minutes.
Full CLI reference
Every flag for `tsgonest build` and `tsgonest dev`, exit codes, and usage examples.
Configuration reference
Type-safe `tsgonest.config.ts` with `defineConfig()`, controllers, transforms, OpenAPI, and NestJS versioning.
Deep dive
Validation & constraints
JSDoc tags, branded types, string formats, transforms, coercion, custom validators, and discriminated unions.
Serialization & runtime
Fast generated serializers (~1.4x faster than JSON.stringify), 25-84x faster validation than class-validator, and zero-config NestJS integration.
OpenAPI 3.2 generation
Static analysis of NestJS controllers produces a fully-compliant OpenAPI 3.2 document with zero runtime decorators.
Comparisons
tsgonest vs NestJS CLI
Build speed, validation, serialization, and OpenAPI compared to the standard NestJS ecosystem.
tsgonest vs Nestia + Typia
Architecture differences, DX comparison, and migration path from the Nestia/Typia ecosystem.
tsgonest vs tsgo
What tsgonest adds on top of Microsoft's typescript-go compiler: validation, serialization, OpenAPI, and dev mode.