What are Integrations?
Integrations are plugins that extend Astro’s core functionality. They can:- Add support for UI frameworks (React, Vue, Svelte, etc.)
- Enable server-side rendering with adapters
- Add content format support (MDX, Markdoc)
- Integrate development tools (Partytown, Sitemap)
- Enhance your build process
Installing Integrations
Using astro add (Recommended)
The fastest way to add an integration is using the astro add command:
- Install the integration package
- Update your
astro.config.mjsfile - Install any required peer dependencies
Manual Installation
You can also manually install integrations:- Install the package:
- Add it to your config:
astro.config.mjs
Configuration
Integrations are added to theintegrations array in your Astro config file. Most integrations accept options:
astro.config.mjs
Types of Integrations
UI Frameworks
Add support for React, Vue, Svelte, Solid, Preact, and Alpine.js components
SSR Adapters
Deploy your site with server-side rendering to Node, Vercel, Netlify, Cloudflare, and more
Official Integrations
MDX, Sitemap, Partytown, Markdoc, and other official integrations
Community Integrations
Discover integrations created by the Astro community
How Integrations Work
Integrations use the Astro Integration API to hook into the build process. Here’s a simplified example from the React integration:Using Multiple Frameworks
Astro allows you to use multiple UI frameworks in the same project. When using multiple JSX frameworks (React, Preact, Solid), use theinclude option to avoid conflicts:
astro.config.mjs
Next Steps
UI Framework Integrations
Learn about React, Vue, Svelte, and other framework integrations
SSR Adapters
Deploy your site with server-side rendering