A browser Chrome extension that demonstrates how to pay Lightning links using the Breez SDK.
Before running this application, you'll need:
-
Clone the repository:
git clone https://github.com/dangeross/dhd-2025-browser-pay-extension.git cd dhd-2025-browser-pay-extension -
Install dependencies:
npm install
-
Copy the example environment file and fill in your values:
cp example.env .env
-
Edit the
.envfile with your Breez API key:VITE_BREEZ_API_KEY=your_breez_api_key_here
npm run buildThe build output will be in the dist directory.
- Build the extension using
npm run build - Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" by clicking the toggle in the top right
- Click "Load unpacked" and select the
distdirectory - The extension should now be loaded and active
- Click on the extension icon in the browser toolbar to open the popup
- Enter a Mnemonic if not already set
- Open a web page that contains Lightning links. You can use this demo page as an example.
- Click one of the links to open the Payment modal.