IsotopeKitDocs

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

PackageResponsibility
@isotopekit/authBetter Auth integration, sessions, MFA hooks
@isotopekit/identityBranding and org-type identity concerns
@isotopekit/organizationWorkspaces, members, teams, invites
@isotopekit/plansPlan catalog, entitlements, add-ons
@isotopekit/billingCheckout, subscriptions, webhooks, portal
@isotopekit/userUser 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.

On this page