Prisma

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

Visit Prisma ↗

Supported features

Authentication

Compose credentials, magic links, sessions, passkeys, MFA, and connected-provider access without handing application identity to a framework.

Email and password · Magic links · Sessions · Passkeys and MFA · Auth.js provider sign-in · OAuth connections

Accounts and tenancy

Model organizations, memberships, invitations, ownership, active-account switching, and fail-closed data scope.

Memberships and roles · Invitations · Ownership transfer · Recoverable deletion

Events and workflows

Carry typed domain events, operation context, transactional delivery, and replay-safe processing across application boundaries.

Event storage and replay

Rate limiting

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

Distributed counters

Devices and trusted sessions

Register application devices, manage push destinations, establish bounded trust, and revoke device-backed access from one explicit identity boundary.

Device registration and inventory · Push destinations · Trusted-device sessions

Billing and entitlements

Synchronize subscription state, project purchased access into stable grants, and enforce capabilities without scattering plan-name checks through application code.

Subscription lifecycle · Entitlement projection · Request enforcement · No-card product trials · Billing operations

API keys and audit trails

Issue scoped machine credentials, authenticate them at the server boundary, and record security-relevant actions without turning logs into policy.

API key lifecycle · Structured audit recording

Commerce

Compose server-authored products, one-time checkout, finite stock, immutable orders, and physical fulfillment without turning one provider into the domain model.

Catalog and quotes · One-time checkout · Refunds and reconciliation · Physical fulfillment

Notifications and delivery

Define typed notifications, resolve recipient preferences, deliver across explicit channels, and retain one provider-independent history of every send.

In-app inbox · Delivery history and feedback

Audiences and subscriber lifecycle

Build waitlists, newsletters, release lists, and preference centers with explicit consent, segmentation, confirmation, and delivery boundaries.

Subscription lifecycle · Consent and preferences · Segmentation

Webhooks

Verify provider requests from raw bytes, claim events transactionally, enqueue normalized work exactly once, and keep provider parsing outside domain handlers.

Transactional receipt claims

Licensing

Issue signed licenses, activate device-bound seats, verify access offline, rotate refresh credentials, and revoke grants without coupling product policy to the token protocol.

Issuance and activation · Refresh and revocation · Entitlement projection

Package reference

@playstack/accounts

The application owns the client

Prisma adapters receive an existing client or transaction handle. Playstack does not create hidden global connections or take ownership of application migrations.

Keep transactions aligned

Capabilities that require atomic state and Tier 1 events expose transaction-kind requirements so persistence and event delivery can commit together.

Materialize package-owned schema

Packages with managed Prisma fragments publish database-schema artifacts alongside structurally typed persistence adapters. playstack database sync copies those fragments into the application's named Prisma target; the application reviews the result, owns migrations, and supplies its existing client or transaction at runtime.

The current commerce and licensing schema surfaces include catalog, payments, inventory, commerce orders, fulfillment, and license issuance. Run playstack database compatibility before synchronization when an existing application schema may already satisfy those contracts.

Preserve supported application versions

Playstack supports multi-file schema artifacts with Prisma >=6.7.0 <8. Prisma 6 and Prisma 7 have separate verification coverage, and adoption preserves the application's installed major, generator provider, client output, and migration ownership. A version change is an explicit application operation rather than a side effect of adding a capability.

Compatibility checks inspect the complete datasource-bearing schema folder. An empty or nested target that excludes the configured schema entry fails closed instead of reporting a false compatible result.

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