
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@alwatr/nitrobase
Advanced tools
Nitrobase is a blazingly fast, lightweight database built on JSON. It stores data entirely in memory for lightning-quick access, while also providing a JSON file backup for persistence. You can easily serve your data over the web using our high-performanc
Extremely Fast and Compact JSON-Based In-Memory Database with Nginx Integration
Nitrobase is a blazingly fast, lightweight database built on JSON. It stores data entirely in memory for lightning-quick access, while also providing a JSON file backup for persistence. You can easily serve your data over the web using our high-performance accelerated Nginx server.
npm install @alwatr/nitrobase
import { AlwatrNitrobase, Region } from '@alwatr/nitrobase';
const alwatrStore = new AlwatrNitrobase({
rootPath: './db',
defaultChangeDebounce: 2_000,
});
const postsCollectionId = {
name: 'post',
region: Region.PerUser,
ownerId: 'user_123',
schemaVer: 2,
};
alwatrStore.newCollection(postsCollectionId);
const postsCollection = await alwatrStore.openCollection(postsCollectionId);
postsCollection.addItem('post1', {
title: 'My First Post',
content: 'This is the content of my first post.'
});
import { AlwatrNitrobase, Region } from '@alwatr/nitrobase';
const alwatrStore = new AlwatrNitrobase({
rootPath: './db',
defaultChangeDebounce: 2_000,
});
const docId = {
name: 'posts/my-first-post',
region: Region.Authenticated,
};
alwatrStore.newDocument(docId, {
title: 'My First Post',
content: 'This is the content of my first post.'
});
const myPost = await alwatrStore.openDocument(docId);
Explore the provided demo code (collection.mjs
, document.mjs
, benchmark.mjs
) to see Alwatr Nitrobase in action and gain a deeper understanding of its capabilities.
The following companies, organizations, and individuals support Nitrobase ongoing maintenance and development. Become a Sponsor to get your logo on our README and website.
Contributions are welcome! Please read our contribution guidelines before submitting a pull request.
This project is licensed under the AGPL-3.0 License.
FAQs
Nitrobase is a blazingly fast, lightweight database built on JSON. It stores data entirely in memory for lightning-quick access, while also providing a JSON file backup for persistence. You can easily serve your data over the web using our high-performanc
We found that @alwatr/nitrobase demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.