Skip to content

djrobinson/visualize-lightning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visualize Lightning

Under development. To see working demo, checkout the alpha-demo tag here

Lightning Network Visualization & Analysis Tool

A simple network visualizer for the Lightning Network that allows users to explore the network map from the perspective of their own node.

Data Displayed:

  • Geolocation of all publicly announced IP address on Lightning
  • Visual routes between announced nodes
  • Lists all channels for a selected node
  • Lists the policy details for a selected channel

alt text

Tech Used:

Getting started

Downloads

  1. Install LND using the btcd operating mode according to the tutorial here
  2. git clone https://github.com/djrobinson/visualize-lightning.git
  3. Open up 2 terminals

Terminal 1

  1. cd visualize-lightning/server
  2. yarn
  3. touch .env
  4. Sign up for a IPStack API Key
  5. Update the .env file with your keys & certs, should look like:
SERVER_PORT=3000
LND_URL=localhost:10009
LND_MACAROON_PATH=/path/to/a/file.macaroon
LND_CERT_PATH=/path/to/a/tls.cert
IPSTACK_API_KEY=apikeyfromipstack
  1. knex migrate:latest --env development
  2. yarn start

Terminal 2

  1. cd visualize-lightning/web
  2. yarn
  3. yarn serve

Populate DB with LND describegraph info & gather IP locations

  1. Open the app at http://localhost:8080
  2. Click the "Data" tab
  3. Click the "Describe Graph" button
  4. Go back to the map, verify that nodes and channels show up on the map and in the side pane