After the next update, it'll adopt an open protocol and include self-hostable lightweight relays for a distributed, decentralized network.
quoting##### Why is zPay v4v & Other Related Features Taking So Long?
nevent1qā¦96vy
Itās not just because Iām lazyāthough I am. š But because I want this to be truly open, permissionless, decentralized, and distributed. Not just another closed app, but an open protocol.
##### Why Not Just Use the Nostr Protocol and Its Relays?
While Nostr was a good option, zPayās no-database, serverless architecture opened up the potential for something new and purpose-built.
---
##### Introducing zPay Serverless Relay (Under Development)
Instead of a conventional backend, Iām turning the zPay ābackendā into a ridiculously lightweight serverless relay.
###### I know āself-hostā might sound a bit intimidating, but hear me out.
Donāt compare āzPay Serverless Relayā self-hosting with Nostr relay hosting, or even with setups like LNbits or BTCPay Server. Itās not even close, or fair.
- Ridiculously lightweight & fast
- Free & one-click serverless self-hosting
- Built-in auto-scaling with a robust rate-limiter
---
###### Putting It in Perspective:
Even if your self-hosted zPay serverless relay serves tens of thousands of daily users, executing over 10 million transactions per month, you likely wouldnāt pay a penny (bonus: up to 50M+ transactions/month with AWS Lambda).
---
##### Replacing the Database with the URL
Instead of a centralized database, all necessary parameters are packed directly into the original URL and QR code. This includes:
- Encrypted content (`cn`)
- Creatorās Lightning address (`ln`)
- Optional unlock price (`pr`)
All of these are cryptographically signed.
With these parameters (`cn`, `ln`, and `pr`), the zPay relay initiates payment, verifies it, decrypts, and delivers content after successful verification.
This creates a distributed, tamper-proof system without a database. The only trade-off? Long URLs, but this is easily managed with zPayās built-in URL shortener proxy. Short URLs simply redirect to the original URL with all parameters visible in the browser.
---
##### zPay Relay Core Features
Beyond paywalled URLs, zPay provides core building blocks to craft nearly any kind of Lightning integration.
###### Core Features Include:
- URL package generation with cryptographic signatures
- URL integrity checks
- Lightning invoice creation
- Real-time payment verification
- Content encryption/decryption
- Auto-delivery after payment
- Custom triggers upon invoice settlement
These core features are fully customizable and adaptable to a wide range of needsāfrom paying for digital and physical products to content access or even paid AI services. zPay relay is designed to make these integrations easy.
---
##### Summary
Instead of a closed app, zPay will be an open protocol supported by distributed, lightweight relays. Itās fast, lightweight, free, and simple to self-host, with built-in auto-scaling and rate limiting, so you can focus on building new ideas.
The zPay serverless backend becomes a self-hostable relay with features like invoice generation, payment verification, encryption/decryption, and custom triggers on payment settlement.
It operates at nearly zero cost, even for tens of thousands of users or 10M+ transactions per month (up to 50M+ with AWS Lambda). Thereās no need for a 24/7 live serverāitās serverless, with built-in auto-scaling to handle spikes and a reasonable rate-limiting system.