Deploy your own serverless Nostr relay in seconds with enterprise-grade performance, global distribution, unparalleled uptime, instant scaling, and zero maintenance overhead.
Built on Cloudflare's serverless infrastructure for unmatched performance and uptime for medium to large sized relays.
Nosflare typically costs 75-90% less than traditional relay hosting while providing global scale and zero maintenance.
Everything you need to know before running your own Nostr relay on Cloudflare.
Nosflare is a serverless Nostr relay built for Cloudflare Workers, Cloudflare D1 (SQLite at the edge) and Durable Objects. It lets anyone run a Nostr relay without a server, scaling automatically across 300+ Cloudflare edge locations. It is open source under the MIT license.
No. Nosflare Deploy is a one-click, no-code deployment for a one-time fee of 21,420 sats. It provisions a fully customized relay onto your own Cloudflare account in under a minute, and you can keep updating it afterwards at no extra cost. Developers can instead fork the repository and deploy manually.
Under one minute with one-click deploy. A manual deployment - configuring
src/config.ts, running the build, creating a D1 database, creating the Worker,
binding the database and adding a custom domain - typically takes 15 to 30 minutes the first
time.
The one-click deploy is a one-time 21,420 sats. After that you pay only Cloudflare usage for Workers, Durable Objects and D1. Nosflare typically costs 75-90% less than traditional relay hosting because it bills for use rather than for provisioned capacity.
Yes. Pay-to-relay is built in and enabled by default. You set a price in sats and an npub to receive payments; access is paid over the Bitcoin Lightning Network through Nostr zaps, and payment verification is automatic.
Nosflare supports 19 NIPs: 1, 2, 4, 5, 9, 11, 12, 13, 15, 16, 17, 20, 22, 25, 28, 33, 40, 42 and 57. NIP-50 for full-text search and NIP-65 for relay lists are on the roadmap.
A Cloudflare D1 database provides up to 10GB of storage. Nosflare uses D1 read replication to place read-only copies of the database near clients, which lowers read latency and scales read throughput.
Several independent layers: optional NIP-05 address validation with domain allow and blocklists, content hashing to reject duplicate events per-pubkey or globally, rate limiting per pubkey, blocked words and phrases, and allowlists or blocklists for pubkeys, event kinds and tags. Enabling pay-to-relay also puts a hard cost on write access.
Yes. Add wss://relay.nosflare.com to your Nostr client's relay list. It is a
live, paid instance of this relay implementation.
Yes. Nosflare is MIT licensed and available on GitHub at github.com/Spl0itable/nosflare. Issues, feature requests and pull requests are welcome.
Deploy your relay in seconds and cost-effectively scale to tens of thousands of concurrent users in an instant.