# @stigg/node-server-sdk

> Stigg server-side node SDK

Latest version **5.2.1** (published 2026-09-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @stigg/node-server-sdk
pnpm add @stigg/node-server-sdk
yarn add @stigg/node-server-sdk
bun add @stigg/node-server-sdk
```

## Health

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

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 5.2.1 |
| Published | 2026-09-28 |
| First published | 2022-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 16 |
| Unpacked size | 222.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | oratstigg, stiggnpc, nadavstigg, antonzy, mortal94, yelena-stigg, nadavsho, itzik.stigg, noa_levi, oriw, yotambenz, tzlilswimmerstigg, odedb, danyloantoniuk, almog-stigg, shaibetitostigg, dmitriy_saienko, nicostigg, amit-stiggio, bostrovsky, dorbar, rawistigg |

## Links

- npm: https://www.npmjs.com/package/@stigg/node-server-sdk
- Repository: https://github.com/stiggio/stigg-sdk
- npm.io page: https://npm.io/package/@stigg/node-server-sdk

## Dependencies (16)

- [axios](https://npm.io/package/axios.md) ^1.18.0
- [dayjs](https://npm.io/package/dayjs.md) ^1.11.13
- [lodash](https://npm.io/package/lodash.md) ^4.18.1
- [nanoid](https://npm.io/package/nanoid.md) ^3.3.8
- [graphql](https://npm.io/package/graphql.md) ^15.6.1
- [ioredis](https://npm.io/package/ioredis.md) ^5.2.4
- [redlock](https://npm.io/package/redlock.md) ^5.0.0-beta.2
- [@apollo/client](https://npm.io/package/@apollo/client.md) ~3.14.0
- [@stigg/sdk-core](https://npm.io/package/@stigg/sdk-core.md) 3.2.1
- [@stigg/cache-core](https://npm.io/package/@stigg/cache-core.md) 1.28.1
- [tiny-typed-emitter](https://npm.io/package/tiny-typed-emitter.md) ^2.1.0
- [@stigg/api-client-js](https://npm.io/package/@stigg/api-client-js.md) 6.24.0
- [@stigg/cache-runtime](https://npm.io/package/@stigg/cache-runtime.md) 2.2.1
- [@stigg/cache-redis-store](https://npm.io/package/@stigg/cache-redis-store.md) 1.29.1
- [@stigg/entitlements-runtime](https://npm.io/package/@stigg/entitlements-runtime.md) 2.2.1
- [@stigg/cache-transport-graphql](https://npm.io/package/@stigg/cache-transport-graphql.md) 2.2.1

## Recent versions

- 5.2.1 (latest) — 2026-09-28
- 2.3.0-redlock-develop.0 (redlock-develop) — 2023-06-19
- 5.2.0 — 2026-09-23
- 5.1.1 — 2026-09-23
- 5.1.0 — 2026-09-17
- 5.0.0 — 2026-09-02
- 4.55.0 — 2026-08-12
- 4.54.0 — 2026-08-05
- 4.53.0 — 2026-07-22
- 4.52.1 — 2026-07-21
- 4.52.0 — 2026-07-14
- 4.51.0 — 2026-07-14
- 4.50.0 — 2026-07-14
- 4.49.0 — 2026-07-09
- 4.48.0 — 2026-07-01
- … 384 more at https://npm.io/package/@stigg/node-server-sdk/versions

## README

# node-server-sdk

Stigg server-side SDK.

## Redis cache

When the SDK is configured with `redis`, customer entitlement data is cached in Redis. By default, cached entries are written with a 7-day TTL (`604800` seconds).

### Options

- `redis.ttl` (number, default `604800`) — expiration in seconds applied to cached entries. Pass `-1` to write entries without an expiration; use this when the cache must remain authoritative through extended Stigg Cloud outages. Invalidation continues to flow through the persistent-cache-service pipeline, so cached data still converges on real changes.

```ts
import Stigg from '@stigg/node-server-sdk';

const stigg = Stigg.initialize({
  apiKey: process.env.STIGG_SERVER_API_KEY,
  redis: {
    host: 'redis',
    port: 6379,
    environmentPrefix: 'prod',
    ttl: -1,
  },
});
```

---
_Source: https://npm.io/package/@stigg/node-server-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
