Astro Actions

Astro Actions provide a type-safe way to handle backend logic like form submissions, database mutations, or sending emails without manually creating API endpoints.

Key Features

  • Type Safety: Automatic end-to-end typing using Zod.
  • Progressive Enhancement: Works with standard HTML forms even if JavaScript fails to load.
  • JSON Support: Can be called as standard functions from client-side scripts.