Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#921 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Priyanshubhartistm がすでに取り組んでいます。

2026年10月21日 から。

  • #922 @Priyanshubhartistm による — オープン

評価

この issue はまだ評価されていません。

説明

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.
主要言語
TypeScript
スター
829
フォーク
234
平均マージ
15時間 58分
マージ済み PR(30日)
73

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cameri/nostream のほかの issue

cameri/nostream の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。