Frontend framework
Astro
The web framework we build fast, SEO-first client sites on.
Astro is a modern open-source web framework for building fast, content-driven websites. It renders pages to static HTML and ships zero JavaScript by default, so sites load almost instantly and rank well. HDC builds most client websites on Astro because that speed and SEO turn directly into more enquiries.
Where it shines
- Ships zero JavaScript by default, outstanding Core Web Vitals and load speed
- Server-renders clean static HTML that search engines and AI crawlers read easily
- Islands architecture: add React, Vue or Svelte interactivity only where it's needed
- Content Collections keep large, multi-page sites organised and type-safe
- Deploys to cheap, fast edge hosting like Cloudflare Pages
- Framework-agnostic, no lock-in to a single UI library
Trade-offs to weigh
- Not built for highly app-like products (a dashboard or SaaS app) with constant interactivity
- Younger ecosystem than React/Next, so a few niche integrations need custom work
- Fewer agencies know it well, though for clients that's an edge, not a drawback
What Astro is
Astro is an open-source web framework, first released in 2021, designed for building content-rich websites, marketing sites, blogs, documentation and e-commerce fronts. Its defining idea is that most websites don’t need to ship a heavy JavaScript application to the browser. Astro renders your pages to plain HTML at build time and, by default, sends zero JavaScript to the visitor.
Where a page genuinely needs interactivity, Astro lets you add it as a self-contained “island”, a small component (built in React, Vue, Svelte or plain JavaScript) that loads on its own, while the rest of the page stays static and instant. You get the speed and SEO of a static site with the interactivity of a modern framework exactly where it earns its place.
How HDC uses Astro
Astro is our default for client websites, and it’s what this very site is built on. In practice that means:
- We build each page as static HTML that’s served pre-rendered, so it appears almost instantly even on a phone with a poor signal on a job site.
- We use Astro’s Content Collections to manage larger sites, services, locations, blog posts, case studies, in a structured, type-safe way, so a 60-page site stays as maintainable as a 6-page one.
- We add interactivity as islands only where it pays off: a lead form, an image slider, a quote calculator, live chat. Everything else ships no JavaScript.
- We pair Astro with Tailwind CSS for styling and host on Cloudflare Pages, where every page is cached at the edge, close to your customers.
Why we apply it
Two things win trades and local businesses more work online: being found (SEO) and not losing the visitor (speed and clarity). Astro is engineered for both. Google has found that 53% of mobile visitors abandon a page that takes more than three seconds to load; Astro pages routinely load in a fraction of that. And because the full content is in the HTML from the first byte, both Google and AI answer engines can read and rank the page properly.
For a business paying for ads, that matters twice over: a faster, better-ranking site means more of every click turns into an enquiry instead of a bounce.
How Astro fits our stack
Astro is the foundation we build on, not the whole picture. On a typical project it sits alongside Tailwind CSS for styling, React for the handful of interactive islands a site needs, TypeScript for safer code and typed content, Cloudflare for edge hosting and security, and a CMS or headless WordPress when a client needs to edit content themselves. That combination gives clients a site that’s fast, secure, easy to update and built to rank, without the bloat of a heavyweight app framework.
When Astro isn’t the right tool
We’re honest about fit. If a project is really a web application, a customer dashboard, a booking platform with constant interactivity, a SaaS product, a framework like Next.js or a dedicated app stack is the better choice, and we’ll build that instead. Astro shines for the content and marketing sites that need to load fast and rank well, which is exactly what most trades and local businesses need.
Worked example
A trades website that loads in under a second
Picture a plumbing firm whose old site took five seconds to load and lost visitors before the page even appeared. Rebuilt on Astro, every page renders as static HTML served from the edge, so it loads almost instantly on a phone with a weak signal on a job site. The contact form is the only interactive "island", so there's barely any JavaScript to get in the way. Faster pages mean lower bounce, stronger Google rankings, and more of the ad budget reaching booked jobs instead of being wasted on visitors who never wait around. (Illustrative, every build is scoped to your goals.)
Better together
How Astro fits with the rest of our stack
Tailwind CSS
Our styling layer on every Astro build
Learn moreReact
Dropped in as interactive islands where needed
Learn moreCloudflare
Where we host and secure Astro sites
Learn moreTypeScript
Typed content collections and components
Learn moreWordPress
Can sit behind Astro as a headless CMS
Learn moreAstro: your questions answered
Is Astro good for SEO?
Yes, it's one of the best frameworks for SEO. Astro renders complete HTML on the server, so search engines and AI crawlers get the full content immediately, and its near-zero JavaScript delivers the fast load times Google rewards in Core Web Vitals.
Is Astro better than WordPress?
For most marketing and brochure sites, Astro is faster, more secure and cheaper to host, there's no database or plugins to slow it down or get hacked. WordPress still wins when a non-technical team needs to edit content daily, and we can pair the two: WordPress as a headless CMS behind a fast Astro front end.
Can an Astro site still have interactive features?
Absolutely. Astro's islands let us add interactive pieces, forms, sliders, calculators, live chat, exactly where they're needed, using React or Vue, without turning the whole site into a slow single-page app.
Why does HDC build on Astro?
Because our clients are judged on speed and search ranking, and Astro is purpose-built for both. This very website is an Astro build. Faster, better-ranking pages mean more qualified enquiries from the same traffic.
Is an Astro site cheaper to run?
Usually, yes. A static Astro site hosts on edge platforms like Cloudflare Pages very cheaply, often free at low volumes, with no database server to pay for or maintain, and far less exposure to security issues than a plugin-heavy CMS.
Can you add a blog or let me edit content myself?
Yes. We can wire in a CMS so you or your team can edit pages and publish blog posts without touching code, while the public site stays fast and static.
Want Astro working for your business?
Tell us what you're trying to achieve, we'll show you, honestly, whether it's the right tool and how we'd apply it.
Enquire now