No description
Find a file
2023-02-17 12:06:07 +02:00
static fix: cal correct action 2023-02-16 17:54:11 +02:00
templates/nostrrelay feat: partial AUTH support 2023-02-14 17:26:40 +02:00
tests feat: finish NIP16 2023-02-17 09:55:23 +02:00
.gitattributes feat: ignore some files from release export 2023-02-13 16:44:23 +02:00
.gitignore feat: handle tags 2023-01-30 17:56:12 +02:00
__init__.py chore: code format 2023-02-13 14:41:33 +02:00
client_manager.py feat: finish NIP16 2023-02-17 09:55:23 +02:00
config.json feat: extracted 2023-01-30 14:40:55 +02:00
crud.py feat: differentiate between publisher and author 2023-02-17 09:38:49 +02:00
helpers.py chore: code format 2023-02-15 10:49:36 +02:00
LICENSE Initial commit 2023-01-27 14:36:27 +00:00
manifest.json Added manifest 2023-01-31 13:48:33 +00:00
migrations.py feat: differentiate between publisher and author 2023-02-17 09:38:49 +02:00
models.py feat: finish NIP16 2023-02-17 09:55:23 +02:00
README.md doc: add Config 2023-02-17 12:06:07 +02:00
tasks.py chore: code format 2023-02-16 14:19:21 +02:00
views.py chore: mypy fixes 2023-02-15 18:18:46 +02:00
views_api.py chore: code format 2023-02-16 14:19:21 +02:00

Nostr Relay

One click and spin up your own Nostr relay. Share with the world, or use privately.

Usage

Install this extension into your LNbits instance. ....

Supported NIPs

  • NIP-01: Basic protocol flow
  • NIP-02: Contact List and Petnames
    • kind: 3: delete past contact lists as soon as the relay receives a new one
  • NIP-04: Encrypted Direct Message
    • if AUTH enabled: send only to the intended target
  • NIP-09: Event Deletion
  • NIP-11: Relay Information Document
  • NIP-12: Generic Tag Queries
    • todo
  • NIP-15: End of Stored Events Notice
  • NIP-16: Event Treatment
    • Regular Events
    • Replaceable Events
    • Ephemeral Events
  • NIP-20: Command Results
    • todo: use correct prefixes
  • NIP-22: Event created_at Limits
  • NIP-26: Delegated Event Signing
    • not planned
  • NIP-28 Public Chat
    • kind: 41: handled similar to kind 0 metadata events
  • NIP-33: Parameterized Replaceable Events
    • todo
  • NIP-40: Expiration Timestamp
    • todo
  • NIP-42: Authentication of clients to relays
    • todo: use correct prefix
  • NIP-50: Search Capability
    • todo

Usage

Create Relay

Creating a new relay is straightforward. Just click New Relay then enter the Relay Info.

Note

The relay can be activated/deactivated.

image

Configure Relay

Find your Relay in the list and click the expand button (+) to configure it.

Relay Info This tab contains data according to NIP-11 (Relay Information Document).

Note

: the domain is added automatically and shoud be corrected manually if needed. This value is used for NIP-42 (Authentication of clients to relays)

  • image

Payment

By default the relay is free to access, but it can be configured to ask for payments. It is encourage to also activate the Require Auth option for paid relays.

Note

: check the info button (I) tooltip for a description of each field.

  • image

Click on the Relay ID (or visit https://{your_domain}/nostrrelay/${relay_id}) for the Relay public page. Here the entry and storage fees can be paid.

  • image

Config Configure NIP-22 (Event created_at Limits), NIP-42 (Authentication of clients to relays) and other Relay parameters. Some configurations are not standard (NIPs) but they help control what clients are allowed to do, thus blocking (some) attack vectors.

  • image

Development

Create Symbolic Link:

ln -s /Users/my-user/git-repos/nostr-relay-extension/ /Users/my-user/git-repos/lnbits/lnbits/extensions/nostrrelay