Web based nostr address (NIP-05) provider service.
Users can enter their exisiting lightning address when registering and then use their nostr address as lightning address.
The project is a website built with Astro.
By default it is hosted on Vercel and uses a MongoDB backend.
Both Vercel & MongoDB offer free plans which should be sufficient to run this.
You will still need a domain name if you want to offer this service on a TLD, though.
- Fork this repository
- Sign up or login with Vercel and add the forked repo as a project.
- Go to
Settings -> Domains
and set up your domain name with Vercel - Go to
Settings -> Integrations
Add theMongoDB Atlas
integration on Vercel and create your cluster (seeMongoDB
below) - Go to
Settings -> Environment Variables
and check if theMONGODB_URI
has been added. This variable is needed to connect to the database.
-
When asked
Where would you like to connect from?
during setup, chooseCloud Environment
, thenIP Access List
and add0.0.0.0/0
to allow access from everywhere. -
Select your cluster, open the tab
Collections
and chooseAdd My Own Data
. Enterusers
as database name,registered
as collection name and create the database.
If you want to choose different names, you can do so. In this case, update the corresponding values insite.config.ts
(seeFinal touches
below).
- Edit
site.config.ts
and set your domain, slogan and donation LNURL - Commit & push
- Watch Vercel doing magic (don't blink, they are fast)
- Enjoy your new nostr address service
- Announce it on nostr!
Basic tools for importing and exporting are included.
Check the README for more information.
Everything is by Astro standards.
To run the page locally, you'll have to create a file called .env
in the project root and add your MongoDB connection string:
MONGODB_URI="mongodb+srv://<your connection link>"
You can get your connection link from MongoDB and/or Vercel.
To start the local server, run:
node run dev
For more, check the Astro docs.
- Copy to clipboard hook by usehooks-ts.com
- Copy icon by online web fonts, licensed by CC BY 3.0