Slayer.DB is a lightweight, easy-to-use database module for Node.js offering two backends: JSON-file-based (slayersDBJSON) and MongoDB (slayersDBMongo). Version 1.5.11 supports CRUD operations, nested key access, array manipulation, and table partitioning. It is designed for small-to-medium projects where simplicity is prioritized over scalability, with automatic save cooldowns to prevent corruption. Unlike heavier ORMs, it provides a minimal API with no complex schemas.
npm install slayer.dbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic CRUD operations with slayersDBJSON: set, get, has, delete, save, and clear.
Avoid calling save() in rapid loops; rely on internal cooldown or batch updates.
Ensure MongoDB is available and provide correct connection options.
Set option { upsert: false } if you do not want automatic document creation.Run: npm install slayer.db
Use import { slayersDBMongo } from 'slayer.db'Use slayersDBJSON if you need manual save().
No dependency data recorded yet.