Developer tool
Boundra
Enforced boundaries for domain-first TypeScript.
Boundra combines a TypeScript contract runtime and Rust-based static analysis CLI to keep domain APIs and runtime contracts consistent as applications grow.
Keep architectural decisions true as the codebase grows.
A domain-first TypeScript project can become tangled when client code imports a server implementation or one domain reaches into another domain’s private files. A diagram or team convention alone cannot detect every violation as changes accumulate.
Declare the boundary
Describe domains, public entry points and allowed dependencies in manifests. Client, shared and server layers have explicit import rules.
Check changes
The Rust-powered CLI analyzes imports and reports boundary violations. Run it alongside existing type checks and tests before changes merge.
Validate at runtime
Schema-backed TypeScript query, mutation and route contracts validate inputs and results when calls execute. The existing host owns transport, routing and authentication.
Changes that respect the architecture
Billing can call the order domain through its declared public API without depending on order internals. A forbidden import becomes an actionable diagnostic during development or CI instead of an unnoticed architectural change.
- Domain dependency and public API checks
- Schema validation for inputs and results
- Stable diagnostics and Vite development overlay
Where it fits
Boundra complements existing TypeScript, Next.js, Vite and backend tooling. It checks declared boundaries and runtime contracts; it is not a replacement framework, a runtime isolation mechanism or a production security control.