Rate limiting

Apply fail-closed limits with trustworthy subjects and explicit Redis, Prisma, or Durable Object storage.

Supported approaches

Request limits

available

Enforce policy after trustworthy identity and proxy context have been established.

Packages

@playstack/rate-limit@playstack/nest-rate-limit

Frameworks and integrations

Distributed counters

available

Choose Redis, Prisma, or Durable Objects without changing application policy.

Frameworks and integrations

framework

NestJS

Connect portable Playstack capabilities to dependency injection, guards, decorators, request context, workers, and lifecycle hooks.

integration

Redis

Use Redis for distributed caches, rate-limit counters, and BullMQ-backed jobs while keeping application policy portable.

integration

Prisma

Persist Playstack capabilities through explicit application-owned Prisma clients, transactions, and managed schema fragments.

framework

Cloudflare Workers

Run portable contracts in Web-standard runtimes with explicit Workers KV, R2, Queues and Durable Object adapters.

Package reference

@playstack/rate-limit

Policy stays portable

Subjects, windows, costs, and decisions belong to the application-facing contract. Storage adapters implement atomic counters for the runtime already in use.

Go

Playstack Pro tag
OriginsPricingBlogNewsletterChangelogStatusRoadmap
ContributorsCommunityIn Use ShowcaseCase StudiesPartnersSponsors
FAQsSupportContact

© 2026 Playstack. All rights reserved.

With OSS
Terms of ServicePrivacy PolicyCookie PolicyImprint

By

Commune Software