nostr relay
Project description
This is a Python 3.9+ implementation of a nostr relay.
Features
- Stores data in LMDB, SQLite or Postgresql. See Storage
- Scalable to thousands of concurrent clients
- Dynamic allow/deny lists
- Configurable garbage collector
- Configurable event validators
- Full-text indexing
- Can serve as a NIP-05 identity provider
- Support for NIP-42 authentication
- Support for rate-limiting
- Supports more NIPs than any other relay implementation:
- NIP-01 – basic protocol
- NIP-02 – contact lists
- NIP-05 – verifying identity
- NIP-09 – deletion events
- NIP-11 – relay metadata
- NIP-12 – generic tags
- NIP-15 – EOSE
- NIP-20 – command results
- NIP-26 – delegated events
- NIP-33 – parameterized replaceable events
- NIP-40 – expiration events
- NIP-42 – authentication
- NIP-50 – full-text search
- NIP-65 – Relay lists
- Pluggable features, allowing you to use nostr_relay as a library for your own custom implementation
Installation
pip install nostr-relay
To run:
nostr-relay serve
to change the location of the database and other settings, create a yaml config file that looks like this:
and run with nostr-relay -c /path/to/config.yaml serve
Then add ws://127.0.0.1:6969 to your relay list.
(obviously, in production you should use a TLS certificate)
Visit the nostr-relay fossil repository for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nostr_relay-1.14.tar.gz.
File metadata
- Download URL: nostr_relay-1.14.tar.gz
- Upload date:
- Size: 79.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a0f4b663c510170714b67a8bc6b52a8d685b95549c00ca98f1dfa5d68c53b27
|
|
| MD5 |
6ab29f5e4a06971c13cc8b6b7caa34cb
|
|
| BLAKE2b-256 |
97ec4edd2e504957337e5ba3e0e73084f95926137e9bbfe0c312cae9e2bb52b2
|
File details
Details for the file nostr_relay-1.14-py3-none-any.whl.
File metadata
- Download URL: nostr_relay-1.14-py3-none-any.whl
- Upload date:
- Size: 61.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4f401a0ae2d794298ec95623961bac6bc78e47dbc7e19a2ea71317ca338e117
|
|
| MD5 |
310ddb5230b6f015bf46d71c2799c17e
|
|
| BLAKE2b-256 |
6cc7bad749422840bb5c3287ef19ceb45d83ec4106044abd58476a231e2c83f2
|