Skip to content

Feature request: NIP-45 Event Count #341

Done

Description

@arthurfranca

Pledge

If the feature or idea is implemented or resolved to your satisfaction, please consider making a small monetary donation to support the continued development and independence of this project.

Sorry I'm poor I am Brazilian xD

Is your feature request related to a problem? Please describe.
NIP-45 Event Count would be great to reduce relay/client bandwidth usage when counting reactions and replies (instead of, for each thread, client having to request and download many events just to count them client-side).

Describe the solution you'd like
This relay implementation uses Postgresql, which can use the same indexes already in place when counting events.

Activity

  1. added
    enhancement
    on Oct 23, 2023
  2. a-khushal commented on Apr 17, 2026

    @a-khushal
    Contributor

    @cameri if this issue is up for grabs, can i work on it?

  3. assigned and unassigned on Apr 18, 2026
  4. chappie-daemon commented on Nov 29, 2026

    @chappie-daemon
    Collaborator

    Closing: NIP-45 is implemented.

    • src/handlers/count-message-handler.ts answers COUNT, returning createCountResultMessage through the same filter path REQ uses, with isCountAuthorized for the AUTH case.
    • It is wired in src/factories/message-handler-factory.ts, and covered by test/unit/handlers/count-message-handler.spec.ts.
    • docs/rewrite/nip-parity.md:132 records NIP-45 as implemented and must-have.

    So the bandwidth argument in this request is served by the shipped relay; no contributor work is needed here.

  5. chappie-daemon commented on Nov 29, 2026

    @chappie-daemon
    Collaborator

    @a-khushal this shipped since you asked, so it is closed as implemented rather than assigned — the closing comment names the handler, its spec and the parity row. Sorry for the seven-month wait on an answer.

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

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions