selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

LndHub logo

Self-host LndHub

v1.4.1

Lightning Network custodial account wrapper for LND

Archived ReleaseOpen SourceMIT
Updated4 months ago
LanguageJavaScript
Setup difficultyAdvanced
Stars
1 078
Port
3000 (HTTP API)
Requires
LND, Redis
Docker
bluewalletorganization/lndhub
Install with Docker Compose
LndHub screenshot 1

What is LndHub?

LndHub is a Node.js service that wraps Lightning Network Daemon (LND) to offer custodial Lightning accounts for multiple end users. It provides a REST API for wallet applications like BlueWallet to manage user balances, send and receive payments, and handle invoices. The service requires a running LND instance and Redis for data storage, with optional bitcoind for on-chain operations. It can be deployed via Docker, Docker Compose (as used by Umbrel), manual Node.js installation, or Heroku. Authentication uses LND's macaroon and TLS certificate system rather than built-in user login.

LndHub alternatives

Should you self-host LndHub?

LndHub scores 52/100 on selfhost.directory (how scoring works) and ranks #6 of 12 in API. It has 1 078 GitHub stars, +20 in the last 30 days.

The repository is archived, so don't expect new releases or security fixes.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is MIT-licensed and written mostly in JavaScript.

Its closest alternative on selfhost.directory is Hoppscotch Community Edition (83/100, 80 800 stars). It scores higher overall, so compare the two before you pick. See LndHub vs Hoppscotch Community Edition side by side.

Features

  • Custodial Lightning accounts
  • Fee management
  • Rate Limiting

LndHub README

How to install LndHub

Install LndHub with Docker Compose

Environment variables
PORT, LND_CERT_FILE, LND_ADMIN_MACAROON_FILE, CONFIG, TOR_URL

version: "3.7" services: redis: image: redis:6.2-buster command: redis-server --requirepass moneyprintergobrrr volumes: - ./redis:/data web: image: bluewalletorganization/lndhub:v1.3.0 depends_on: [ redis ] ports: - "3000:3000" volumes: - /path/to/lnd:/lnd:ro environment: PORT: "3000" LND_CERT_FILE: "/lnd/tls.cert" LND_ADMIN_MACAROON_FILE: "/lnd/data/chain/bitcoin/mainnet/admin.macaroon" CONFIG: '{ "redis": { "port": 6379, "host": "redis", "family": 4, "password": "moneyprintergobrrr", "db": 0 }, "lnd": { "url": "lnd:10009", "password": ""}}'

Based on Umbrel's implementation

LndHub releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in API

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…