tsgonest logo

tsgonest documentation

Native-speed TypeScript compilation with tsgo, generated runtime validators and serializers, and static OpenAPI 3.2 analysis for NestJS.

Explore the docs

Deep dive

Comparisons

Compilation pipeline

tsgonest wraps typescript-go (tsgo) and runs a full static analysis pass before emitting companion files.

  1. 1Parse CLI args + tsgonest.config.json
  2. 2Create tsgo program from tsconfig
  3. 3Type-check and emit JavaScript
  4. 4Walk AST with type checker → extract type metadata
  5. 5Generate *.tsgonest.js + *.tsgonest.d.ts companions
  6. 6Write __tsgonest_manifest.json
  7. 7Generate openapi.json from NestJS controllers