JSPM

  • Created
  • Published
  • Downloads 1206
  • Score
    100M100P100Q115370F
  • License MIT

Provides essential components and utilities shared across RedisSMQ packages.

Package Exports

  • redis-smq-common
  • redis-smq-common/package.json

Readme

RedisSMQ Common Library

[!NOTE] You are viewing the documentation for the "next" branch. These docs describe unreleased changes published under the npm "next" dist-tag.
For the latest stable documentation, see:

Pre-release (next) Code Coverage (next)

A shared foundation for the RedisSMQ ecosystem. This package provides essential components and utilities used by RedisSMQ and related packages, helping you configure Redis clients, structure logging, and reuse core types across the stack.

  • Used by: redis-smq, redis-smq-rest-api, redis-smq-web-server, and redis-smq-web-ui
  • Node.js 20+ is required

Features

  • Core types and utilities shared across RedisSMQ packages
  • Configuration helpers and enums (e.g., select Redis client implementation)
  • Logging interfaces and a Console logger implementation
  • Redis client abstractions and guidance for supported clients
  • File-based synchronization primitives (e.g., FileLock)
  • Thorough documentation for server/client setup and usage

Installation

Install the package:

npm install redis-smq-common@next
# or
pnpm add redis-smq-common@next

This package works with multiple Redis clients. Install one of the supported clients based on your needs:

  • ioredis (recommended for advanced features)
npm install ioredis
  • @redis/client (official Redis client)
npm install @redis/client

Note: Redis clients are optional peer dependencies; pick one and configure it in your application.

Version compatibility

Always use matching versions of the RedisSMQ packages across your project to avoid runtime/API mismatches. See the monorepo documentation for Version Compatibility guidance.

Documentation

For in-depth guides and API references, see the documentation:
https://github.com/weyoss/redis-smq/tree/next/packages/redis-smq-common/docs

Contributing

Issues and pull requests are welcome. Please read the repository’s CONTRIBUTING.md at the project root before submitting changes.

License

This project is licensed under is released under the MIT License.