Astro
Astro is an open source JavaScript framework for building content driven websites. It compiles components into static HTML and ships almost no JavaScript by default, which delivers fast pages without inflating the bundle. Because Astro is a build time framework, it does not collect data or set cookies on its own. The privacy footprint of an Astro site is the sum of the hosting provider, any server side rendered endpoints, and the third party scripts (analytics, embeds, fonts) the developer pulls in.
What does Astro do?
What Astro is
Astro is an open source web framework focused on content sites : blogs, documentation, marketing pages, e commerce catalogues. It pre, renders components to static HTML at build time and only hydrates the interactive islands the developer marks, which keeps the JavaScript payload extremely small. Since 2.0 it also supports server side rendering and on demand pages, but the default flavour remains a static export.
Does Astro collect any data?
No. Astro runs entirely on the developer's machine during the build, and the artefacts it produces (HTML, CSS, JS) do not call back to astro.build at runtime. The framework does not set any cookie, does not load any analytics, does not perform any telemetry on visitors. The Astro CLI has an opt out telemetry signal for the developer, not for the end user.
GDPR surface comes from elsewhere
Three things actually create GDPR exposure on an Astro site. First the hosting provider chosen for deployment (Vercel, Cloudflare, Netlify in the US, OVHcloud, Scaleway, Infomaniak in the EU) processes IP addresses and request logs. Second any SSR endpoint defined in the Astro app handles personal data on the publisher side. Third every third party script imported in a component (Google Fonts, YouTube embeds, plausible.io, recaptcha) carries its own cookies and consent requirements.
Recommended privacy stack
Astro pairs naturally with privacy lean choices : deploy on an EU host such as Scaleway, OVH or Infomaniak; self host fonts instead of using the Google Fonts CDN; lazy load YouTube and Maps with click to load placeholders; pick an EU first analytics tool (Plausible self hosted, Matomo, Beusable) ; serve images locally rather than from cloudinary.com when possible. The combination yields a fully European, low cookie deployment.
Compliance checklist
Do not list Astro in your cookie banner; list the hosting provider and the third party scripts you embed. Document SSR endpoints in your processing register. Choose the deployment target with data residency and Standard Contractual Clauses in mind. Run a Lighthouse and a cookie audit on the built site at every release to catch new third party scripts that may have slipped in.
Astro and the GDPR
- Legal basis
- Not applicable (no data processing by the framework itself)
- Risk level
- low
- Applicable regulations
- GDPR, ePrivacy Directive (apply at the deployment and integration layer, not at the framework)
Impact assessment (DPIA)
Astro itself does not process any personal data; the framework runs in the developer's build pipeline. The relevant GDPR surface comes from three other layers : (1) the deployment target, hosting on Vercel, Cloudflare, Netlify, AWS or OVH each comes with its own log retention, IP processing and possible third country transfer; (2) any server side rendered endpoint (API routes, on demand pages, edge middleware) which becomes a controller side processing activity for the publisher; (3) every third party script imported in an Astro component (Google Fonts, YouTube embeds, analytics, payment) introduces its own cookies and DPIA scope. A DPIA is never required for the framework itself but may be triggered by what the site does once deployed.
Sample text for your banner
This site is built with Astro, an open source web framework. Astro itself does not set cookies or collect data on you. Cookies on this page come from the hosting provider, our analytics tool or the third party widgets we embed; each is described separately in the cookie banner and you can refuse them individually.
What Astro sets and contacts
- Tracking method
- Static site generator with optional server side rendering (build time framework)
- Server location
- Self, hosted (Astro is open source, deployed on the publisher's choice of CDN or origin)
- Cookieless mode available
- Yes
Third-party domains contacted (3)
astro.builddocs.astro.buildnpmjs.com/package/astro
Frequently asked questions about Astro
Can't find your question? Write to us, we answer fast.
Which cookies does Astro set?
None. Astro is a build time framework that produces static HTML, CSS and JS. The framework itself does not call any endpoint at runtime and does not write to document.cookie.
Do I need a consent banner because I use Astro?
No, not because of Astro. A banner is required if you load third party scripts that set cookies or fingerprint the user (analytics, ads, embeds). Astro alone does not trigger that requirement.
What legal basis applies to an Astro site?
None for the framework. The hosting provider relies on legitimate interest for logs, the SSR endpoints rely on whatever basis the publisher chose for that processing, and each embedded third party has its own basis.
Is data transferred outside the EU?
Not because of Astro. Transfers depend entirely on the hosting provider (Vercel, Cloudflare, Netlify are US based, OVHcloud, Scaleway, Infomaniak are EU based) and on third party scripts.
Is a DPIA required?
Not for Astro. A DPIA may be required by the SSR endpoints (large scale processing) or by sensitive content embedded on the site, but not by the framework itself.
How do I keep an Astro site privacy lean?
Host in the EU. Self host fonts and images. Use click to load for YouTube, Maps, social embeds. Pick a privacy friendly analytics (Plausible, Matomo, Beusable). Run a cookie audit at every release.
Are there alternatives to Astro?
Yes : Eleventy (open source, similar static export), Hugo (Go), Jekyll (Ruby), Next.js (React, more JS heavy), Nuxt (Vue), SvelteKit. Astro is among the most privacy lean defaults because it ships almost no JavaScript by default.
How should I update my cookie policy?
Do not list Astro. List the hosting provider and every third party script that actually writes a cookie. Update the policy at every release that adds or removes a script.
GOV.UK Template
GOV.UK Template is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. GOV.UK Template supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, GOV.UK Template ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.
PyWebIO
PyWebIO is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. PyWebIO integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, PyWebIO helps organizations maintain robust websites that meet user expectations and technical requirements.
Blazor
Blazor is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. Blazor supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, Blazor ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.
Slim Select
Slim Select is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. Slim Select supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, Slim Select ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.
Spin.js
Spin.js is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. Spin.js integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, Spin.js helps organizations maintain robust websites that meet user expectations and technical requirements.
WebAwesome
WebAwesome is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. WebAwesome integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, WebAwesome helps organizations maintain robust websites that meet user expectations and technical requirements.
Make your site compliant today.
Free up to 25,000 sessions a month. No credit card, no commitment.