@astrojs/react ·
@astrojs/vue ·
@astrojs/tailwind ·
@astrojs/mdx ·
@astrojs/sitemap ·
@astrojs/partytown
Integrationen erweitern Astro um Unterstützung für andere Frameworks, CSS-Tools, Inhaltsformate, SEO-Funktionen und Performance-Optimierungen. Hier finden Sie die wichtigsten offiziellen Integrationen auf einen Blick.
Framework-Integrationen ermöglichen die Verwendung von Komponenten aus anderen UI-Frameworks in Astro – mit voller interaktiver Unterstützung über die Inseln-Architektur.
| Integration | Framework | Installation |
|---|---|---|
| @astrojs/react | React | npm install @astrojs/react |
| @astrojs/vue | Vue | npm install @astrojs/vue |
| @astrojs/svelte | Svelte | npm install @astrojs/svelte |
| @astrojs/solid-js | Solid | npm install @astrojs/solid-js |
| @astrojs/preact | Preact | npm install @astrojs/preact |
| @astrojs/lit | Lit | npm install @astrojs/lit |
client:*-Direktiven steuern, wann die Komponente interaktiv wird.
CSS-Integrationen erweitern Astro um leistungsstarke CSS-Frameworks und Preprozessoren für ein effizientes Styling.
| Integration | Beschreibung | Installation |
|---|---|---|
| @astrojs/tailwind | Tailwind CSS (Utility-First) | npm install @astrojs/tailwind |
| @astrojs/unocss | UnoCSS (Atomic CSS Engine) | npm install @astrojs/unocss |
Inhalts-Integrationen erweitern Astro um Unterstützung für erweiterte Inhaltsformate wie MDX, die JSX-Komponenten in Markdown ermöglichen.
| Integration | Beschreibung | Installation |
|---|---|---|
| @astrojs/mdx | MDX-Unterstützung (Markdown + JSX) | npm install @astrojs/mdx |
SEO & Performance-Integrationen optimieren Ihre Astro-Website für Suchmaschinen und verbessern die Ladezeit durch moderne Techniken.
| Integration | Beschreibung | Installation |
|---|---|---|
| @astrojs/sitemap | Automatische Sitemap-Generierung (XML) | npm install @astrojs/sitemap |
| @astrojs/partytown | Partytown für Drittanbieter-Skripte (Performance) | npm install @astrojs/partytown |
| @astrojs/compress | HTML-Komprimierung (Optimierung) | npm install @astrojs/compress |
sitemap-index.xml für alle statischen und dynamischen Seiten. Partytown verschiebt Drittanbieter-Skripte in einen Web Worker für bessere Performance.
Performance-Optimierungen in Astro umfassen integrierte Bildoptimierung mit astro:assets sowie externe Integrationen für Fonts und Netzwerk-Optimierung.
| Tool / Integration | Beschreibung |
|---|---|
| astro:assets | Integrierte Bildoptimierung (seit Astro 3.0) |
| @astrojs/image | Erweiterte Bildoptimierung (veraltet) |
| @fontsource/* | Self-hosted Google Fonts |
| vite-plugin-pwa | PWA-Unterstützung über Vite |
astro:assets ist seit Astro 3.0 die empfohlene Lösung für Bildoptimierung. Sie bietet automatische Konvertierung zu WebP, Lazy Loading und Responsive-Bilder ohne zusätzliche Konfiguration.
Adapter-Integrationen ermöglichen das Deployment von Astro auf verschiedenen Hosting-Plattformen mit serverseitigem Rendering (SSR) und Edge-Funktionen.
| Integration | Plattform | Installation |
|---|---|---|
| @astrojs/netlify | Netlify (Serverless, Edge) | npm install @astrojs/netlify |
| @astrojs/vercel | Vercel (Serverless, Edge) | npm install @astrojs/vercel |
| @astrojs/cloudflare | Cloudflare Pages / Workers | npm install @astrojs/cloudflare |
| @astrojs/deno | Deno (Self-Hosted) | npm install @astrojs/deno |
| @astrojs/node | Node.js (Self-Hosted) | npm install @astrojs/node |
@astrojs/react
@astrojs/tailwind
@astrojs/mdx
@astrojs/sitemap
astro:assets
@astrojs/netlify
npm install @astrojs/react @astrojs/tailwind @astrojs/mdx @astrojs/sitemap