Events and operations
Domain events, event sourcing, rate limiting, analytics, persistence bridges, and framework delivery.
These packages connect work happening inside a capability to persistence, queues, projections, analytics destinations, and request-level enforcement without making those outside systems part of the domain contract.
Events and event storage
| Package | Plan | Responsibility |
|---|---|---|
@playstack/events | Typed in-process domain events and Bridge seams. | |
@playstack/events-prisma | Transactional Postgres outbox for Prisma applications. | |
@playstack/nest-events | NestJS lifecycle and queue delivery bindings. | |
@playstack/event-store | Event sourcing, upcasting, projections, and checkpoints. | |
@playstack/nest-event-store | Thin NestJS wiring for event-store services. |
Enforcement and measurement
| Package | Plan | Responsibility |
|---|---|---|
@playstack/rate-limit | Portable token-bucket policy and atomic storage contract. | |
@playstack/rate-limit-redis | Atomic Redis rate-limit storage. | |
@playstack/rate-limit-prisma | Postgres and Prisma rate-limit storage. | |
@playstack/rate-limit-do | Cloudflare Durable Object rate-limit storage. | |
@playstack/nest-rate-limit | NestJS policy declarations, guards, and headers. | |
@playstack/analytics | Consent-aware analytics fan-out and provider capabilities. | |
@playstack/analytics-react | React consent controls and route tracking. | |
@playstack/nest-analytics | Queued NestJS delivery for server analytics. | |
@playstack/feedback | Durable intake for CLI feedback and failed-command reports. | |
@playstack/nest-feedback | NestJS route for the anonymous feedback intake. |
Composition rule
Domain packages publish events through explicit Bridge seams. Applications decide whether an event stays in-process, enters an outbox, becomes a queued job, updates a projection, or fans out to analytics.