In the Astro vs Drupal comparison, choose Drupal when the site is really a content management system: many editors, roles and permissions, approval workflows, complex content types and multilingual content managed in one admin. Choose Astro when you need a fast, low-maintenance website and the content model is simple enough for Markdown files or a lighter CMS. For large organisations, the common answer is both: Drupal manages content and Astro renders the public site.
Drupal is an open-source PHP content management system that runs on a server with a database. Astro is a JavaScript web framework that builds pages to static HTML by default. They overlap only at the “public website” layer, which is why the comparison is often about architecture rather than features.
Key Takeaways
- Drupal is a full CMS: content types, fields, taxonomy, Views, roles, revisions and editorial workflows.
- Astro is a front-end framework: it renders content from files or APIs into fast pages with no JavaScript by default.
- A Drupal site needs PHP hosting, a database and ongoing security updates. A static Astro site is a folder of files.
- Drupal’s core JSON:API module exposes content, so Astro can act as a decoupled front end.
- Small and medium marketing sites rarely need Drupal’s depth. Large, permission-heavy content operations often do.
Astro vs Drupal at a glance
| Astro | Drupal | |
|---|---|---|
| Type | Web framework (JavaScript/TypeScript) | Content management system (PHP) |
| Content model | Collections with Zod schemas, or any CMS | Content types, fields, entities, taxonomy |
| Editing | Files, or a connected CMS | Built-in admin with revisions |
| Users and roles | None built in | Granular roles and permissions |
| Workflows | Git reviews, or the CMS’s workflow | Content Moderation in core |
| Multilingual | i18n routing; translations in your content | Interface, content and config translation in core |
| Templates | .astro components |
Twig themes |
| Runtime | Static files, or Node.js/serverless for server routes | PHP server plus MySQL, PostgreSQL or SQLite |
| Maintenance | npm dependency updates | Core and module security releases |
Content modelling and editorial features
Drupal’s reason to exist is structured content at scale. You define content types (Article, Event, Location) with typed fields, references between them, taxonomies, and Views that query and list content without code. Editors get revisions, scheduled publishing, content moderation states (draft, review, published), and fine-grained permissions per role. Translation of content and interface is part of core.
Astro covers the developer side of content modelling with content collections. A schema validates every entry at build time, and references link entries together:
// src/content.config.ts
import { defineCollection, reference } from 'astro:content';
import { glob } from 'astro/loaders';
import { z } from 'astro/zod';
const locations = defineCollection({
loader: glob({ pattern: '**/*.md', base: './src/content/locations' }),
schema: z.object({ name: z.string(), city: z.string() }),
});
const events = defineCollection({
loader: glob({ pattern: '**/*.md', base: './src/content/events' }),
schema: z.object({
title: z.string(),
date: z.coerce.date(),
location: reference('locations'),
tags: z.array(z.string()).default([]),
}),
});
export const collections = { locations, events };
What Astro doesn’t have is the admin: no user accounts, no roles, no moderation queue. Those come from Git workflows (pull requests as reviews) or a connected CMS. For a team of three developers, that’s enough. For a university with 200 editors across 40 departments, it isn’t, and Drupal fits better.
Performance, hosting and security
A Drupal page is assembled by PHP on request, with caching layers (Drupal’s page and dynamic page cache, plus a reverse proxy or CDN) doing most of the performance work. A well-run Drupal site is fast; getting there takes configuration and suitable hosting.
Astro pre-renders pages to HTML at build time. There’s nothing to assemble on request, so any CDN can serve it, and pages carry no JavaScript unless a component asks for it. Page speed is the default rather than a tuning exercise.
The bigger difference is operational. Drupal is a live application: PHP version upgrades, core updates, contributed module updates, and security advisories you need to apply promptly. Major version upgrades take planning. A static Astro site has no server-side code at runtime, no database and no admin login on the public host, so the attack surface is very small. Updates are npm dependency bumps you can make on your schedule.
Templating and front-end development
Drupal themes use Twig templates with Drupal’s render arrays and preprocess functions underneath. It’s capable, but front-end developers have to learn Drupal’s theming layer, and modern component tooling sits outside its defaults.
Astro components look like HTML with a script block on top. You can use Tailwind CSS, scoped styles or Sass, and drop in React, Vue, Svelte or Solid components as islands where you need interactivity:
---
// src/components/EventCard.astro
interface Props {
title: string;
date: Date;
city: string;
href: string;
}
const { title, date, city, href } = Astro.props;
---
<article class="event">
<time datetime={date.toISOString()}>{date.toLocaleDateString('en-US')}</time>
<h3><a href={href}>{title}</a></h3>
<p>{city}</p>
</article>
<style>
.event { border: 1px solid #e5e7eb; padding: 1rem; border-radius: 0.5rem; }
</style>
Front-end teams typically find Astro faster to work in. Drupal teams with deep PHP experience may prefer to stay in Twig.
Decoupled Drupal with an Astro front end
Drupal core includes a JSON:API module that exposes every content type over HTTP once enabled. Astro can fetch nodes at build time and render them, so editors keep Drupal’s admin and workflows while visitors get static pages.
// src/content.config.ts (Drupal articles via JSON:API)
import { defineCollection } from 'astro:content';
import { z } from 'astro/zod';
const articles = defineCollection({
loader: async () => {
const base = import.meta.env.DRUPAL_URL;
const res = await fetch(`${base}/jsonapi/node/article?filter[status]=1`);
const { data } = await res.json();
return data.map((node) => ({
id: node.id,
title: node.attributes.title,
body: node.attributes.body?.processed ?? '',
created: node.attributes.created,
}));
},
schema: z.object({
title: z.string(),
body: z.string(),
created: z.coerce.date(),
}),
});
export const collections = { articles };
A production setup usually adds pagination (JSON:API returns pages of results with links.next), path aliases for URLs, and a webhook or scheduled job that triggers a rebuild when content changes. For very large sites where rebuilds get long, server-rendered Astro routes with caching are an alternative; the Astro SSR guide explains that mode. The Drupal guide in the Astro docs covers the setup step by step.
Decoupling has costs. Drupal features that render on the front end (layout builder pages, some modules’ output, preview) need extra work to replicate in Astro. Budget for it, or keep some sections rendered by Drupal.
Choose Astro or Drupal
Choose Drupal if:
- Many editors need roles, permissions, revisions and approval workflows.
- Content is highly structured with many types, relationships and listings built by site builders.
- Multilingual content management is a core requirement.
- You have PHP expertise and hosting that suits it.
Choose Astro if:
- The site is a marketing site, blog, docs site, portfolio or product site.
- A small team edits content, in files or a lighter headless CMS.
- You want minimal hosting cost and very little to patch.
- Front-end performance and design freedom are priorities.
Choose Drupal plus Astro if:
- You need Drupal’s editorial depth and want a fast, modern, static public site, and you can staff both sides.
For the many sites that don’t need a CMS of Drupal’s size, starting from a finished Astro project is faster than either. Our Astro themes by category include page sets for professional services, education and community organisations, and every theme is plain Astro source you can connect to a CMS later. The getting started docs show how to run one locally.
FAQ
Is Astro a replacement for Drupal?
Only for sites that don’t need Drupal’s CMS features. Astro has no admin, users, roles or workflows. For a simple marketing site it replaces Drupal well. For a large content operation it works best as the front end, with Drupal or another CMS behind it.
Can Astro use Drupal as a headless CMS?
Yes. Enable Drupal’s core JSON:API module, fetch content in an Astro content loader or page, and render it with Astro components. Trigger a rebuild when content changes, or use server-rendered routes with caching for very large sites.
Is Astro faster than Drupal?
For page delivery, usually yes, because Astro serves pre-built HTML with no JavaScript by default. A well-cached Drupal site can also be fast, but it needs more configuration and server resources to get there.
Is Drupal still worth using?
For organisations with complex content models, many editors, strict permissions and multilingual needs, Drupal remains a strong choice. For smaller sites, its hosting and maintenance overhead is often more than the project needs.
How hard is it to migrate from Drupal to Astro?
It depends on how much of Drupal you use. Simple brochure sites can move to Markdown and static pages quickly. Sites with many content types, Views and editorial workflows are usually better served by keeping Drupal headless and replacing only the front end.