About this project
Nestia is a collection of helper libraries for the NestJS framework, distributed as several npm packages. Its core value is combining pure TypeScript type information with runtime validation, serialization, documentation and client generation.
Main components described in the README:
- @nestia/core: decorators such as @TypedBody, @TypedRoute, @TypedParam, @TypedQuery, @TypedFormData, @TypedHeaders, @TypedException and @WebSocketRoute. The README states these require only one line and use pure TypeScript types.
- @nestia/sdk: generates Swagger documents, typed client SDK libraries, a mockup simulator embedded in the SDK, and automatic E2E test functions.
- @nestia/e2e: a test program that runs generated E2E test functions.
- @nestia/benchmark: a benchmark program using the same E2E test functions.
- @nestia/editor: a Swagger UI with an online TypeScript editor.
- Related projects @agentica (agentic AI library focused on LLM function calling) and @autobe (a coding agent that generates NestJS applications).
- nestia: a command line interface tool.
The README highlights performance claims: runtime validation reported as much faster than class-validator and JSON serialization faster than class-transformer, with an overall performance improvement figure. It also compares the generated SDK to tRPC-style typed fetch functions and the mockup simulator to msw, but described as fully automated.
Documentation is hosted at nestia.io, covering setup, core decorators, SDK building, mockup simulation, E2E test functions, distribution, Swagger building, AI chatbot development, a cloud Swagger editor, documentation strategy, E2E testing rationale, test program development and performance benchmarking. The repository also links to API documents, benchmark results and dev.to articles.
The project is MIT licensed and accepts sponsorship through Open Collective. It is aimed at NestJS developers who want type-safe request/response handling, generated API documentation and client SDKs, and automated testing scaffolding.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.