Skip to main content

Shared packages

Reusable infrastructure lives under packages/. Apps depend on these; apps never depend on each other.

PackagePurpose
@constellation-platform/auth-coreJWT types, clearance levels, permission checking
@constellation-platform/auth-nextNext.js auth middleware (withAuth, withTenantAuth)
@constellation-platform/dbTenant-scoped Prisma client, audit trail
@constellation-platform/errorsStandard error hierarchy and API envelope
@constellation-platform/auditTransactional audit via outbox (auditCritical())
@constellation-platform/eventsOutbox-based event publishing and subscription
@constellation-platform/testingTest tenant/user factories, test transaction wrapper
@constellation/contractsShared Zod schemas and derived types
@constellation/uiShared React components
@constellation/configShared ESLint, TypeScript, Vitest configs

Stub — per-package API docs to be added in follow-up PRs.