{"repo":"lightninglabs/lnc-web","free":true,"listed":false,"github":"https://github.com/lightninglabs/lnc-web","clone":"git clone https://github.com/lightninglabs/lnc-web.git","description":"Lightning Node Connect npm module for web","language":"TypeScript","stars":54,"topics":["bitcoin","lightning-network","typescript","webassembly"],"license":null,"category":"blockchain-web3","readme_excerpt":"@lightninglabs/lnc-web A JavaScript library for connecting to Lightning Network nodes via Lightning Node Connect. Supports password and passkey authentication, automatic session management, and typed RPC access to LND, Loop, Pool, Faraday, Taproot Assets, and Lightning Terminal. Install Quick Start Configuration The constructor accepts a LightningNodeConnectConfig object: Custom Proxy Server Some consumer apps construct the LightningNodeConnect instance on page load but allow users to specify a custom proxy server on the pairing screen. Use the serverHost setter: Pairing Pairing is a one-time operation that connects your app to a Lightning node using a pairing phrase generated by LND or Lightning Terminal. After pairing and persisting credentials, the connection keys are stored locally so the user doesn't need to pair again. One-step pairing (recommended) Connect and persist credentials in a single call: Two-step pairing For more control (e.g., verifying the connection before persisting): Detecting Saved Credentials Use getAuthenticationInfo() to check whether the user has previously paired and how they should log in: The AuthenticationInfo object contains: Field Type Description ----------------------- --------- ------------------------------------------------------- isUnlocked boolean True if credentials have been decrypted into memory hasStoredCredentials boolean True if long-term credentials exist (password or passkey) hasActiveSession boolean True if a valid session exis","default_branch":null,"files":null,"tree":[],"storefront":"/r/lightninglabs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lightninglabs/lnc-web/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}