# nest-utilities-client

> Provides a generic HTTP service which interfaces with the nest-utilities package.

Latest version **3.3.7** (published 2026-06-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install nest-utilities-client
pnpm add nest-utilities-client
yarn add nest-utilities-client
bun add nest-utilities-client
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.3.7 |
| Published | 2026-06-02 |
| First published | 2019-11-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 31.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | MartinDrost |
| Maintainers | martindrost |
| Keywords | nestjs, restful, nest-utilities, http, typescript |

## Links

- npm: https://www.npmjs.com/package/nest-utilities-client
- Repository: https://github.com/MartinDrost/nest-utilities-client
- Homepage: https://github.com/MartinDrost/nest-utilities-client#readme
- Issues: https://github.com/MartinDrost/nest-utilities-client/issues
- npm.io page: https://npm.io/package/nest-utilities-client

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 3.3.7 (latest) — 2026-06-02
- 3.3.5 — 2024-11-12
- 3.3.4 — 2023-08-28
- 3.3.3 — 2023-05-31
- 3.3.2 — 2023-05-31
- 3.3.1 — 2023-05-24
- 3.3.0 — 2022-07-27
- 3.2.3 — 2022-07-14
- 3.2.2 — 2022-06-15
- 3.2.1 — 2022-03-08
- 3.2.0 — 2022-02-02
- 3.1.10 — 2021-10-28
- 3.1.9 — 2021-09-06
- 3.1.8 — 2021-08-30
- 3.1.7 — 2021-07-22
- … 38 more at https://npm.io/package/nest-utilities-client/versions

## README

<p align="center">
Provides an extension on your HTTP services which interfaces with API's using the <a href="https://github.com/MartinDrost/nest-utilities">nest-utilities</a> package.
</p>
<p align="center">
  <a href="https://www.npmjs.com/package/nest-utilities-client"><img src="https://img.shields.io/npm/dt/nest-utilities-client.svg" alt="NPM Downloads" /></a>
  <a href="https://www.npmjs.com/package/nest-utilities-client"><img src="https://img.shields.io/npm/v/nest-utilities-client.svg" alt="NPM Version" /></a>
</p>

## Basic usage

The package revolves around the `CrudService`. Extending this service will grant you methods to call upon the [endpoints](https://github.com/MartinDrost/nest-utilities/wiki/Controller-abstract) generated by nest-utilities as well as the available [query parameters](https://github.com/MartinDrost/nest-utilities/wiki/Query-parameters).

```Typescript
import { CrudService } from "nest-utilities-client";
import { IUser } from "../interfaces"

class UserService extends CrudService<IUser> {
  constructor() {
    super("http://localhost:3000/users");
  }
}

```

## HTTP service

Out of the box the `CrudService` will supplement your extended class with a basic HTTP service to execute your calls. In a lot of cases you'll want to create generic error handlers and define headers to send along with your requests.

You can customize the HTTP service by creating a new class which extends the HTTP service offered by the package. In this new class you will be prompted to implement abstract methods which help you tailor the service with ease.

```Typescript
import { HttpService } from "nest-utilities-client";
import { messageService } from "../services";

class CustomHttpService extends HttpService {
  getHeaders(url: string, init: RequestInit) {
    return {
      "Authorization": localStorage.session
    };
  }

  onRequestError(error: Error) {
    messageService.notify(error.message);
  }
}

```

```Typescript
import { CrudService } from "nest-utilities-client";
import { CustomHttpService } from "../services";
import { IUser } from "../interfaces"

class UserService extends CrudService<IUser> {
  constructor() {
    super("http://localhost:3000/users", new CustomHttpService());
  }
}
```

---
_Source: https://npm.io/package/nest-utilities-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
