random-access-storage

JSON →
library 3.0.2 ·javascript
verified Jun 7, 2026

Base class for implementing random-access-storage abstractions in Node.js. Current stable version is 3.0.2. Provides a common interface for storage backends with read/write/del operations, managing open/close lifecycle, flow control, and error handling. Unlike directly using fs or streaming abstractions, it enforces a consistent contract for random-access patterns and handles automatic opening, suspension, and cleanup. Useful for building custom storage drivers (file, memory, network) that comply with the Hypercore ecosystem. Maintained actively with frequent releases.