JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 148
  • Score
    100M100P100Q119230F
  • License MIT

Lightweight SQLite-backed key-value store with atomic transactions, TTL, queue, and TypeScript client SDK.

Package Exports

  • @coderbuzz/kvs

Readme

KVS — @coderbuzz/kvs

Lightweight SQLite-backed key-value store for TypeScript. Embed directly in your app — zero HTTP deps.

Atomic transactions, TTL expiry, persistent queue with retries, real-time watch, and push-based listeners. Works anywhere Bun or Node.js runs.

Installation

npm install @coderbuzz/kvs

Quick Start

import { KVStore } from "@coderbuzz/kvs";

const store = new KVStore("kv.db");
store.set(["greeting"], "hello world");
const entry = store.get(["greeting"]);
console.log(entry?.value); // "hello world"

// Atomic transaction
store.atomic()
  .set(["users", "42"], { name: "Alice" })
  .enqueue({ task: "welcome" }, { topic: "emails" })
  .commit();

Documentation

Full API reference: DOCS.md

License

MIT © 2026 Indra Gunawan