{"id":44730,"library":"dipswitch-redis","title":"dipswitch-redis","description":"This package provides a Redis-backed store for the dipswitch feature flag library, version 1.0.1. It acts as an adapter that passes a Redis client to dipswitch, enabling persistent and distributed feature flag storage. Current release cadence: stable (no recent updates). Differentiator: lightweight integration with dipswitch using standard Redis client.","status":"active","version":"1.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/lanetix/node-dipswitch-redis","tags":["javascript","dipswitch","redis"],"install":[{"cmd":"npm install dipswitch-redis","lang":"bash","label":"npm"},{"cmd":"yarn add dipswitch-redis","lang":"bash","label":"yarn"},{"cmd":"pnpm add dipswitch-redis","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency; this store is designed to be used exclusively with dipswitch","package":"dipswitch","optional":false},{"reason":"runtime dependency; the Redis client used to connect to Redis","package":"redis","optional":false}],"imports":[{"note":"package exports a factory function that takes a Redis client and returns a dipswitch-compatible store object","wrong":"const store = require('dipswitch-redis'); store(redisClient) // wrong: missing factory invocation","symbol":"default","correct":"const store = require('dipswitch-redis')(redisClient)"}],"quickstart":{"code":"const redis = require('redis');\nconst redisClient = redis.createClient();\nconst dipswitchStore = require('dipswitch-redis')(redisClient);\nconst Dipswitch = require('dipswitch');\nconst dipswitch = new Dipswitch({ store: dipswitchStore });\ndipswitch.enable('my-feature');\nconsole.log(dipswitch.enabled('my-feature')); // true","lang":"javascript","description":"Shows how to create a Redis client, obtain a dipswitch store, and initialize dipswitch with it."},"warnings":[{"fix":"Ensure you call redis.createClient() and handle errors/reconnection appropriately.","message":"The redis client must be created and passed as an argument; the store does not manage connection lifecycle.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Consider migrating to a more modern feature flag store or forking.","message":"The package is not actively maintained; last release was 9 years ago.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.0.1':19 'act':21 'adapt':24 'back':10 'cadenc':41 'client':29,54 'current':39 'differenti':46 'dipswitch':2,14,31,50,56 'dipswitch-redi':1 'distribut':35 'enabl':32 'featur':15,36 'flag':16,37 'integr':48 'javascript':55 'librari':17 'lightweight':47 'packag':5 'pass':26 'persist':33 'provid':6 'recent':44 'redi':3,9,28,53,57 'redis-back':8 'releas':40 'stabl':42 'standard':52 'storag':38 'store':11 'updat':45 'use':51 'version':18","created_at":"2026-06-07T12:51:33.787466+00:00","updated_at":"2026-06-07T12:51:33.787466+00:00","problems":[{"fix":"Use `const store = require('dipswitch-redis')(redisClient)` not `const store = require('dipswitch-redis')`","cause":"Requiring the module without calling it as a factory","error":"TypeError: dipswitchStore is not a function"},{"fix":"Start Redis server or check redisClient configuration","cause":"Redis server not running or accessible","error":"Error: Redis connection to 127.0.0.1:6379 failed"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/lanetix/node-dipswitch-redis#readme","github":"https://github.com/lanetix/node-dipswitch-redis","docs":null,"changelog":null,"pypi":null,"npm":"dipswitch-redis","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}