@athas/contracts
external-readyShared contract and schema package for backend and frontend type safety.
Purpose
@athas/contracts is the contract-first source for shared API schemas and typed interfaces consumed by backend and frontend layers.
Design principles
- keep contracts explicit and audience-scoped
- avoid runtime coupling in type modules
- enable contract drift detection during development
Typical usage
import type { AthasOrpcContract } from '@athas/contracts'Consumers then bind clients/handlers to shared contract shapes instead of hand-maintained DTOs.
Why it matters
- catches contract changes earlier
- keeps admin/client projections consistent
- improves refactor safety across monorepo apps