Upload a file, pay with sats. No account, no ads.
This is my first project based on Lightning payments. The idea was to try out how easy it is to implement apps with Lightning. Now the time has come.
Technically the file is uploaded and pinned on Sia, the public decentralized storage network. After the upload, you get the file link. Feel free to share the link. And last but not least: LNbits is used as the payment provider.
Under the hood:
-
User selects a file (no upload yet)
-
Browser calculates the file size
-
App calculates the costs (1 kB = 1 Sat)
-
App uses LNbits API to create an invoice
-
User pays the invoice
-
App uploads the file to Skynet (Browser API)
-
After the upload the Skynet API returns the skynet link
-
App communicates the upload link to the user
A simple (mobile) app with a lot of ❤️ for code and design.
Open Source: https://github.com/rottingcleaner/storage4sats