Run Your Own Nostr Relay
in One Line

Zero config. Pure JavaScript. Works everywhere.

Get Started in 10 Seconds

npx fonstr
That's it. Your relay is live at ws://localhost:4444/relay

No installation. No dependencies. No configuration. Just works.

📱 On Android? See our step-by-step mobile guide instead

<90s
Install on Android
~3s
Startup Time
1,500+
Requests/Second
0
Configuration Files

Why Choose fonstr?

📱

Works on Your Phone

Run a Nostr relay on Android with Termux. Under 90 seconds from zero to running. No other relay can do this.

📖 Beginner's Guide →

Zero Config

One command and you're done. No config files, no setup scripts, no documentation to read. It just works.

🌐

Web Server Included

Not just a relay. Serve your landing page, build APIs, host static files. Full web server built-in.

🔌

NIP Compliant

NIP-01 (core protocol), NIP-11 (relay info), NIP-98 (HTTP auth). Event filtering, subscriptions, real-time updates.

🚀

Pure JavaScript

No native modules, no compilation, no build tools. Works on Windows, macOS, Linux, Raspberry Pi, and phones.

🔒

Production Ready

HTTPS/WSS support, rate limiting, memory protection. Scale to thousands of connections with confidence.

Quick Examples

Basic
📱 Android
Custom Port
With Landing Page
Production

Basic Relay (10 seconds)

# Run on default port 4444
npx fonstr

# Done! Your relay is live at:
# - Nostr relay: ws://localhost:4444/relay
# - Web server: http://localhost:4444

Ready to Run Your Own Relay?

Join the decentralized web. One command away.

npx fonstr
⭐ Star on GitHub