Home/Glossario/Glossario: Astro
Glossary

Glossario: Astro

Glossario: Astro. Definizioni chiare dei termini del web, a cura del team Seahawk.

  1. Astro Actions

    Astro Actions are type-safe server functions, defined with defineAction() and validated with Zod, that pages and forms call without hand-written API endpoints.

  2. Astro Adapter

    An Astro adapter lets a site render pages on demand on a particular platform, such as Cloudflare, Netlify, Node.js, or Vercel.

  3. Astro Components

    Astro components are .astro files: reusable pieces of HTML with a script section on top. They render on the server and send no JavaScript by default.

  4. Astro Endpoints

    Astro endpoints are files in src/pages that return data instead of a page, such as JSON or an RSS feed, by exporting functions like GET and POST.

  5. Astro Image Component

    Astro's Image component, from astro:assets, resizes images, converts them to modern formats, and sets their dimensions so pages do not shift while loading.

  6. Astro Integration

    An Astro integration adds a feature to an Astro project with a few lines of config: a UI framework, a sitemap, MDX, an adapter, or even a CMS.

  7. Astro Islands

    Astro islands are the interactive or dynamic parts of an otherwise static Astro page. Only the islands load JavaScript; the rest ships as plain HTML.

  8. Astro Middleware

    Astro middleware is a function in src/middleware.ts that runs before a page or endpoint renders.

  9. Astro Prefetch

    Astro prefetch downloads the next page in the background before a visitor clicks a link marked data-astro-prefetch, so it opens almost instantly.

  10. Client Directives

    Client directives, such as client:load and client:visible, tell Astro to make a component interactive in the browser and when to load its JavaScript.

  11. Content Collections

    Content collections are Astro's way of managing sets of content, such as posts or docs, with a loader, a schema, and type-safe queries.

  12. Live Collections

    Live collections are Astro content collections fetched when a page is requested instead of at build time, so changes show without a rebuild.

  13. On-Demand Rendering

    On-demand rendering, or server-side rendering, builds an Astro page when someone requests it instead of once at build time.

  14. Server Islands

    Server islands are parts of an Astro page, marked server:defer, that are rendered on the server separately.

  15. View Transitions

    View transitions animate the change from one page to the next using the browser's View Transition API. Astro adds them with CSS or its ClientRouter component.