etcd3-ts This is an etcd client. It's very incomplete. Usage $ npm install etcd3-ts Then in your code: import { EtcdClient } from 'etcd3-ts';import { delay } from 'promise-tools'; const client = new EtcdClient('localhost:2379'); async myFunction() { await client.withLock('mylock', async () => { console.log('Do work here...'); await delay(2000); });} How to build this? Checkout etcd, and then run genGrpc.sh. $ git clone git@github.com:etcd-io/etcd.git$ cd etcd$ git checkout v3.4.9$ cd ..$ ./scripts/genGrpc.sh$ npm run build