Core Concepts
Core Concepts
Understand the domain model, entities, and relationships that power Kaiten.
Core Concepts
Kaiten models the lifecycle of managed SaaS products. Understanding the core entities and their relationships is key to using the platform effectively.
Domain Model Overview
Organization (your SaaS company)
├── Customer (your end client)
│ └── Instance (a deployment of your product)
│ ├── License (commercial plan: Starter, Pro, Enterprise)
│ │ └── Entitlement (quota, feature, or config value)
│ │ └── Usage (current consumption)
│ ├── Feature Flags (runtime feature control)
│ └── Deployment Zone (logical execution environment)
│ └── Release → Component (versioned bundles)Key Principles
| Principle | Description |
|---|---|
| Organization isolation | All data is scoped to an organization. Queries always filter by organization_id. |
| Slug-based addressing | Every entity has a unique slug per organization — used in API paths and UI navigation. |
| Event-driven | All mutations emit domain events via a transactional outbox, delivered to webhooks via Svix. |
| Dual authentication | Human users (JWT via IdP) and machine users (API tokens ksh_*) coexist with the same scope model. |
Explore Each Concept
Organizations
Multi-tenancy, isolation, and organization scope.
Customers & Instances
The customer → instance chain, slugs, and lifecycle.
Licenses & Entitlements
License types, entitlement types, and structured values.
Usage & Metering
Reporting usage, thresholds, and audit trails.
Feature Flags
Flag types, targeting rules, evaluation engine, and OpenFeature.
Releases & Deployments
Components, releases, deployment zones, and versioning.
Events & Webhooks
Transactional outbox, event catalog, and Svix delivery.
Glossary
Quick reference for all Kaiten terms.

