A Node.js client library wrapping the entire LND (Lightning Network Daemon) REST API for programmatic interaction with Lightning Network nodes. Version 0.0.9 is the latest stable release, with an active development cadence on GitHub. It supports multiple macaroon authentication levels (admin, readonly, invoice, base) and provides full TypeScript typings. Differentiating itself from other LND clients like ln-service or lnd-grpc, this library focuses exclusively on REST, offering a simple, promise-based interface without gRPC complexity.
npm install lnd-rest-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an LND REST client with macaroon authentication and fetches node info.
Pin to a specific version and test upgrades thoroughly.
Use in Node.js environments only. For browser, consider a different LND client.
Monitor the repository for changes and update code accordingly.
Ensure environment variables for macaroons are set, or pass empty strings for unused permission levels.
Upgrade to Node.js >=18 or install node-fetch@2 explicitly as a dependency.
Run 'npm install lnd-rest-client' and use correct import: import { LndRestClient } from 'lnd-rest-client'Set NODE_TLS_REJECT_UNAUTHORIZED=0 environment variable (not recommended for production) or provide a trusted certificate.