All articlesSoftware Development
Clean Architecture in Next.js 15
Server components changed the rules. Here is the layering we use on every Velixor client build.
Velixor Labs · 8 min read
Framework features age; architecture endures.
Keep domain logic framework-free
Pure functions in a domain layer, tested without a browser or a server.
Server components are a delivery layer
They fetch and compose. They should not contain business rules.
One data access module per entity
Every query lives in one place, typed end to end with Drizzle.
Client components are leaves
Interactivity at the edges of the tree keeps bundles small and rendering fast.