A demo web and PWA app showing how to implement Breez SDK with WebAssembly.
See it in action here.
Note: The demo is for demonstration purposes only and not intended for production use.
Built with React, this demo app showcases best practices for integrating Lightning in a web environment using the Breez SDK’s WebAssembly bindings. It enables users to:
- Send payments via various protocols such as: Lightning address, LNURL-Pay, Bolt11, BTC address, Spark address
- Receive payments via various protocols such as: Lightning address, LNURL-Pay, Bolt11, BTC address
- Breez SDK for all the bitcoin functionality
- React with TypeScript
- Tailwind CSS for styling
git clone https://github.com/breez/breez-sdk-spark-example.git
cd breez-sdk-spark-examplenpm installnpm run devThe application will be available at http://localhost:5173
npm run buildThe build output will be in the dist directory.
- The app stores your mnemonic in localStorage, which is not suitable for production use
- For a production app, use secure storage and encryption for sensitive data