Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A minimal Astro boilerplate with pre-configured folders, example components, and build scripts for static sites.
The Astro Starter Kit is a minimal boilerplate for building static websites with the Astro framework, providing a pre-configured project structure, example components, and npm scripts for local development and production builds. The kit runs on Astro, and the repository metadata lists topics including astro, react, starter, and vercel, indicating the intended stack and deployment platform.
The Astro Starter Kit is a starting point for new Astro projects, containing the folder structure, layout files, and example components you need to begin building. It takes a source folder with .astro and .md files as input, and npm run build produces a static site in ./dist/. The kit is maintained as a community starter, with links to the Astro documentation and Discord server in the README.
The project structure separates concerns into public/ for static assets, src/components/ for reusable UI, src/pages/ for route files, src/layouts/ for page layouts, and src/data/ for static JSON data. Example components such as BlogPreview.astro and Podcast.astro are included in the components folder, and the public/ directory holds a style folder plus favicon files.
public/, src/components/, src/pages/, src/layouts/, and src/data/ for assets, reusable components, routes, layouts, and static JSON data..astro or .md file placed in src/pages/ becomes a route at the same URL path automatically.src/components/ can be written in Astro, React, Vue, Svelte, or Preact, giving flexibility for hybrid rendering.BlogPreview.astro and Podcast.astro to reference.public/ — Place images, favicons, and other files in public/ and they are served directly at the site root.npm run start launches a dev server at localhost:3000, and npm run build outputs the optimized static site to ./dist/.src/pages/ to generate individual post routes, then customize the included page layout.Run npm install from the project root, then npm run start. The server will start at localhost:3000 and serve the Astro pages with hot reloading during development.
Create a new .astro or .md file in the src/pages/ directory. The filename becomes the URL path, so src/pages/about.md is served at /about.
Run npm run build from the root of the project. The production-ready static files are output to the ./dist/ directory, ready to deploy to any static host.
