Architecture I use for applications
Most of my application work shares a structure that keeps it maintainable as it grows:
- Frontend: Next.js with Server Components for data-backed pages, Client Components only for interactive pieces, and TanStack Query for server state in dashboards. Presentational components never fetch data.
- API: a typed service layer, either GraphQL over Postgres via Hasura for data access with declarative permissions, or Hono APIs with Zod validation for workflows with side effects such as payments.
- Data: Postgres, with permissions modelled explicitly per role.
- Delivery: Cloudflare Workers, deployed to staging and promoted to production from CI.
Making dashboards fast
People use operational dashboards all day, so small delays add up. Four things help most:
- Server-side pagination and filtering instead of loading everything into the browser.
- Cached server state with background refetching, so returning to a list is instant.
- Optimistic updates for small, reversible actions, with rollback on failure.
- URL-driven filters, so a filtered view can be bookmarked or shared with a colleague.
Evidence
The Ekonavi marketplace’s seller dashboard is a production example: orders, products and inventory, storefront ordering, review replies, support tickets and live store stats, over a Hasura GraphQL backend on Cloudflare Workers. Other projects below show earlier work, including a PDF summarisation SaaS prototype with authentication, subscriptions and rate limiting.