astro.build/themes. Follow the installation instructions provided by your chosen theme.
After exploring the official integrations page, I found these most useful for my Astro projects:
You can add popular JavaScript frameworks like React, Vue, Svelte, or SolidJS to your Astro project. These components work as islands, only hydrating when needed for optimal performance. Check out the official integrations page for the complete list.
For content, @astrojs/mdx lets you embed interactive components directly in markdown content. @astrojs/tailwind is good for CSS. For code highlighting, astro-expressive-code gives syntax highlighting and the code sections you in this blog. astro-embed provides easy-to-use components for embedding social media posts, videos, and other external content.
You can use @playform/compress to automatically compress HTML, CSS, and JavaScript files. @astrojs/sitemap generates XML sitemaps for better SEO. I use Astro Assets for built-in image optimization with format conversion, It will auto generate various image of various sizes automatically if you create the srcsets.
For documentation sites, @astrojs/starlight is pretty good - it’s a documentation theme built on Astro with search, navigation, and internationalization built in.
# Example: Adding React and Tailwindnpx astro add react tailwind
# Or install manuallynpm install @astrojs/react @astrojs/tailwind
Check your theme’s documentation to see which integrations are recommended or already configured.
Add Wrangler to your project dependencies:
npm install wrangler
Update your package.json
scripts (replace astro build
with your framework’s build command):
{ "scripts": { "build": "astro build", "deploy": "astro build && wrangler deploy" }}
Create a wrangler.json
file in your project root:
{ "$schema": "node_modules/wrangler/config-schema.json", "name": "my-astro-site", "compatibility_date": "2025-09-21", "assets": { "directory": "./dist" }, "observability": { "enabled": true }}
./dist
for Astro)npm run build
npm run deploy
wrangler.json
.workers.dev
URLFor future deployments, simply run:
npm run deploy
If your domain is already managed by Cloudflare, the process is automatic. For external domains, you’ll need to update your DNS records.
Your Astro site is now live on Cloudflare’s global edge network with automatic SSL, CDN, and lightning-fast performance!