# @mean-stream/nestx

> [![NPM version](https://badge.fury.io/js/@mean-stream%2Fnestx.svg)](https://www.npmjs.com/package/@mean-stream/nestx)

Latest version **11.0.0** (published 2026-11-28) · 0 weekly downloads

## Install

```sh
npm install @mean-stream/nestx
pnpm add @mean-stream/nestx
yarn add @mean-stream/nestx
bun add @mean-stream/nestx
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 11.0.0 |
| Published | 2026-11-28 |
| First published | 2023-04-12 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 87.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | clashsoft |

## Links

- npm: https://www.npmjs.com/package/@mean-stream/nestx
- npm.io page: https://npm.io/package/@mean-stream/nestx

## Recent versions

- 11.0.0 (latest) — 2026-11-28
- 0.15.0 — 2026-04-30
- 0.14.0 — 2026-01-01
- 0.13.0 — 2025-06-09
- 0.12.1 — 2024-08-02
- 0.12.0 — 2024-07-21
- 0.11.4 — 2024-02-19
- 0.11.3 — 2024-02-19
- 0.11.2 — 2024-01-16
- 0.11.1 — 2023-12-13
- 0.11.0 — 2023-12-13
- 0.10.1 — 2023-06-20
- 0.10.0 — 2023-06-20
- 0.9.2 — 2023-06-06
- 0.9.1 — 2023-06-06
- … 12 more at https://npm.io/package/@mean-stream/nestx/versions

## README

# nestx

[![NPM version](https://badge.fury.io/js/@mean-stream%2Fnestx.svg)](https://www.npmjs.com/package/@mean-stream/nestx)

nestx is an extension package for NestJS apps.

## Installation

```
$ npm install @mean-stream/nestx
```

## Compatibility

| NestX | NestJS   |
|-------|----------|
| 0.15  | ^10, ^11 |
| 11    | ^11      |

## Usage

Nestx provides many standalone modules that can be combined at will.

- [Events](./src/lib/event) - `@mean-stream/nestx/event` - Simple event gateway and emitter based on NATS.
- [Errors](./src/lib/error) - `@mean-stream/nestx/error` (formerly `@mean-stream/nestx/not-found`) - Simplified error handling and documentation with Swagger.
- [Ref](./src/lib/ref) - `@mean-stream/nestx/ref` - Declare model properties as ObjectIds with support for Swagger, validation and populate.
- [Resource](./src/lib/resource) - `@mean-stream/nestx/resource` - Helpers for CRUD services and controllers.

Submodules can be imported individually or all at once:

```ts
import {EventModule, NotFound, Ref} from '@mean-stream/nestx';
// or
import {EventModule} from '@mean-stream/nestx/event';
import {NotFound} from '@mean-stream/nestx/not-found';
import {Ref} from '@mean-stream/nestx/ref';
```

The second form is preferred if you want to avoid some optional dependencies.
Keep in mind that it requires `"moduleResolution": "NodeNext"` in your `tsconfig.json`.

## Development

### Building

Run `nx build nestx` to build the library.

### Running unit tests

Run `nx test nestx` to execute the unit tests via [Jest](https://jestjs.io).

---
_Source: https://npm.io/package/@mean-stream/nestx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
