PPE Relay - a paid relay that accepts notes on a pay-per-event basis.

wss://ppe.swarmstr.com

Powered by khatru framework by nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6

How it works?

- For storing an event, the relay charges 1 sat per single event.

- The amount is subtracted from the user's balance each time event is accepted.

- To top up your balance, simply zap any note from nostr:npub1ppe99328rp50r3x0xcm6lk0q59uln7r4f8hlr7esfvphz2uwmeesxedhyc with the desired amount.

- Only kind 1 (note) and 30023 (long-form) events are accepted.

- To view your current balance, tag nostr:npub1ppe99328rp50r3x0xcm6lk0q59uln7r4f8hlr7esfvphz2uwmeesxedhyc with "balance" command.

Repo: https://github.com/ptrio42/ppe-relay

Feedback/suggestions appreciated.

Note: This is an experimental phase so expect some bugs.

Reply to this note

Please Login to reply.

Discussion

Your balance is 0 sats.

Interesting exploration.

Pay-per-kb could be another and expand to blossom.

Interesting idea.

Pull request: name change to PPP:pay per post

I don't want a relay for personal protective equipment

Thanks for the suggestion 😂Tripple p looks cool.

Niiice! Glad to see it worked. Cheers for building it 🙌

@note1ckek32lspvl85jrvqqhl8vlhm7ymlw3puxg78ytz82s4hrwd432sw4cm7e

Lets see how it goes

👀

Wild. Could this be used for someone to pay sats to get a note some widespread reach, coming from a burner npub?

Also makes me wonder if this could be the basis for an advertising model.

Should work well with burner npubs. Dunno about advertising. What's your idea?

What about kind 3 (follow/contact list), kind 10002 (relay list meta) and kind 0 (profile meta) or is that assumed?

With this release kind 1 and 30023 only but might enable the ones you've mentioned.

Thanks I will try this out.

🫡

NWC could be used too as an alternative to having to top up first. But zapping the bot is quite easy!

Thanks for the suggestion! Might add that too!

moar

🫡

Awesome!

I need this as a service:

- for spinning up my own relay (+ blossom server)

- where I can set my own prices **per event kind** (and **per kb** if we're talking media)

Will put those on my todo list 🫡 Thanks!

Zaps are cool, but it would be nice to have an HTML page with a dumb form where we can request an invoice and pay.

Noted.

What happens if I pay and then someone takes my notes from other relays and throws them into this? That will exhaust my credits? The solution is to require AUTH for publishing such that only you can publish your own notes to this relay. That's built into NIP-70 which is enabled by default on khatru, you just have to require all events to have the "-" tag. Then the question becomes about how to properly publish to this relay, and then we will need some specialized clients or some special relay view section within clients with tools for publishing relay-specific notes.

Right now when I browse wss://ppe.swarmstr.com/ (by the way, it's just one click on the relay URL to browse on Gossip now) I see a bunch of notes that are replies to other notes that are outside the relay.

But it would be cool to have something like a feed of notes that people paid to publish specifically to that relay, like a privileged billboard, I don't know. Maybe you could even reorder the feed such that highest paying notes are returned first instead of the most recent -- or ranked by a combination of newest+more expensive, I don't know.

I was thinking about it extensively this morning and the only solution I came up with was to accept only "new" events eg. X seconds from created_at but this has a lot of downsides too.

Requiring auth and enforcing protected events sounds good but yeah there's the client issue.

You'd be AUTH'ing to publish a signed event, I don't see any issue there.

Twitter-like clients are not a great fit for this UX.

Community clients are. #workingonit

That's a valid point right there.

nostr:note14grygrjsmmtl75afack876f52cesd54zqqr32ms6e6ekkyk5fdqqk8rrzc

Could there be a tag that is a 1 sat note (or whatever the charge to publish fee is?). That way the relay does not need to maintain any account. A wallet external to the relay can manage that.

#PPEDesign

1st ever best PAY-PER-USE nostr relay FOSS (which have saying 2 years now that must happen)

Congrats 🥳 nostr:npub178umpxtdflcm7a08nexvs4mu384kx0ngg9w8ltm5eut6q7lcp0vq05qrg4 !!! 👏

tested - it works perfect !!! hope will improve from feedback. #relaystr #nostr another innovation

nostr:nevent1qvzqqqqqqypzpu0ekzvk6nl3ha6708jvepthez0tvvlxss2u07hhfnch5palsz7cqyghwumn8ghj7mn0wd68ytnhd9hx2tcpzamhxue69uhhwmm59eehwctjd4ehgu3wvdhk6tcqyrz5pqkxfqwf606t2rm9yyqj0s7xzw6c38q9zwc7773f98w8mngvqtazd8l