
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@lonestone/nzoth
Advanced tools
NZOTH: Nest + Zod + OpenAPI + Typed + Helpers - Build fully type-safe REST APIs with NestJS
NZOTH: Nest + Zod + OpenAPI + Typed + Helpers
A collection of NestJS utilities for building RESTful APIs with support for filtering, pagination, sorting, type-safe request/response validation, and OpenAPI schema registration using Zod. Allows registering Zod schemas with OpenAPI metadata for automatic documentation generation.
NZOTH combines the best of all worlds:
Our goal is to provide a type-safe API solution that's easy to use while still being compatible with various languages and tools. NZOTH offers a simple yet powerful alternative to solutions like tRPC and GraphQL for projects that need REST APIs with strong typing.
npm install @lonestone/nzoth
# or
yarn add @lonestone/nzoth
# or
pnpm add @lonestone/nzoth
import { TypedRoute, TypedBody } from '@lonestone/nzoth/server';
import { z } from 'zod';
const UserSchema = z.object({
id: z.string().uuid(),
name: z.string().min(3),
email: z.string().email(),
});
@Controller('users')
class UserController {
@TypedRoute.Get(undefined, UserSchema.array())
findAll(): User[] {
return this.userService.findAll();
}
@TypedRoute.Post('/', UserSchema)
create(@TypedBody(UserSchema.omit({ id: true })) dto: CreateUserDto): User {
return this.userService.create(dto);
}
}
For full documentation, examples, and API reference, visit the GitHub repository.
UNLICENSED - ©Lonestone - Pierrick Bignet
FAQs
NZOTH: Nest + Zod + OpenAPI + Typed + Helpers - Build fully type-safe REST APIs with NestJS
The npm package @lonestone/nzoth receives a total of 32 weekly downloads. As such, @lonestone/nzoth popularity was classified as not popular.
We found that @lonestone/nzoth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.