Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat(payments): per-plan event rate limits and retention

Aperta
#921 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Priyanshubhartistm ci sta già lavorando.

Dal 21/10/2026.

  • #922 di @Priyanshubhartistm — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement

Is your feature request related to a problem? Please describe.
Rate limits (limits.event.rateLimits) and retention (limits.event.retention) are global, so a paying subscriber on a premium plan gets the same limits as everyone else. Tiered access (#673) needs these to depend on the sender's active plan.

Describe the solution you'd like

  • Plans can define their own event rate limits; EventMessageHandler.isRateLimited uses the plan's set for a subscriber and the global set otherwise, keyed the same way as today.
  • Plans can define their own retention (maxDays); the maintenance purge applies it per subscriber instead of one global value, keeping the existing kind/pubkey whitelists.
  • The plan lookup reuses the admission cache so no extra database read happens per event.
  • Documentation in CONFIGURATION.md and tests for both limit paths, including expiry falling back to the global limits.

Additional context

  • Design: #673. Per-plan connection/subscription-count limits are more invasive (adapter level) and left for a follow-up unless maintainers want them here.
Lingua principale
TypeScript
Stelle
829
Fork
234
Merge medio
17h 40m
PR unite (30g)
90

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cameri/nostream

Tutte le issue di cameri/nostream

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.