Nestjs Kysely

screenshot of Nestjs Kysely
nestjs

Kysely module for NestJS

Overview

NestJS-Kysely is an innovative module designed to integrate Kysely's type-safe query builder seamlessly into your NestJS applications. This module provides developers with an efficient and organized approach to database interactions, eliminating the typical boilerplate and enhancing type safety. With features like custom decorators for client injection and support for multiple databases, it empowers developers to build robust applications effortlessly.

Setting up NestJS-Kysely is straightforward. By registering the KyselyModule within your NestJS application, you can easily inject the Kysely client into any of your services or controllers. This capability helps maintain a clean and organized codebase, while fostering productivity and reducing the likelihood of errors.

Features

  • Type-Safe Query Builder: Kysely allows for type-safe query construction, ensuring that your queries are validated at compile time for better reliability.
  • Easy Integration: Register the KyselyModule in your application with simple code to start utilizing its capabilities quickly.
  • Custom Decorators: Inject the Kysely client into your services using a custom decorator, enabling consistent and organized access across your application.
  • Multiple Database Support: Effortlessly register KyselyModule with different database instances, making it highly versatile for diverse application needs.
  • Async Configuration: Utilize the forRootAsync method to configure the Kysely module asynchronously, enhancing flexibility in your application setup.
  • MIT License: The module is released under the MIT license, simplifying its usage and integration within various projects.
nestjs
Nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.