Bitcoin Connect: Connect Bitcoin Wallets with Apps
Bitcoin Connect is an open-source library to integrate lightning payments with one line of code. It lets you seamlessly connect your bitcoin lightning wallet with any web application. Interactions like payments can happen natively in web apps and PWAs.
"Bitcoin Connect leverages two existing components and makes them available in a plug and play experience for app developers and wallet users."
"First, WebLN, a set of specifications implemented by dozens of apps already, facilitates sending and receiving of payments between apps and users' lightning wallets in a secure way."
"Second, Nostr Wallet Connect, a spec to establish authenticated connection between the app and the user’s wallet targeting the mobile use case, if no browser extension is available."
"As of now it enables web apps which only need to implement a single interface to connect with multiple wallets. Users can connect from both desktop and mobile devices."
a button to launch the Bitcoin Connect modal;
the modal itself;
a list of connectors for users to select their preferred wallet;
a payment component to easily accept payments from the user."
"Right now these components are available as simple HTML and React packages to more easily integrate Bitcoin Connect into your React and NextJS app. Have a look at these code examples for Codepen and Replit to get a first glimpse."