Core server packages
@repo/database
Section titled “@repo/database”Owns the Kysely client (pg), SQL migrations, and generated types. Regenerate types with db:codegen before type checks. Schema changes may require service updates, contract updates, native model regeneration, seed changes, and docs updates.
@repo/api
Section titled “@repo/api”Owns routers and service behavior. Keep endpoint shape in routers and business logic in services. Generated API docs read router source on every docs build.
@repo/auth
Section titled “@repo/auth”Owns shared Better Auth configuration. Coordinate changes with web, API, mobile trusted origins, and session/cookie docs.
@repo/notifications
Section titled “@repo/notifications”Owns Knock translations, payload typing, and email layout. Worker and web both consume it, so payload drift breaks cross-app notification behavior.
@repo/redis-search
Section titled “@repo/redis-search”Owns property search/index key formats, indexing utilities, and query behavior. Coordinate changes with worker sync jobs and property search UI expectations.