Introduction
Turn a DMS project into a SaaS, with self-service sign-up, plans, Stripe billing, workspace settings and a back office for the platform owner.
@antelopejs/dms-saas turns a multi-tenant DMS project into a product people can sign up for and pay. It adds public sign-up and pricing screens, a plan catalogue whose permissions cap what each workspace can do, Stripe subscriptions and invoices, workspace settings for customers, and a back office where the platform owner runs the business.

What it brings
Self-service sign-up
Pricing, registration with an optional card, legal pages, and a completion screen for OAuth sign-ins.
Plans that gate features
Plans list the permissions a workspace gets, with features, limits, trials and seat pricing.
Start with one free workspace
A first integration aims at one result. A visitor registers, lands in a workspace on your free plan, and sees the permissions that plan grants.
Installation covers the module, the Stripe keys and an active free plan open to individuals. For a local trial without Stripe, placeholder Stripe keys are enough. Registration then takes no card, whatever registration.paymentMethod says, and the registration screen drops its card step once it has loaded the plan. A test account registered at /register then shows the free plan, without a Stripe customer, in Settings › Workspace › Billing. Paid plans come after that. Stripe explains checkout, webhook setup and price synchronization.
The playground already holds sample customers and billing records. It shows every screen, but its Stripe IDs are fake, so it does not prove a payment flow.
Who uses each surface
| Who | Where | What they do |
|---|---|---|
| Visitors | /pricing, /register, /auth/no-workspace, legal pages | Compare plans, create an account and its first workspace |
| Workspace owners and members | Settings › Workspace (General, Members, Billing, Data export) and the workspace switcher | Rename the workspace, manage seats, change plan, pay, export data |
| Platform owner | Modules › SaaS (/modules/saas/...) | Follow revenue, manage workspaces and plans, configure billing rules and legal documents |
How plans gate the product
Each workspace holds one subscription to a plan, and a plan lists permission IDs. For every member, the dms-saas.plan-intersection resolver keeps only the permissions that the plan grants. It gives the workspace owner every permission of the plan. Once the catalogue has a free plan, a workspace never stays without a plan, because the module attaches the default free plan to any workspace without a subscription. See Extending.
The module builds on the core DMS multi-tenancy. Read SaaS mode in the core documentation for the tenant model it extends.