Powered by Cloudflare Edge Network

Next-Gen Nostr Relay

Deploy your own serverless Nostr relay in seconds with enterprise-grade performance, global distribution, unparalleled uptime, instant scaling, and zero maintenance overhead.

< 50ms
Global Latency
99.9%
Uptime SLA
300+
Edge Locations
19
NIPs Supported

Enterprise Features, Zero Complexity

Built on Cloudflare's serverless infrastructure for unmatched performance and uptime for medium to large sized relays.

One-Click Deploy

No coding required. Deploy your own custom Nostr relay in under 60 seconds with our automated deployment system. Full customization without touching a single line of code.

Global Edge Network

Leverage Cloudflare's 300+ edge locations worldwide. Your relay automatically scales and replicates data globally for lightning-fast performance anywhere.

Real-time WebSockets

Powered by Durable Objects for persistent WebSocket connections. Instant event broadcasting with multi-regional mesh network for enhanced throughput.

Pay-to-Relay

Built-in Lightning Network payments via Nostr zaps. Monetize your relay with customizable pricing and automatic payment verification.

Advanced Anti-Spam

Multi-layer spam protection with content hashing, NIP-05 verification, rate limiting, and customizable blocklists. Keep your relay clean automatically.

SQLite Storage

SQLite at the edge with D1 database and automatic read replicas. Global consistency with local performance. D1 provides 10GB storage limit.

Technical Specifications

Nosflare typically costs 75-90% less than traditional relay hosting while providing global scale and zero maintenance.

Supported NIPs
19
Database
D1 SQLite Edge
WebSocket
Durable Objects
Replication
Global Read Replicas
Storage
10GB Limit
Workers
Instant Scaling
Payments
Lightning Zaps
Deployment
< 1 Minute

Frequently Asked Questions

Everything you need to know before running your own Nostr relay on Cloudflare.

What is Nosflare?

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.

Do I need to know how to code to run a Nostr relay with Nosflare?

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.

How long does it take to deploy a Nosflare relay?

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.

How much does it cost to run a Nosflare relay?

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.

Can I charge people to use my relay?

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.

Which NIPs does Nosflare support?

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.

How much data can a Nosflare relay store?

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.

How does Nosflare stop spam?

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.

Can I try a Nosflare relay without deploying one?

Yes. Add wss://relay.nosflare.com to your Nostr client's relay list. It is a live, paid instance of this relay implementation.

Is Nosflare open source?

Yes. Nosflare is MIT licensed and available on GitHub at github.com/Spl0itable/nosflare. Issues, feature requests and pull requests are welcome.

Ready to Deploy Your Relay?

Deploy your relay in seconds and cost-effectively scale to tens of thousands of concurrent users in an instant.