Skip to content

andrerfneves/lightning-decoder

Repository files navigation

Lightning Decoder

License: MIT Built with Vite React 19

https://lightningdecoder.com

Image of Lightning Decoder

Lightning Decoder is a developer utility for parsing and understanding Lightning Network payment data. Built for developers working in the Bitcoin/Lightning ecosystem.

Features

  • BOLT11 Invoice Decoding — Parse Lightning Network invoices to view amount, description, expiry, payment hash, routing hints, and other encoded fields
  • LNURL Decoding — Decode LNURL requests (lnurl-pay, lnurl-withdraw, lnurl-auth, lnurl-channel) to inspect the underlying callback URLs and parameters
  • Lightning Address Resolution — Resolve Lightning Addresses (user@domain.com) to their LNURL-pay endpoints
  • QR Code Scanning — Scan QR codes directly from your camera to decode Lightning payment data

Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn

Development

# Install dependencies
npm install

# Start development server
npm run dev

The app will be available at http://localhost:5173.

Production Build

# Build for production
npm run build

# Preview production build locally
npm run preview

Output is generated in the /dist directory.

Tech Stack

  • React 19 — UI framework
  • Vite — Build tool and dev server
  • bitcoinjs-lib — Bitcoin library for BOLT11 decoding
  • bech32 — Bech32 encoding/decoding for LNURL

Contributing

Contributions are welcome. If you find a bug or want to add a feature, please open a PR with a clear description of the changes.

License

MIT Licensed 2026

About

Lightning Decoder | Decode Lightning Network Request Codes (BOLT11, LNURL, and Lightning Addresses)

Topics

Resources

License

Stars

Watchers

Forks

Contributors