Redis persistence adapter for Yjs, a CRDT-based collaborative editing framework. Current stable version 1.0.3, with irregular release cadence. Provides a Redis backend to persist Yjs documents, enabling durable storage and retrieval of shared data structures. Key differentiator: integrates seamlessly with Yjs's internal persistence API, allowing real-time collaboration with Redis as a storage layer. Supports automatic document recovery and synchronous writes. Requires Yjs ^13.0.2 as a peer dependency. Note: This package is labeled as work in progress and may have limited features or stability compared to other Yjs persistence adapters.
npm install y-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize a Redis persistence adapter for a Yjs document, bind it, and retrieve persisted state. Includes environment variable for Redis URL.
Consider using y-leveldb or y-mongodb for more stable persistence.
Use import statements or configure your bundler to handle ESM.
Migrate from `setPersistence(doc, adapter)` to `configure(options).bindDoc(doc)`.
Use dynamic import: const { configure } = await import('y-redis') or switch to ESM in your project.Change import to: import { yRedisPersistence } from 'y-redis'