Installation
Requirements
Section titled “Requirements”- Node.js 22 or later
- TypeScript 5.0+ (recommended)
Installation
Section titled “Installation”-
Install the core package:
Terminal window npm install queuertTerminal window pnpm add queuertTerminal window yarn add queuert -
Install a state adapter (pick one):
Recommended for production. Supports horizontal scaling and all Queuert features. Requires PostgreSQL 14+.
Terminal window npm install @queuert/postgresTerminal window pnpm add @queuert/postgresTerminal window yarn add @queuert/postgres -
(Optional) Install a notify adapter for reduced latency:
Recommended for production. Uses Redis pub/sub with hint-based optimization to prevent thundering herd. Requires Redis 6+.
Terminal window npm install @queuert/redisTerminal window pnpm add @queuert/redisTerminal window yarn add @queuert/redisExperimental Uses NATS pub/sub. Supports revision-based CAS optimization when JetStream KV is available. Requires NATS 2.2+ (2.6+ for JetStream KV).
Terminal window npm install @queuert/natsTerminal window pnpm add @queuert/natsTerminal window yarn add @queuert/natsUses PostgreSQL’s built-in
LISTEN/NOTIFY. No additional infrastructure beyond your existing PostgreSQL database — already included in@queuert/postgres.Terminal window npm install @queuert/postgresTerminal window pnpm add @queuert/postgresTerminal window yarn add @queuert/postgresWorkers poll the database on a configurable interval. No extra packages or infrastructure required. Suitable for low-throughput workloads where millisecond latency is not critical.
-
(Optional) Install additional packages:
Terminal window npm install @queuert/dashboard # Embeddable web UI for job observationnpm install @queuert/otel # OpenTelemetry metrics and tracingTerminal window pnpm add @queuert/dashboard # Embeddable web UI for job observationpnpm add @queuert/otel # OpenTelemetry metrics and tracingTerminal window yarn add @queuert/dashboard # Embeddable web UI for job observationyarn add @queuert/otel # OpenTelemetry metrics and tracing
For detailed adapter configuration (ORM setup, driver options, provider interfaces), see the Integrations section.
Next up: Core Concepts — learn the building blocks before diving into guides.