lnc-app

Build browser-based Lightning Node Connect apps with lnc-web and LND RPC.

57|18|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/lightninglabs/lightning-agent-tools --skill lnc-app
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lnc-app
Source: https://github.com/lightninglabs/lightning-agent-tools/tree/main/skills/lnc-app
Command: npx skills add https://github.com/lightninglabs/lightning-agent-tools --skill lnc-app

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you build browser-based Lightning Node Connect applications that communicate with an LND node without exposing inbound ports, while keeping session setup, reconnection, and credential handling manageable.

Core Features & Use Cases

  • Secure Browser Connectivity: Connect a web app to LND through the LNC mailbox proxy with end-to-end encryption.
  • Pairing and Reconnection Flows: Handle first-time pairing with a mnemonic phrase, then restore sessions from stored credentials and passwords.
  • Lightning RPC Integration: Create invoices, look up settlement status, list invoices, stream invoice events, and check wallet and channel balances.
  • Use Case: Build a customer-facing Lightning dashboard that lets users pair once, reconnect safely later, and interact with their node from the browser.

Quick Start

Ask the AI to help you build an LNC web application that initializes lnc-web, implements pairing and login flows, and wires Lightning RPC calls into your UI.

Frequently Asked Questions about lnc-app

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a web app to an LND node without exposing inbound ports?

Lightning Node Connect (LNC) connects a web app to an LND node without exposing inbound ports by routing traffic through a mailbox proxy with end-to-end encryption. This Skill helps build browser-based LNC apps that manage session setup and credential handling securely.

What's the best way to handle LNC pairing and reconnection in a browser?

Handling LNC pairing and reconnection in a browser involves using a mnemonic phrase for first-time pairing, then restoring sessions from localStorage-backed credentials and password-based key encryption. This Skill provides the logic to implement these secure flows.

Can I stream invoice events and check wallet balances using LNC?

Yes, you can stream invoice events and check wallet balances using LNC by wiring async LND RPC calls into your UI. This Skill supports creating invoices, looking up settlement status, listing invoices, and checking both wallet and channel balances.

Do I need a mailbox proxy configuration to initialize lnc-web?

Yes, a mailbox proxy configuration is required to initialize the lnc-web constructor. This setup enables the secure browser connectivity needed to route encrypted communication between your web application and the LND node.

How do I manage credentials securely in a Lightning Network web application?

To manage credentials securely in a Lightning Network web application, use localStorage-backed credentials combined with password-based key encryption. This Skill applies this mechanism to maintain secure sessions after the initial LNC pairing process.