Architecture
Codapult keeps product logic, infrastructure and agent context in explicit layers — so you can change providers, modules or workflows without turning the codebase into a vendor-specific maze.
Architecture contract
Visible to your team and your AI agent.
4
provider boundaries
1
business logic layer
0
vendor rewrites required
The shape of the system
Keep the application you own. Swap the infrastructure behind it when the product, budget or deployment needs change.
01
Own the domain
Your SaaS
02
Keep the seam
Business logic
03
Swap the edge
Adapters
Adapter architecture
Select a boundary to see what changes at the edge — and what your product keeps forever.
Auth 境界
Better Auth · Kinde
Identity stays behind a typed boundary. Your product works with users, sessions and organizations — not provider-specific calls.
Replaceable edges, familiar tools
Pages, product flows and business rules stay focused on what makes your product different.
Auth, billing, email, storage and database contracts isolate infrastructure decisions.
Providers can change without forcing product code to learn their APIs everywhere.

Designed for change
A new provider, module or AI workflow should be a controlled change at a known boundary — not a rewrite of every screen and server action.
Change without a rewrite
Replace an adapter at the edge while the domain stays intact.
Keep only the capabilities your product actually ships with.
Use PostgreSQL or Turso without changing the application contract.
Expose conventions, schemas and boundaries as structured context.
Read the conventions, inspect the schema, and start with the foundation.