pull down to refresh

I'm building my Lightning-chess websiteI'm building my Lightning-chess website

I've got Lightning infrastructure built into my website, when you go to the menu there is a lightning tipping function, I purposely didn't want to gamble sats to play chess, just a few sats for a good move/good game etc

What lightning infrastructure do I have on my site

Apparently none! And that's the part cooking my noodle, my site doesn't touch the payment at all

  • Player enters a lightning address like k00b@stacker.news
  • My code calls https://stacker.news/insert/lnurlp/k00b or something like that
  • I'm assuming SN returns a bolt11 invoice
  • My site shows that invoice as a QR code

  • The payer scans it and the whole thing is handled by the Lightning Network
  • My site is basically a noticeboard

The wallets and nodes do all the work!The wallets and nodes do all the work!


Obviously you old hands are like, bro is on day one but this is so cool


UX Realities

This actually from a UX point of view is quite archaic isn't it? It reminds me of the old Nostr days when you had to come out of the app to zap someone by creating an invoice, which is pretty much where I'm at rn

Obviously Nostr has come a long way since then and from a UX perspective it's much cleaner now zapping people

And SN is the daddy of Lightning infrastructure, the work that goes into creating this UX speaks for itself

The complexities of building all that into a finished site are quite amazing and daunting at the same time

You start off with uninformed optimism meaning you think this is a good idea but have zero idea of what it entails, then you hit the despair period where you're like, fuck it! i'm deleting it all, then when you finally get to where you want to be, you get informed optimism where you're allowed to be satisfied because you now know what it took!


Pitfalls I want to avoid

If I manage to get this site into a working product, at some point I may want to polish the UI for the UX and the big pitfalls I can see are Spark and Breez, personally I would like to try and keep this as pure lightning as possible, if I'm building a decentralised chess app on Nostr, part of the vision is not a Trustodial payment rail


If i'm right in thinking ln invoices are valid for one hour and so if anyone wants to send k00b 100 sats, I created it at 22:15 UTC

@justin_shocknet didn't get much traction this post, but thought i'd share it with you

I've been sending sats for years but building this has opened my eyes to LN

@DarthCoin might want to look too, I can take his barbed retorts :)

reply

Nice progress, and progress is learning

Most lightning stuff is really simple when you boil it down, it's all glue

The way Nostr apps or SN make it so you don't have to scan an invoice are spending API's like NWC and CLINK that connect it to your wallet

reply

Thanks JS appreciate it

reply

I like to play chess, but not online with strangers.
I like with a good friend, drinking a good whiskey and talk about stuff.
So I have nothing to say about your game.

reply