Domain packages
Auth, identity, organizations, plans, billing, and user domain services.
Domain packages live under packages/domain/*. They own business rules for the SaaS product.
Packages
| Package | Responsibility |
|---|---|
@isotopekit/auth | Better Auth integration, sessions, MFA hooks |
@isotopekit/identity | Branding and org-type identity concerns |
@isotopekit/organization | Workspaces, members, teams, invites |
@isotopekit/plans | Plan catalog, entitlements, add-ons |
@isotopekit/billing | Checkout, subscriptions, webhooks, portal |
@isotopekit/user | User profile and account domain logic |
Notes
- Bill the organization, not only the person — org-scoped billing is the default model.
- Plans and entitlements are data (JSON catalog + merge at runtime), not hardcoded UI tiers.
- Auth flows (sign-in, reset, invite) should stay wired through the auth/identity packages.