@coderbuzz/kvs-server
v1.0.0
Published
HTTP REST + WebSocket server wrapper for @coderbuzz/kvs — run a self-hosted KV server in one line.
Maintainers
Readme
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
