Welcome

Intent turns event-sourcing theory into a platform you can demo in five minutes. It's a pragmatic, ports-first reference for multi-tenant, event-sourced CQRS back-ends powered by TypeScript and uses Temporal for durable workflow execution.

Highlights

Lossless backend processing

Event-sourced core guarantees no data loss, even under retries, crashes, or partial failures. Structure follows DDD. Every command, event, and projection is persisted and replayable.

Ports-first hexagon

Technology-agnostic core logic. Adapters for PostgreSQL (event store + RLS) and Temporal (workflows) plug in via explicit, testable ports.

Tenant isolation by default

Tenant IDs propagate edge → core → infra. Row isolation in DB and namespaced workflows prevent accidental cross-tenant access or leaks.

End to end observability

Unified structured logging with context-aware LoggerPort, customizable log levels, and error serialization. OpenTelemetry spans wrap all key flows.