Skip to main content

App patterns

Pick the smallest app shape that matches the job. Add a process, database, sync, or AI API only when the app needs that capability.

Defaults

  • Start from a template when one fits.
  • Keep frontend code free of secrets and database URLs.
  • Put server-only work in a process component.
  • Use sibling component URLs instead of hardcoded localhost addresses.
  • Verify previews in the app-dev tab before saying the app is running.