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 -> Domainsand set up your domain name with Vercel - Go to
Settings -> Integrations
Add theMongoDB Atlasintegration on Vercel and create your cluster (seeMongoDBbelow) - Go to
Settings -> Environment Variablesand check if theMONGODB_URIhas 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 Listand add0.0.0.0/0to allow access from everywhere. -
Select your cluster, open the tab
Collectionsand chooseAdd My Own Data. Enterusersas database name,registeredas 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 touchesbelow).
- Edit
site.config.tsand 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