Astro
Web framework / library · Free
A framework for content websites with an islands architecture: it keeps static pages lightweight and adds interactivity as needed.
Also known as: withastro/astro; astro; astro-framework

What you can use for free
Code and local use under MIT.
Paid features and costs
Compute, your own hosting, and external services are paid for separately if selected.
Access and limitations
Code and local use under MIT. Compute, your own hosting, and external services are paid for separately if selected.
Use cases
- Create a content website with interactive islands
- Isolate an interactive component and connect it as an island
Example workflow
A possible workflow; this is not a report of hands-on testing.
Create an article with an interactive example filter.
Before you start
- Article text and a list of examples.
- Filter rules.
Steps
- Build the text page and layout.
- Isolate the filter in an island and choose when to load it on the client.
- Check HTML without JavaScript and the filter after loading.
Check your result
- The article is available in the original HTML.
- Client code is needed only for the interactive part.
Choosing Astro
Create content websites with HTML pages and separate interactive islands.
Choose this when
- The website is mainly articles, documentation, or a catalog.
- Only individual components need interactivity.
Consider alternatives when
- For an application with substantial shared client state, consider a React framework such as Next.js.
Requirements
- An Astro project, content, and a chosen build method; interactive components require the corresponding integrations.
Things to consider
- Client islands still load JavaScript.
- Server features require a suitable hosting mode.
Frequently asked questions
Does Astro prohibit React?
No. React components can be used as islands; client execution is enabled where needed.
Related tasks and approaches
License
MIT: code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- Astro
- web
- Development