Skip to content

Organizations

Source-backed example app: examples/organizations/

Use this example when an app needs tenant-owned workspaces with membership roles and invitation flows. It layers slingshot-organizations on top of auth and keeps all storage in memory so the example can boot without infrastructure.

  • createOrganizationsPackage() with organization routes enabled
  • custom membership role vocabulary through knownRoles
  • default member role configuration
  • app-specific reserved slugs
  • group management route configuration
  • examples/organizations/src/index.ts
  • examples/organizations/app.config.ts

Keep reservedSlugs aligned with your public routes before launch. Slug collisions are intentionally rejected with typed conflicts so user-created organizations cannot shadow reserved app paths such as admin, api, or billing.