Shorted URL service powered by nostr.
Service to create shortened URLs using NIP-05. The operation is completed by a front-end application with some Nostr relays.
The person creating the shortened URL needs NIP-05 and NIP-07, but the person using the URL does not need anything.
Nostr is the simplest open protocol. that is able to create a censorship-resistant global "social" network once and for all.
Mapping Nostr keys to DNS-based internet identifiers.
Shotr use NIP-05 in order to detect public key of user creating shorted URL.
<service baseurl>#<NIP-05 name>@<NIP-05 domain>/<tag key>/<tag value(content id)>
Sample: https://6or.cc/#[email protected]/s/15K
Original URL: https://snort.social/e/nevent1qqs9sw5jd30j6eugqxjm3cuka5vhfa6ylg8qsngfwgyf5l0efdd6xpcpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszrnhwden5te0dehhxtnvdakz7n85nnt
Save long url as Nostr Event.
{
"kind": 30078,
"created_at": <number>,
"tags": [
[
"<tag eg. 's'>",
"<duplicate checked random content_id>"
]
],
"content": <your long url input>,
"pubkey": "<your Nostr public key set as NIP-05>"
}
Those who use shortened URLs should use the following filters.
{
kinds: [30078],
authors: [<your Nostr public key set as NIP-5>],
[`#${tagKey}`]: [<content id>],
}
TBD
yarn
yarn dev