npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@antelopejs/redis

v1.1.1

Published

Redis module for AntelopeJS, implementing the Redis and Redis Scheduler interfaces with ioredis

Readme

@antelopejs/redis

The Redis module of AntelopeJS. It connects one shared ioredis client and serves it to the Redis and Redis Scheduler interfaces.

Part of AntelopeJS, the TypeScript framework where modules depend on contracts and the application chooses the provider. Built by the team behind AntelopeJS DMS.

Interfaces

| Interface | Documentation | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | | @antelopejs/interface-redis | Redis | | @antelopejs/interface-redis-scheduler | Redis Scheduler |

The scheduler runs inside its interface package on top of the Redis client, so it needs no module besides this one.

Install

ajs project modules add @antelopejs/redis

The command writes the module's default configuration, which connects to redis://localhost:6379.

Configuration

import { defineConfig } from "@antelopejs/interface-core/config";

export default defineConfig({
  name: "my-project",
  modules: {
    redis: {
      source: {
        type: "package",
        package: "@antelopejs/redis",
        version: "^1.0.3",
      },
      config: {
        url: "redis://localhost:6379",
        useMock: false,
        lazyConnect: true,
      },
    },
  },
  envOverrides: {
    REDIS_URL: "modules.redis.config.url",
  },
});

| Key | Description | | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | | url | Redis connection URL. Optional. Without it, the client uses the options below, or localhost:6379. | | useMock | Serves an in-memory ioredis-mock client instead of connecting, and ignores every other key. For tests only. | | any other key | Passed to the client as ioredis options, such as host, port, password, db, tls or lazyConnect. |

The module creates the client when it starts, and quits it when it stops. With lazyConnect: true, the module waits for the connection before it serves the client.

Quick start

In the module that uses Redis, add the interface:

pnpm add @antelopejs/interface-redis
import { GetClient } from "@antelopejs/interface-redis";

const client = await GetClient();
await client.set("greeting", "hello", "EX", 60);
const greeting = await client.get("greeting");

GetClient() waits until the module has started and set its client. For distributed jobs, add @antelopejs/interface-redis-scheduler and read its documentation.

Documentation

  • Redis documents the @antelopejs/interface-redis contract that this module implements.
  • Redis Scheduler documents the @antelopejs/interface-redis-scheduler contract that this module implements.
  • Configuration documents module sources, config blocks and config variables in antelope.config.ts.

Compatibility

| Package | Supported | Tested with | | --------------------------------------- | ---------------- | ----------- | | @antelopejs/interface-core | >=0.2.4 <1.0.0 | 0.4.0 | | @antelopejs/interface-redis | >=0.0.9 <1.0.0 | 0.0.9 | | @antelopejs/interface-redis-scheduler | >=0.0.8 <1.0.0 | 0.0.8 |

.nvmrc sets the Node.js release for development, and the dependencies of package.json set the ioredis range.

Contributing

pnpm install
pnpm dev            # run the playground/ project against redis://127.0.0.1:6379
pnpm lint
pnpm format:check
pnpm knip
pnpm test           # build, then ajs module test with ioredis-mock

The tests need no Redis server. Read the contribution guidelines before you open a pull request.

License

Apache-2.0