Licence
MIT
Version
0.1.26
Deps
1
Size
60 kB
Vulns
0
Weekly
0
KVS Server — @coderbuzz/kvs-server
HTTP REST + WebSocket server for @coderbuzz/kvs. Exposes KVStore (sync) and AsyncKVStore (async) as a network-accessible API.
import { KVStore, AsyncKVStore } from "@coderbuzz/kvs";
import { createServer, createAsyncServer } from "@coderbuzz/kvs-server";
// Sync (SQLite via bun:sqlite)
const store = new KVStore("kv.db");
const server = createServer(store, { accessToken: "my-secret" });
await server.run();
// Async (SQLite or PostgreSQL via bun:sql)
const asyncStore = new AsyncKVStore("postgres://user:pass@localhost:5432/kvdb");
const asyncServer = createAsyncServer(asyncStore, { accessToken: "my-secret" });
await asyncServer.run();Supports REST endpoints, WebSocket JSON-RPC, real-time key watch, and push-based queue listeners with work-stealing.
Documentation
Full API reference and deployment examples: DOCS.md
License
MIT 2026 Indra Gunawan