npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sysdb

v0.3.0

Published

High performance in-memory persistent JSON database.

Readme

Here is the updated README for sysdb, reflecting the final minimal API (get() + set() only), with no commit() and no direct data access.


sysdb

A lightweight, in-memory JSON database for Node.js designed for speed and simplicity. Intended for single-process environments only. Clustered or multi-process usage is not supported.

sysdb keeps all data in memory and persists snapshots to disk asynchronously. Reads are synchronous and fast; writes are debounced and persisted in the background.

Optimized for smaller datasets, typically up to ~100,000 records.


Features

  • Mongo-style Queries: $gt, $lt, $gte, $lte, $ne, $in, $nin, $regex
  • In-memory Authority: All reads operate on in-memory data
  • Atomic Persistence: Snapshots written via .tmp + rename
  • Date Support: Automatic normalization and comparison of Date values
  • Pagination: Built-in limit and skip
  • Minimal API: Only get() and set()

Installation

npm i sysdb

Usage

var sysdb = require('sysdb')

// Single database / collection
var db = sysdb('./sysdb.json')

var users = db.get({ type: 'user' })

// Multiple logical tables
var db = {
  users: sysdb('./users.json'),
  projects: sysdb('./projects.json'),
}

var users = db.users.get({})
var projects = db.projects.get({})

Usage Examples

1. Inserting Data

Passing a single object inserts a new document. A UUID id is generated automatically if missing.

await db.set({
  name: 'Project Alpha',
  status: 'pending',
  priority: 1,
  createdAt: new Date()
})

2. Querying with Operators

// Find high priority tasks
var tasks = db.get({
  priority: { $gte: 5 },
  status: { $ne: 'archived' }
})

// Regex and array operators
var results = db.get({
  name: { $regex: /^Project/i },
  tags: { $in: ['urgent', 'active'] }
})

3. Updating Data

// Update all pending tasks
await db.set({ status: 'pending' }, { status: 'active' })

// Update by ID
await db.set({ id: 'some-uuid' }, { progress: 100 })

4. Deleting Data

// Delete a single record
await db.set({ id: 'some-uuid' }, null)

// Delete all completed tasks
await db.set({ status: 'completed' }, null)

// Clear entire database
await db.set({}, null)

5. Pagination

var page = db.get({ type: 'log' }, {
  limit: 10,
  skip: 10
})

Persistence Model

  • Data is stored in memory
  • Writes are debounced (5 ms) and snapshotted to disk
  • Persistence is eventual
  • On process exit before snapshot, recent writes may be lost

There is no explicit flush or commit operation.


API Reference

| Method | Description | | ----------------------- | ------------------------------------------------------------- | | get(query, [options]) | Returns matching documents. Supports { limit, skip, sort }. | | set(query, [values]) | Insert, update, or delete documents. |


Limitations

  • Single process only
  • No multi-process safety
  • No transactional guarantees
  • No live reload of external file changes

For multi-process or crash-durable use cases, use unitdb instead.


License

ISC.


Acknowledgements

Created by Vidar Eldøy, Tekki AS.