Skip to content

Implement Retention Policies from NIP-11a #205

Closed

Description

@cameri

Is your feature request related to a problem? Please describe.
Implement retention policies.

Describe the solution you'd like
Allow relay operator to configure the retention policy in time or count of events per kind or kind ranges.
Display retention policy in relay information document as per NIP-11a.

Additional context
https://github.com/nostr-protocol/nips/pull/163/files#diff-e2738305ed5e49cb3b4cb1295e8028c000b203b4e74a4c5fe599dc884e7a92d3R116

Activity

  1. self-assigned this
    on Feb 15, 2023
  2. a-khushal commented on Apr 19, 2026

    @a-khushal
    Contributor

    @cameri can i work on this issue?

  3. cameri commented on Apr 19, 2026

    @cameri
    OwnerAuthor

    @a-khushal so NIP 11a was closed. What we need to ensure now is compliance with NIP-11 which looks like it has diverged from our implementation.

    See https://github.com/nostr-protocol/nips/blob/master/11.md

    Are you interesting in bringing NIP-11 support to parity with the spec?

  4. a-khushal commented on Apr 19, 2026

    @a-khushal
    Contributor

    @a-khushal so NIP 11a was closed. What we need to ensure now is compliance with NIP-11 which looks like it has diverged from our implementation.

    See https://github.com/nostr-protocol/nips/blob/master/11.md

    Are you interesting in bringing NIP-11 support to parity with the spec?

    @cameri yes, I am interested in integrating NIP-11 to nostream

  5. a-khushal commented on Apr 20, 2026

    @a-khushal
    Contributor

    @cameri quick question about nip-11 default_limit.

    right now relay uses 500 when client does not send a limit. for this parity, do you recommend it to be a constant, or a setting, or removed unless configurable? i think constant is the best behaviour for now

  6. cameri commented on Apr 21, 2026

    @cameri
    OwnerAuthor

    let's go with constant

  7. cameri commented on Apr 21, 2026

    @cameri
    OwnerAuthor

    Thank you @a-khushal !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions