Skip to content

abinnovision/nestjs-commons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

144 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

abinnovision/nestjs-commons

Build

A collection of common packages for NestJS.

Goals

The packages in this repo share a deliberate house style:

  • Class-based DI β€” no string tokens; injection sites are typed and refactor-safe.
  • Schema-driven types β€” Standard Schema (Zod, ArkType, …) and TypeScript module augmentation, not call-site generics.
  • Testable by default β€” every public token is overrideProvider-friendly; dedicated fakes where it helps.
  • Thin wrappers β€” we glue best-in-class upstream libraries into Nest, not replace them.

Packages

Package Version Description
@abinnovision/nestjs-configx npm Simple configuration management for NestJS, supporting Standard Schema.
@abinnovision/nestjs-exceptions npm Standardized NestJS exception handling with entity-focused exceptions, HTTP awareness, and built-in support for GraphQL and REST APIs.
@abinnovision/nestjs-flydrive npm NestJS integration for flydrive with class-token disks, eager fail-fast startup, and a fakes API for tests.
@abinnovision/nestjs-hatchet npm NestJS integration for Hatchet workflow orchestration.
@abinnovision/nestjs-healthz npm Self-mounting health check module with cross-module attestor discovery and Kubernetes-style probes.
@abinnovision/nestjs-toolkit npm NestJS utility library providing Remeda functional helpers, string manipulation, and UUID operations for common development tasks.

See each package README for installation and usage instructions.

Compatibility

  • NestJS 11+
  • Node.js 24+
  • Module formats β€” ESM and CJS dual builds; types for both
  • License β€” Apache-2.0

Examples

Runnable Nest apps under examples/:

Versioning

Each package is versioned independently via release-please β€” versions in the table above are not aligned.

Development

Yarn 4 monorepo with Turbo.

Prerequisites

Setup

yarn install

For hatchet integration tests, copy the example env file and start the required services:

cp .env.example .env
docker compose up -d

Commands

yarn build          # Build all packages
yarn check          # Lint + format checks
yarn fix            # Auto-fix lint/format
yarn test           # Run all tests
yarn test-unit      # Run unit tests only

License

Apache-2.0

About

πŸ’₯ Collection of common packages for NestJS: configx, hatchet integration, flydrive and more

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages