kitchen-sink

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: 13 Imported by: 0

Documentation

Overview

Kitchen-sink relay example.

A full-featured Nostr relay demonstrating every mocrelay component: persistent storage (Pebble), full-text search (Bleve + CJK), all middleware, Prometheus metrics, and HTTP multiplexing.

Since mocrelay.Relay implements http.Handler, it composes naturally with net/http.ServeMux for health checks, metrics, and other endpoints.

Usage:

go run ./cmd/examples/kitchen-sink

Environment variables:

ADDR     - listen address (default ":7447")
DATA_DIR - data directory for Pebble and Bleve (default "data")

Jump to

Keyboard shortcuts

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