What is SuperTokens Core
Architecture (Overall)
SuperTokens implements a three-tier architectural design.
graph LR
FrontendSDK["Frontend SDK"] <-- Frontend Driver Interface (FDI) --> BackendSDK["Backend SDK"]
BackendSDK <-- Core Driver Interface (CDI) --> Core["Core"]
style FrontendSDK fill:#faedcd,stroke:none,rx:10,ry:10
style BackendSDK fill:#caf0f8,stroke:none,rx:10,ry:10
style Core fill:#ccd5ae,stroke:none,rx:10,ry:10
The Core component serves as the foundational layer that provides essential functionality to the Backend SDK. The interaction between these components is governed by the Core Driver Interface (CDI), which is implemented as an OpenAPI/Swagger specification defining the REST APIs exposed by the Core.
Building blocks
The Core component comprises several key internal components that deliver essential functionality:
| Component | Description |
|---|---|
| API Endpoints | RESTful interfaces for external communication |
| Cron Tasks | Automated background processes |
| Storage Layer | Data persistence management |
| Configuration | System behavior customization |
| Multitenancy | Tenant hierarchy management |