swarm-keydb

JavaScript SDK Quick Reference

Use the new npm SDK package:

Quick start:

import { createClient } from '@swarm-keydb/client';

const client = createClient({ wsUrl: 'ws://127.0.0.1:8765/' });
await client.connect();
await client.set('hello', 'world');
console.log(await client.get('hello'));