About nostrfy

An all-in-one Nostr relay server engine

nostrfy is a relay server for the Nostr protocol, written in Rust. It stores events sent by clients (Amethyst, Damus, Iris and others) and delivers them in response to subscriptions — at a fraction of the resources a typical relay needs.

The project started as an experiment: what if a relay could be specified by a single config file, run on the smallest server you can rent, and still implement every relay-side NIP — plus a file server, a REST API and a management interface? nostrfy is the result, and it is free: released under the MIT license.

nostrfy runs the official relay of the project, and the same binary has been verified on Linux (x86_64 and aarch64) and FreeBSD, from a 512 MB VPS to single hosts serving hundreds of thousands of connections.

Never goes down

Overload protection, dedicated reader threads, panic containment and strict resource bounds. A relay only matters if it is up.

Spec-complete

Every relay-side NIP implemented and verified against the official specifications — including search, groups, media and a management API.

One binary

A single static Rust binary does everything: relay, REST API, Blossom file server, NIP-86 management, daemon, log rotation and statistics.

Lean by nature

A 0.25 vCPU / 512 MB VPS runs it comfortably. The LMDB map is a sparse virtual reservation; memory stays flat as the database grows.