A gRPC name resolver for @grpc/grpc-js that integrates with HashiCorp Consul service discovery. Version 1.3.1 is current; release cadence is irregular. It resolves service endpoints from Consul and watches for changes. Differentiators: minimal API (single register() call), supports Consul health checks, tagging, and advanced query parameters (wait, near, limit, stale, consistent). Note: not production-ready per the author; may break backward compatibility.
npm install grpc-js-consulNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to register the Consul resolver and create a gRPC client using a consul:// URI.
Pin exact version and thoroughly test upgrades.
Ensure consul://host:port/service-name?parameters format. See README for supported options.
Use main package import: import { register } from 'grpc-js-consul'.Use strings like '10s', '5m', '1h30m'.
Use const { register } = require('grpc-js-consul');Call register() at the top of your application.