The Core Engine

@packages/core

System Logic

The Core Engine contains all business logic modules shared across the ecosystem. Strict adherence to Sovereign OS principles ensures type-safety and predictable behavior.

Resources

STANDARD
PILLAR: ORACLE

Universal Resource Engine for managing assets across all applications. Handles media interactions and optimized delivery.

Type-safe contractsGeneric metadataStatus management+more
Default Adapter
Supabase Postgres
Contracts

IAM

STANDARD
PILLAR: SENTINEL

Identity Access Management. Handles Authentication, Authorization (Casbin PBAC), and Session Security.

AuthenticationCasbin Policy EnginePBAC/RBAC+more
Default Adapter
Supabase Auth / Casbin
Contracts

Tenant

STANDARD
PILLAR: GATEKEEPER

Multi-tenancy context resolver. Ensures strict data isolation and config resolution per organization.

Context ResolutionConfig InjectionIsolation Enforcement+more
Default Adapter
Postgres RLS
Contracts

Storage

PILLAR: WAREHOUSE

Abstracted file management system. Provides secure, pre-signed upload URLs and CDN integration.

Upload handlingCDN integrationMetadata extraction+more
Default Adapter
Supabase Storage
Contracts

Media

PILLAR: WAREHOUSE

Advanced media processing pipeline. Image optimization, video transcoding, and asset variants.

OptimizationTranscodingThumbnail Gen+more
Default Adapter
Edge Functions
Contracts

Events

STANDARD
PILLAR: MESSENGER

System-wide Event Bus contracts. Defines Domain Events for loose coupling between modules.

Domain EventsIntegration EventsAsync patterns+more
Default Adapter
Supabase Realtime
Contracts

Security

STANDARD
PILLAR: SENTINEL

Cryptographic utilities and threat mitigation. Encryption, Hashing, and Input sanitization protocols.

EncryptionHashingSanitization+more
Default Adapter
Web Crypto API
Contracts

Observability

STANDARD
PILLAR: WATCHTOWER

Telemetry and Tracing contracts. Standardizes logs, metrics, and traces across the ecosystem.

Pino LoggerStructured LogsPerformance Tracing+more
Default Adapter
Pino / OpenTelemetry
Contracts

Expanding Ecosystem

Modules for Observability, Events, and Notifications are currently in the architectural review phase.