pull down to refresh

Hey stackers!

I just built a small project called Thor — a Lightning Address server written in Rust.

Here’s the cool part: With NWC (Nostr Wallet Connect) as the backend, you can have a lightning address on your own domain without running your own Lightning node.

Here is a screenshot of paying to my lightning address yfaming@yfaming.com using getAlby.

In the future I might add support for LND or Core Lightning, if I have my onw LN node.

If you’ve ever wanted your own lightning address, give it a try — and let me know what you think!

26 sats \ 5 replies \ @OT 26 Jul
you can have a lightning address on your own domain without running your own Lightning node.

Where do the sats go if you aren't running a LN node?

reply

Via Nostr Wallet Connect to your wallet as I understand. It's like a map between an url to your wallet provider, if it support NWC.

reply

Exactly!

reply
21 sats \ 2 replies \ @OT 26 Jul

So I can use Thor with a different LNURL which will lead to a wallet with NWC (like Albyhub or Rizful)?

reply

Yeah, you can deploy Thor on your own domain and configure it with your own NWC strings. For example, I’m running Thor behind my domain yfaming.com on a tiny VPS, using an NWC string from Rizful. You can do the same with your own domain and NWC strings.

reply
on a tiny VPS

Any recommendations here? Or info about the resources it is needing to run? Thanks!

reply
21 sats \ 4 replies \ @ACYK 28 Jul

Looks very interesting. Has anyone tested the minimum VPS requirements for running Thor? Seems it would be great for low-resource deployments since you're not running a full LN node, but just using NWC to connect back to a node that doesn't need to be exposed to clearnet.

reply

I'm running it on a tiny DigitalOcean VPS (512 MB memory, 1 CPU, 10 GB SSD, $4/month) with an additional 30 GB SSD volume ($3/month at $1 per 10 GB). My total cost is $7/month.

I also had to set up a 2 GB swap file when building the project; otherwise, rustc would be OOMed.

To reduce costs, you could either shrink the volume size or skip using it altogether.

reply
0 sats \ 1 reply \ @ACYK 29 Jul

Thanks. Dug a bit deeper, and I’ll probably just go with a Bolt12 invoice in a DNS record and skip the needing a server part (I.e BIP353). Seems Bolt12 adoption is growing; hopefully that’ll be the norm soon. A lot easier for the average person to grab a cheap domain and add a DNS record.

reply

Makes sense. It really comes down to what fits your needs best.

reply

And I use Cloudflare as my DNS server, and handle HTTP cert. On the VPS, thor is deployed behind ningx.

reply
21 sats \ 1 reply \ @m0wer 26 Jul

How does it compare to https://github.com/bumi/lnme ?

reply

I looked through the lnme code, and it seems that lnme requires you to run LND as your Lightning node.

reply

@CHADBot /trumpMode for

reply

You have summoned CHADBot. Please zap this post 21 sats to receive service.

Made with 🧡 by CASCDR

reply

It's a great bot!

reply

Which characters should I add?

I am thinking Hulk Hogan (RIP king) and others like those. Maybe Max Keiser

reply

As someone outside the US, I’m not really familiar with them, haha.

reply

Even better. It would be funny af to have international characters.

reply

How about Chandler Bing from Friends? Or is Friends not popular anymore? Sadly, Matthew Perry, the actor who played Chandler, has passed away.

reply

Fantastic work by @yfaming on Stacker News! They've created 'Thor', a Lightning Address server - No need for your personal Lightning node. Just brilliant. With NWC, you can get your own domain's lightning address. It’s about freedom and innovation folks! Sounds like the future to me. Give it a whirl! #LightningNetwork #Innovation

Made with 🧡 by CASCDR

reply

Supported by SN or not as receiving wallet?

reply

A Lightning address is used to receive sats. You can think of it as an HTTP API that generates invoices. Others can send you sats using your Lightning address, but you can’t use it to pay others.

It’s a standard defined in LUD-16, and Lightning addresses are supported by many products, such as Nostr. Stacker News supports it too — you can set your Lightning address here.

reply

This is super cool kaibigan! Rust + NWC is a powerful combo. Love the idea of having a Lightning address without the hassle of running a full node. 🔥 Definitely giving this a try thanks for building it

This is a bit above me but it looks cool af 😎

reply