minimal

command
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Minimal relay example.

A functional Nostr relay with in-memory storage, real-time event routing, and basic middleware. Events are stored in memory and routed between connected clients.

Note: InMemoryStorage has no size limit and is not persistent. For production use, see the kitchen-sink example which uses PebbleStorage.

Usage:

go run ./cmd/examples/minimal

Environment variables:

ADDR - listen address (default ":7447")

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL