Nostr NIP-05 verification with GitHub Pages
If you have a GitHub account, you can use Github Pages to get a NIP-05 verification on Nostr.
If you don't have a GitHub account, make one, preferable with the same username as on Nostr.
Next, make a new repository, called <username>.github.io
.
Withing this repository, create the file .well-known/nostr.json
Put the following json in the file:
{
"names": {
"<username>": "<nostr pubkey in hex>"
}
}
Replace <username>
with your GitHub username, and <nostr pubkey in hex>
with your Nostr pubkey in hex format (and not npub
format!). In my case, the file looks like this:
{
"names": {
"mutatrum": "bdbe1bdbc9b25a8d89d8fdaf0be1a0dcd837bac9691f597892903a5fdd86e27f"
}
}
Next, edit or create the file _config.yml
, put in the following line:
include: [".well-known"]
Now, you should have something on https://<username>.github.io/.well-known/nostr.json
.
If you want fancy, you can also put a profile picture there, which you can use.
Now, on https://metadata.nostr.com/
you can fill in your NIP-05 identifier as <username>@<username>.github.io
.
Take a look at my repo: https://github.com/mutatrum/mutatrum.github.io
.
This is a slight adaptation of NVK's https://nvk.org/n00b-nip5
, but without your own domain.