Implement or refactor web-client backend-for-frontend logic in the budget app. Use for Next.js App Router route handlers, Prisma-backed business logic, auth-scoped endpoints, server-only helpers, analytics payloads, and API response shaping for mobile and web.