What is Nestia?
masterNestia is a helper suite for NestJS that uses pure TypeScript types as the single source of truth for your API. It eliminates the need for manual DTO declarations with multiple decorators (like @ApiProperty for Swagger and @IsString for validation) by deriving everything from a single interface.
Key capabilities include:
- Runtime validation: Extremely fast validation of requests and responses (up to 20,000× faster than
class-validator). - Typed client SDK: A REST-based SDK similar to tRPC that is auto-generated from your controllers.
- OpenAPI documentation: Automatic generation of OpenAPI 3.1, 3.0, or 2.0 documents.
- End-to-end testing: Generated test suites for every endpoint.
- Mockup simulator: Allows frontend development by simulating API responses without a running backend.