{"library":"nestia","title":"Nestia CLI Tool","description":"Nestia is a comprehensive CLI tool designed to enhance NestJS development by providing a suite of features including super-fast decorators, advanced WebSocket routes, and robust code generation capabilities. It currently stands at version 11.0.2 and receives active development, with frequent releases addressing features, bug fixes, and minor breaking changes. A key differentiator is its deep integration with `typia` for runtime validation and JSON serialization, which claims significantly higher performance (e.g., 20,000x faster than `class-validator` for validation, 200x faster than `class-transformer` for serialization). Nestia also generates a fully typed SDK for clients, complete with a mockup simulator and E2E test functions, akin to `tRPC` but with a focus on code generation rather than direct RPC, and offers advanced Swagger document generation features including AI chatbot integration. Its modular design includes sub-packages like `@nestia/core`, `@nestia/sdk`, and `@nestia/e2e` for specific functionalities.","language":"javascript","status":"active","last_verified":"Wed Apr 22","install":{"commands":["npm install nestia"],"cli":{"name":"npx nestia","version":null}},"imports":["import { main } from 'nestia'","import type { IConfiguration } from 'nestia'","import { ECommand } from 'nestia'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { ECommand, main } from 'nestia';\nimport * as path from 'path';\nimport * as fs from 'fs/promises';\n\nasync function setupNestiaProject() {\n  const projectDir = path.join(process.cwd(), 'my-nestia-app');\n  await fs.mkdir(projectDir, { recursive: true });\n  process.chdir(projectDir);\n\n  console.log(`Initializing Nestia project in ${projectDir}...`);\n  await main({\n    command: ECommand.init,\n    input: ['--project', 'tsconfig.json'],\n  });\n  console.log('Nestia project initialized.');\n\n  console.log('Generating SDK and Swagger...');\n  await main({\n    command: ECommand.sdk,\n    input: ['--config', 'nestia.config.ts'],\n  });\n  console.log('SDK and Swagger generated successfully.');\n\n  console.log('Now you can explore your generated SDK and Swagger documentation!');\n  console.log(`Check out ${path.join(projectDir, 'src/api/index.ts')} for the SDK.`);\n}\n\nsetupNestiaProject().catch(console.error);\n","lang":"typescript","description":"Demonstrates programmatic initialization of a Nestia project and generation of its SDK and Swagger documentation using the `main` function and `ECommand` enum.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}