Skip to content

Install and Run

LN Advisor UI connects to an LND node through LNC and gives you three main flows in the frontend: Channel Fees, Opening Recommendations, and Node Analysis.

Requirements

  • Node.js
  • pnpm

Install pnpm if needed:

bash
npm install -g pnpm

Setup

Clone the app and install dependencies:

bash
git clone https://github.com/ln-advisor/ln-advisor-ui
cd ln-advisor-ui
pnpm install
cp .env.example .env

Minimum .env values:

txt
VITE_API_BASE_URL=http://127.0.0.1:8787
VITE_ENABLE_PHALA_VERIFIED_UI=true
API_PORT=8787

If you want the verified frontend to call your own service, add:

txt
VITE_PHALA_MINIMAL_APP_URL=https://your-verified-service-url

Start

Start the frontend:

bash
pnpm dev --host

Start the local API if you want Local mode:

bash
pnpm api

Open http://localhost:5173.

Public demo

Public demonstration URL:

https://ln-advisor.vercel.app/

Use it to review the interface only.

Do not use it with a real node.

Secure use is local, with your own frontend and local API.

The public demo is not the right place for local API flows or real node credentials.

Connect your node

  1. paste the LNC pairing phrase
  2. enter the password
  3. click Connect & Save Session

For later sessions:

  1. enter the password
  2. click Login

Use the frontend

Channel Fees

  1. open Channel Fees
  2. select a channel
  3. inspect fee, liquidity, and forwarding context
  4. choose Local or Verified Runtime (TEE)
  5. in verified mode, click Review Request
  6. run the recommendation

Opening Recommendations

  1. open Opening Recommendations
  2. click Sync Graph Data
  3. choose Local or Verified Runtime (TEE)
  4. in verified mode, click Review Request
  5. run the recommendation
  6. inspect the ranked candidate peers

Node Analysis

  1. open Node Analysis
  2. click Fetch Data
  3. inspect graph state, forwarding history, mission control, and centrality

Conditional Recall

  1. open Conditional Recall
  2. enter the REST host and routerrpc macaroon hex
  3. set Lookback days and Live window seconds
  4. click Test Config
  5. click Start Session
  6. review Session Status and Draft Fee Suggestions

More docs