getAlby / lightning-browser-extension

The Bitcoin Lightning Browser Extension that brings deep Lightning & Nostr integration to the web. Wallet interface to multiple lightning nodes and key signer for Nostr, Liquid and onchain use.
https://getalby.com/#extension
MIT License
535 stars 194 forks source link

[Feature] Expand Twitch/streamer support by adding an Alby HTML streaming widget #1948

Open VictorieeMan opened 1 year ago

VictorieeMan commented 1 year ago

Feature description

Speaking of adding twitch support in #1017 Maybe consider adding an API to talk with streaming widgets would be cool. That may encourage streamers to ask their viewers for lightning tips. The "Buy me a coffee" people added this (but they only take gov-fiat), and I think LNbits have an implementation. Alby could consider this as well.

Since people over lightning expect privacy, I would only let the API trigger a donation event and not send along sender about Amounts or sender. This could be optional in some kind of external feature.

Describe the solution

In house

One way is to provide an alby html widget that streamers can add to their streaming software as overlays. Sample url for users to link in their software, based on how stream lab links look; https: //getalby.com//alert-box/v3/usrHF84HGFUHN39GF

Describe alternatives

External

Adding an API that other services can use to trigger donation alerts.

Additional context

No response

Are you working on this?

No, maybe later but no point in just letting the idea be unheard until later if someone got some input.

reneaaron commented 1 year ago

Hey @VictorieeMan, thanks for your feedback! šŸ‘

I might suggest you take a look at https://zapdos.albylabs.com:

You can connect your Alby account there and get an overlay URL just like you described. There is probably much room for improvements (it was created during a hackathon and didn't receive much love after that), but maybe this is a start?

Let me know if that works for you or if you miss any particular features.

VictorieeMan commented 1 year ago

Hey @VictorieeMan, thanks for your feedback! šŸ‘

I might suggest you take a look at https://zapdos.albylabs.com:

You can connect your Alby account there and get an overlay URL just like you described. There is probably much room for improvements (it was created during a hackathon and didn't receive much love after that), but maybe this is a start?

Let me know if that works for you or if you miss any particular features.

Great suggestion. This seems to be exactly what I was thinking of. It needs some further development ofc, does it have it's own repo anywhere? It seems to me unnecessary to clutter up the alby-extension library with this if there's already a viable integration on the subject.

Two ideas of features to add just off the bat:

reneaaron commented 1 year ago

Glad to hear that!

does it have it's own repo anywhere?

Unfortunately not yet.

Do you have a stream and would you use this product?

VictorieeMan commented 12 months ago

Yes! sorry, I thought I answered this long time ago xD

If anyone sees this again, I think we could for the moment forward these kind of ideas to what zap.stream does. It will work even when streaming on other places than zap.stream since what is does is reading nostr donations: https://zap.stream/widgets

But to "ding" on general donations something integrated with the ln btc wallet is needed ofc.