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

@mmmnt/feat-adapter-redis

v0.4.0

Published

Redis service adapter for Feat: a snapshot diff of the namespace's keys, state by key or namespace scan, and credentials and a CA read from files

Readme

@mmmnt/feat-adapter-redis

Redis service adapter for Feat (SPEC-ADPRDS-001): a snapshot diff of the namespace's keys, state by key or namespace scan, seeding, reset, and the instrument's credential and CA read from files.

{
  "services": {
    "cache": {
      "adapter": "@mmmnt/feat-adapter-redis",
      "options": {
        "urlFile": "secrets/redis.url",
        "auth": { "user": "default", "passwordFile": "secrets/redis.password" }
      }
    }
  }
}

Options: url | urlEnv | urlFile (redis:// or rediss://, never with credentials in it); auth either { username?, password } (environment-variable names) or { user, passwordFile } (default for a requirepass server); tlsCAFile (PEM, rediss:// only).

The system under test writes every key under the namespace prefix <namespace>:. Records: { type: INSERT | MODIFY | REMOVE, key: <without the prefix>, payload: { key, kind, value } } (the key in the payload too, so a prediction can name it), kinds string, set, hash, list, zset. Seeds: { type: <kind>, values: { key, value } }. The fault catalog is empty. See DESIGN.md.

Seed transform and storable seeds (SPEC-ADPRDS-002, ADR-0035)

options.seedTransform: { host: { command: [...], cwd?, env? } } names a spec host that transforms every seed call's records before they are written (a consumer computing a value only it can, e.g. a vector from its own pinned encoder). The adapter joins the spec file's shared host (@mmmnt/feat-adapter-stdio-jsonrpc; the same process as a response role with the same host), asks the optional protocol method transformSeed twice per seed call, and writes the first answer only when both agree as canonical JSON and each keeps the records' count, order, type and identity. Seeds only: what the adapter captures and reads is what is stored. Every seed, transformed or plain, is checked against what Redis can store before anything is written: a value fits its kind (string; a non-empty list of strings for set and list; a non-empty map of string fields for hash; { member, score } items with a finite score for zset). A value that does not fit is now SEED_VALUE_UNSTORABLE; SEED_INVALID is an unknown kind or a missing key.

Refusals: OPTIONS_INVALID (no command), SEED_TRANSFORM_UNAVAILABLE (the host cannot be started, at setup), SEED_TRANSFORM_FAILED (an error, method not found, the host ended, or a changed count, order, type or identity), SEED_TRANSFORM_NONDETERMINISTIC (the two answers differ), SEED_VALUE_UNSTORABLE.