AstroJS is a framework for content-driven websites. It has some great features for building static websites like:
- support for MDX via the
@astrojs/mdx
integration - integration with VS Code via the AstroJS VS Code extension that helps with writing
.astro
components (essentially JSX files with a Markdown-like frontmatter section where you can write some JavaScript code) - content collections (logical content subsections, e.g. blog articles or product pages) and convenience functions like
Astro.getCollection
to obtain a list of parsed collection files). - support for TypeScript, so that we can add typings for the properties expected by components written via
.astro
components (component props). - simple dynamic routes and really nicely interplay with content collections.