Dwaal is a lightweight, local key-value store for Node.js that enables shared, persisted data across multiple processes on the same machine. It uses Unix sockets for inter-process communication and elects a leader process to manage an in-memory map, with lazy atomic writes (every ~500ms) to disk. Version 0.2.0 is the current stable release; it requires Node >=6.0.0 and is suitable for small-scale, local coordination tasks. Unlike Redis or SQLite, Dwaal is process-embedded and does not require a separate server.
npm install dwaalNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a Storage instance, setting and getting a key, and closing the storage in Node.js.
Use WSL or a Linux environment on Windows.
Check if the package works on your Node version; consider upgrading to an alternative if issues arise.
Be aware of the 500ms write window; use close() to ensure data is flushed before exiting.
Ensure the directory exists before creating a Storage instance.
Use 'new Storage({ path: '/dir' })' with an options object.Create the directory and ensure it is writable.
Close existing instances or use a different path.
No dependency data recorded yet.