Repolode
samchon

samchon/nestia

TypeScript helper libraries for NestJS that generate typed SDKs, Swagger docs, E2E tests, and LLM function-calling agents from your controllers.

Stars
2,180
Forks
128
Open issues
7
Last commit
6 hours ago

What is it?

Nestia is a set of helper libraries for NestJS built around pure TypeScript types. Decorators such as @TypedBody, @TypedRoute and @TypedQuery use the declared types for request validation and serialization, so developers avoid writing separate class-validator decorators or schema definitions for each DTO.

From the same controllers, the SDK builder produces a typed fetch-based client library, a Swagger document generator, a mockup simulator that runs the backend inside the client, and automatically generated E2E test functions. A separate package provides Swagger UI with an online TypeScript editor, and a CLI tool wraps these commands.

The project also includes Agentica, an agentic AI library for LLM function calling, and AutoBE, an agent that generates NestJS applications. Both are maintained in separate repositories by the same ecosystem.

Key features

  • 01Pure TypeScript type decorators for request validation and serialization
  • 02Generates typed fetch SDK clients with DTO structures
  • 03Mockup simulator that embeds the backend inside client apps
  • 04Automatic E2E test function generation from controllers
  • 05Swagger document builder and Swagger UI with online TypeScript editor
  • 06Advanced WebSocket route decorators

Use cases

  • Keeping a TypeScript frontend's API client in sync with NestJS controllers
  • Generating Swagger documentation without duplicating DTO definitions
  • Running frontend development against a simulated backend before the server is ready
  • Adding function-calling AI chatbot features to a NestJS-based API

Things to know

  • Only useful for TypeScript projects built on NestJS.

Topics

FAQ

What is nestia?
TypeScript helper libraries for NestJS that generate typed SDKs, Swagger docs, E2E tests, and LLM function-calling agents from your controllers. Nestia is a set of helper libraries for NestJS built around pure TypeScript types. Decorators such as @TypedBody, @TypedRoute and @TypedQuery use the declared types for request validation and serialization, so developers avoid writing separate class-validator decorators or schema definitions for each DTO.
Is nestia free to use? What license does it have?
nestia is open source under the MIT license. Check the license terms before using it in commercial products.
Is nestia still maintained?
Actively maintained. The last commit to nestia was on Nov 6, 2026.
What can I use nestia for?
Keeping a TypeScript frontend's API client in sync with NestJS controllers Generating Swagger documentation without duplicating DTO definitions Running frontend development against a simulated backend before the server is ready Adding function-calling AI chatbot features to a NestJS-based API
Where can I get nestia?
The source code and installation instructions are on GitHub: https://github.com/samchon/nestia

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects