@coderbuzz/kvs-server
v0.1.24
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. Supports sync (KVStore) and async (AsyncKVStore) backends.
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();Documentation
Full API reference and deployment examples: DOCS.md
License
MIT © 2026 Indra Gunawan
