Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Complete boilerplate with Astro, React and TypeScript for scalable systems with Atomic Design and testing.
The Boilerplate Astro + React is an open-source starter template for building large, scalable static websites and web applications, combining Astro.js static site generation with React.js interactive components and TypeScript. It is maintained by Éverton Toffanetto on GitHub and aims to provide a standardized codebase with readability, reusability, and refactorability as core pillars.
This template is a fully configured project scaffold rather than a visual theme. As input it takes source code organized around a well-defined folder structure, and as output it produces a static Astro site with React islands, CSS Modules theming, unit and end-to-end tests, linting, and CI/CD workflows. The project runs on Astro.js with partial hydration, requires Node.js 22 or higher and the pnpm package manager, and is available under the GitHub repository everton-dgn/boilerplate_astro_react.
The workflow starts by cloning the repository and installing dependencies with pnpm i. From there, the provided npm scripts handle development, production builds, testing, linting, formatting, and update checks. The source code is organized so components live in src/components under atomic layers, tests are placed next to components or in src/tests, and configuration files such as astro.config.ts, vitest.config.ts, playwright.config.ts, and biome.json are already in place.
The boilerplate requires Node.js 22 or higher, with the LTS release recommended. It also relies on pnpm as its package manager, so the latest version of pnpm should be installed before running the scripts.
Vitest is configured for unit and component testing, with support for coverage output, watch mode, and a UI dashboard. Playwright is set up for end-to-end testing and includes a code generator to create test scripts.
Yes, the project is written in TypeScript. Type definitions live in the src/@types folder, and the tsconfig.json file is included for TypeScript configuration. You can run pnpm typecheck to validate types.
The repository is publicly available on GitHub under the everton-dgn organization. The README does not mention any pricing, and the project carries a license badge, indicating it can be used as a base for professional projects.
Yes, the icon system supports custom SVGs and any icon set from Iconify. You can drop in your own SVGs or reference Iconify icons, making the icon set fully customizable.
