Revqora CRM foundation

A TypeScript modular monolith scaffold for the authenticated CRM, public ingestion paths, and founder onboarding work that follows.

Module boundaries

Auth

Clerk identity mapping plus Revqora authorization entry points.

Workspace

Workspace ownership, memberships, roles, and onboarding state.

Contacts

Customers, accounts, identities, traits, notes, and tags.

Events

Event ingestion, validation, normalization, and raw event storage.

Lifecycle

Lifecycle stages, stage history, founder defaults, and segments.

API Keys

Secret server keys, public client keys, scopes, and revocation.

Integrations

SDK, browser snippet, REST fallback, and first-event setup guidance.

Email

Provider abstraction, templates, delivery logs, and suppression state.

Audit

Security-sensitive action logging without secrets or private payloads.

Observability

Health checks, request diagnostics, error reporting, and metrics.

Validation commands