https://github.com/samchon/nestia
NestJS Helper + AI Chatbot Development
https://github.com/samchon/nestia
agent ai api class-validator decorator hacktoberfest large-language-model llm llm-function-calling nestjs rag retrieval-augmented-generation sdk swagger trpc typescript typia validator
Last synced: 7 months ago
JSON representation
NestJS Helper + AI Chatbot Development
- Host: GitHub
- URL: https://github.com/samchon/nestia
- Owner: samchon
- License: mit
- Created: 2021-01-20T09:12:03.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-05-07T08:47:32.000Z (7 months ago)
- Last Synced: 2025-05-08T19:08:16.536Z (7 months ago)
- Topics: agent, ai, api, class-validator, decorator, hacktoberfest, large-language-model, llm, llm-function-calling, nestjs, rag, retrieval-augmented-generation, sdk, swagger, trpc, typescript, typia, validator
- Language: TypeScript
- Homepage: https://nestia.io/
- Size: 170 MB
- Stars: 2,010
- Watchers: 11
- Forks: 113
- Open Issues: 48
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-typescript - samchon - nestia
- awesome-typescript - nestia - 20,000x faster validation and 200x faster JSON serialization decorators using `typia`. Enable to utilize pure TypeScript interface type as DTO, and overall server performance improved by about 30x times. Also, it supports SDK (collection of `fetch` functions with type definitions) and Mockup Simulator (backend server simulator embedded in SDK) generation, and even possible to migrate NestJS project only by `swagger.json` file. 🚀 (see also: https://nestia.io/docs) (Built with TypeScript / Back-end API)
- awesome-starred - samchon/nestia - NestJS Helper + AI Chatbot Development (TypeScript)
README
# Nestia

[](https://github.com/samchon/nestia/blob/master/LICENSE)
[](https://www.npmjs.com/package/@nestia/fetcher)
[](https://www.npmjs.com/package/@nestia/fetcher)
[](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)
[](https://nestia.io/docs/)
[](https://gurubase.io/g/nestia)
[](https://discord.gg/E94XhzrUCZ)
Nestia is a set of helper libraries for NestJS, supporting below features:
- `@nestia/core`:
- Super-fast/easy decorators
- Advanced WebSocket routes
- `@nestia/sdk`:
- Swagger generator, more evolved than ever
- SDK library generator for clients
- Mockup Simulator for client applications
- Automatic E2E test functions generator
- `@nestia/e2e`: Test program utilizing e2e test functions
- `@nestia/benchmark`: Benchmark program using e2e test functions
- `@nestia/editor`: Swagger-UI with Online TypeScript Editor
- `@agentica`: Agentic AI library specialized in LLM function calling
- `nestia`: Just CLI (command line interface) tool
> [!NOTE]
>
> - **Only one line** required, with pure TypeScript type
> - Enhance performance **30x** up
> - Runtime validator is **20,000x faster** than `class-validator`
> - JSON serialization is **200x faster** than `class-transformer`
> - Software Development Kit
> - Collection of typed `fetch` functions with DTO structures like [tRPC](https://trpc.io/)
> - Mockup simulator means embedded backend simulator in the SDK
> - similar with [msw](https://mswjs.io/), but fully automated

> Left is NestJS server code, and right is client (frontend) code utilizing SDK
## Sponsors and Backers
Thanks for your support.
Your donation would encourage `nestia` development.
[](https://opencollective.com/nestia)
## Guide Documents
Check out the document in the [website](https://nestia.io/docs/):
### 🏠 Home
- [Introduction](https://nestia.io/docs/)
- [Setup](https://nestia.io/docs/setup/)
- [Pure TypeScript](https://nestia.io/docs/pure)
### 📖 Features
- Core Library
- [`@WebSocketRoute`](https://nestia.io/docs/core/WebSocketRoute)
- [`@TypedRoute`](https://nestia.io/docs/core/TypedRoute/)
- [**`@TypedBody`**](https://nestia.io/docs/core/TypedBody/)
- [`@TypedParam`](https://nestia.io/docs/core/TypedParam/)
- [`@TypedQuery`](https://nestia.io/docs/core/TypedQuery/)
- [`@TypedFormData`](https://nestia.io/docs/core/TypedFormData/)
- [`@TypedHeaders`](https://nestia.io/docs/core/TypedHeaders/)
- [`@TypedException`](https://nestia.io/docs/core/TypedException/)
- Software Development Kit
- [SDK Builder](https://nestia.io/docs/sdk/)
- [Mockup Simulator](https://nestia.io/docs/sdk/simulate/)
- [E2E Test Functions](https://nestia.io/docs/sdk/e2e/)
- [Distribution](https://nestia.io/docs/sdk/distribute/)
- Swagger Document
- [Swagger Builder](https://nestia.io/docs/swagger/)
- [**AI Chatbot Development**](https://nestia.io/docs/swagger/chat/)
- [Cloud Swagger Editor](https://nestia.io/docs/swagger/editor/)
- [Documentation Strategy](https://nestia.io/docs/swagger/strategy/)
- E2E Testing
- [Why E2E Test?](https://nestia.io/docs/e2e/why/)
- [Test Program Development](https://nestia.io/docs/e2e/development/)
- [Performance Benchmark](https://nestia.io/docs/e2e/benchmark/)
### 🔗 Appendix
- [API Documents](https://nestia.io/api)
- [⇲ Benchmark Result](https://github.com/samchon/nestia/tree/master/benchmark/results/11th%20Gen%20Intel(R)%20Core(TM)%20i5-1135G7%20%40%202.40GHz)
- [⇲ `dev.to` Articles](https://dev.to/samchon/series/22751)