Rocket-Store is a lightweight, high-performance flat-file database solution for Node.js, currently at version `0.10.20`. It distinguishes itself by directly leveraging the host operating system's file system caching mechanisms for exceptionally fast data storage and retrieval. Designed for scenarios requiring minimal footprint and high throughput, it stores data in JSON format within collections and records, accessible via unique keys. The package requires no complex configuration or setup, defaulting to the OS temporary directory for data storage, and supports both CommonJS and ES Modules. While specific release cadence isn't explicitly defined, frequent updates indicate active maintenance. Its key differentiators include simplicity, asynchronous mutation safety, and a single-file core with few external dependencies, making it an efficient alternative to more complex database systems for specific use cases.
npm install rocket-storeVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic setup, configuring the storage area, and performing CRUD operations (post, get, delete) with specific keys and wildcard searches.
Ensure collection and key names adhere to basic file naming conventions, avoiding special characters like `/`, `\`, `*`, `?`, or other OS-specific forbidden characters. Implement client-side validation for user-provided keys to prevent silent stripping.
Always use `const rs = await store.Rocketstore();` or `const rs = await store.default();` for ESM imports and initialization.
Use `const rs = require('rocket-store').default;` to correctly import the Rocket-Store instance in CommonJS.For ES Modules: ensure `const rs = await store.Rocketstore();`. For CommonJS: ensure `const rs = require('rocket-store').default;`.Verify that collection names and keys do not contain any path separators, wildcards, or other special characters that could be silently removed. Inspect the `key` property in the `post` method's return value to confirm the actual key used for storage.
No dependency data recorded yet.