Woordenlijst: Astro
Woordenlijst: Astro. Heldere definities van webtermen, door het Seahawk-team.
- 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.
- Astro Adapter
An Astro adapter lets a site render pages on demand on a particular platform, such as Cloudflare, Netlify, Node.js, or Vercel.
- 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.
- 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.
- 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.
- 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.
- 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.
- Astro Middleware
Astro middleware is a function in src/middleware.ts that runs before a page or endpoint renders.
- 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.
- 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.
- 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.
- 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.
- On-Demand Rendering
On-demand rendering, or server-side rendering, builds an Astro page when someone requests it instead of once at build time.
- Server Islands
Server islands are parts of an Astro page, marked server:defer, that are rendered on the server separately.
- 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.