---
title: "Nosflare - Next-Gen Serverless Nostr Relay"
description: "Nosflare is a serverless Nostr relay built for Cloudflare Workers, D1 SQLite, and Durable Objects. Deploy your own relay in under a minute with one click."
url: "https://nosflare.com"
canonical: "https://nosflare.com/"
source_code: "https://github.com/Spl0itable/nosflare"
live_relay: "wss://relay.nosflare.com"
license: "MIT"
last_updated: "2026-08-28"
---

# Nosflare - Next-Gen Nostr Relay

**Nosflare is a serverless [Nostr](https://github.com/nostr-protocol/nips) relay purpose-built for [Cloudflare Workers](https://workers.cloudflare.com/), [Cloudflare D1](https://developers.cloudflare.com/d1/) (SQLite at the edge), and [Durable Objects](https://developers.cloudflare.com/durable-objects/).** It runs with no servers to manage, scales instantly, replicates globally, and typically costs 75-90% less than traditional relay hosting.

- **Website:** https://nosflare.com
- **Live relay:** `wss://relay.nosflare.com`
- **One-click deploy:** https://deploy.nosflare.com (one-time 21,420 sats)
- **Source code:** https://github.com/Spl0itable/nosflare (MIT licensed)
- **Maintained by:** [21 Million LLC](https://nostrservices.com)
- **Contact (Nostr):** `npub16jdfqgazrkapk0yrqm9rdxlnys7ck39c7zmdzxtxqlmmpxg04r0sd733sv`

## What is Nosflare?

Nostr is a decentralized social protocol in which clients publish signed events to relays, and relays store and rebroadcast those events. A relay is the piece of infrastructure that makes the network work.

Traditionally, running a relay means renting a VPS, installing a relay implementation, managing a database, monitoring uptime, and paying for capacity you mostly do not use. Nosflare replaces all of that with Cloudflare's serverless platform: Workers for compute, D1 for storage, and Durable Objects for long-lived WebSocket connections. There is no server to patch, no capacity to provision, and no fixed monthly bill.

## Key facts

| Property | Value |
| --- | --- |
| Relay type | Serverless Nostr relay |
| Platform | Cloudflare Workers |
| Database | Cloudflare D1 (SQLite at the edge) |
| Storage limit | 10 GB per D1 database |
| WebSockets | Durable Objects with Hibernation API |
| Durable Objects mesh | 9 regions, multi-regional broadcast |
| Read replication | D1 Session API global read replicas |
| Edge locations | 300+ Cloudflare locations |
| Typical global latency | Under 50 ms |
| Uptime target | 99.9% |
| Supported NIPs | 19 (see [NIPs](https://nosflare.com/docs/supported-nips.md)) |
| Payments | Bitcoin Lightning via Nostr zaps (NIP-57) |
| Deploy time | Under 1 minute |
| One-click deploy price | 21,420 sats (one-time) |
| License | MIT |

## Features at a glance

1. **One-click deploy** - No coding required. A relay of your own in under 60 seconds, on your own Cloudflare account.
2. **Global edge network** - 300+ Cloudflare edge locations, automatic scaling, no capacity planning.
3. **Real-time WebSockets** - Durable Objects hold persistent connections; a multi-regional mesh broadcasts new events without a single-location bottleneck.
4. **Pay-to-relay** - Charge for write access in sats, paid over Lightning through Nostr zaps, with automatic payment verification.
5. **Advanced anti-spam** - Content hashing, NIP-05 verification, rate limiting, word/phrase blocking, and pubkey/kind/tag allowlists and blocklists.
6. **SQLite storage at the edge** - D1 with global read replicas: local read performance, global consistency, 10 GB per database.

Details: [Features](https://nosflare.com/docs/features.md)

## Documentation (Markdown, agent-friendly)

- [Overview](https://nosflare.com/docs/overview.md) - what Nosflare is and how it is architected
- [Features](https://nosflare.com/docs/features.md) - full feature list with configuration keys
- [Deployment](https://nosflare.com/docs/deployment.md) - one-click and manual deployment guides
- [Supported NIPs](https://nosflare.com/docs/supported-nips.md) - the 19 NIPs Nosflare implements
- [Pay-to-relay](https://nosflare.com/docs/pay-to-relay.md) - Lightning monetization
- [Anti-spam](https://nosflare.com/docs/anti-spam.md) - spam filtering mechanisms
- [Pricing](https://nosflare.com/docs/pricing.md) - cost model and comparison
- [FAQ](https://nosflare.com/docs/faq.md) - frequently asked questions

Machine-readable index: [llms.txt](https://nosflare.com/llms.txt) - full corpus: [llms-full.txt](https://nosflare.com/llms-full.txt)

## Get started

- **Non-technical:** go to https://deploy.nosflare.com and pay the one-time 21,420 sat setup fee. Your relay is deployed to your own Cloudflare account, and you can keep updating it afterwards at no extra cost.
- **Technical:** fork https://github.com/Spl0itable/nosflare, edit `src/config.ts`, run `npm run build`, and deploy the bundled `worker.js` to a Cloudflare Worker bound to a D1 database. See [Deployment](https://nosflare.com/docs/deployment.md).
- **Just want to use a relay:** add `wss://relay.nosflare.com` to your Nostr client's relay list.
