selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitLab

Self-host Ephemerelay

Ephemeral Nostr relay that forgets the past instantly

BetaOpen Sourceunlicense
curl -fsSL https://deno.land/install.sh | sh
Updated3 years ago
Setup difficultyEasy
Port
5000 (WebSocket/HTTP port the relay server listens on)
Requires
Deno

What is Ephemerelay?

Ephemerelay is a Nostr relay written in roughly 100 lines of TypeScript for Deno that keeps nothing: any subscription immediately receives EOSE and then only live events that match the filter, and submitted events go only to clients connected at that moment. Because there is no database, operators do not worry about storage, spam or cost, which makes it suited to chatting with friends who are online or to feeding events onward to fully-persistent relays. It implements NIP-01, NIP-15 and NIP-20, parses EVENT, REQ and CLOSE messages, and checks event signatures. Running it means cloning the repository and starting the server with Deno; a production install adds a systemd unit and an nginx WebSocket proxy, and the project publishes no container image. Development appears dormant, with the last recorded activity in July 2023.

Ephemerelay alternatives

Should you self-host Ephemerelay?

Ephemerelay scores 47/100 on selfhost.directory (how scoring works) and ranks #30 of 34 in Communication.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is easy: most people get it running in one sitting. It is unlicense-licensed.

Its closest alternative on selfhost.directory is Jitsi Meet (79/100, 30 279 stars). It scores higher overall, so compare the two before you pick. See Ephemerelay vs Jitsi Meet side by side.

Features

  • Ephemeral events only
  • Event signature verification
  • Immediate EOSE for subscriptions
  • Live client distribution
  • Nostr Relay
  • WebSocket transport

How to install Ephemerelay

Install Ephemerelay with Deno

Deno
# Install Deno
curl -fsSL https://deno.land/install.sh | sh

# Clone repo
git clone https://gitlab.com/soapbox-pub/ephemerelay.git
cd ephemerelay

# Run server
deno task dev

Local development workflow.

More in Communication

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…