A gRPC based etcd client for NodeJS targeting etcd V3, version 0.6.2. Provides a high-performance, promisified gRPC client with TypeScript support. Key differentiators include unified API across multiple etcd V3 services, automatic reconnection, and error handling with specific error kinds. The library covers KV, Watch, Lease, Cluster, and Maintenance services. Note: The package is relatively stable but has not seen recent updates (last release in 2019). It relies on the `@grpc/grpc-js` package transitively. Compared to `etcd3`, this library uses raw gRPC without a balance-rpc wrapper, and requires manual handling of byte buffers for keys and values.
npm install etcd-grpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows initialization, put, range, and error handling with reconnect for an etcd-grpc client.
Always convert strings to Buffer: Buffer.from('key')Import { getErrorKind, ErrorKind } from 'etcd-grpc' and use getErrorKind(err) to classify errors.Wrap etcd calls in try-catch, check getErrorKind(err) === ErrorKind.CONNECTION_FAILED, then client.reconnect() and retry.
Consider using alternative clients like 'etcd3' or 'etcd-client' for up-to-date support.
Use Buffer.from('mykey') for key and value fields.Use named import: import { getErrorKind } from 'etcd-grpc'Ensure etcd is running on the expected host:port (default localhost:2379).