Astro Minimal Template
A minimal Astro starter with strictest TypeScript, shared metadata, automatic social images and browser-native styling.
Start with ordinary Astro files and add what your project needs. The default page uses native HTML, without application JavaScript, author CSS or a website font dependency. What it does include is the groundwork most sites redo by hand: complete page metadata, crawler files and checks that fail the build before a broken page goes live.
What's included
- Strictest TypeScript and a shared layout with typed metadata props.
- Page titles that carry the site name, a homepage title that says what the site does, and
WebSitestructured data. - Canonical URLs, an official sitemap, generated robots.txt and a 404 page.
- Optional automatic title cards, manual social images and page-level noindex.
- An author credit and source link from one configuration file.
- Replaceable icons, build checks and deadhead HTML auditing.
Make it yours
- Set your production
siteinastro.config.mjs, or pass it with--sitewhen building. - Set your site name, author and repository in
src/config.ts. - Edit
src/pages/index.astroand add routes insrc/pages/. - Use
src/layouts/Layout.astrowith a title and description for each page. - Generate your icons with favseed and replace the matching files in
public/. - Run
bun run verifywith your production site configured before deploying.
Read the repository's README.md for configuration, social-image controls, verification commands and optional installation metadata. The Astro documentation covers routing, components, styles and deployment.
Documentation
Short guides explain what the starter does and how to take it further:
- SEO and metadata defaults: titles, canonical URLs, sitemap, robots rules, social images and structured data.
- Build checks: what
bun run verifyruns and what each check catches. - Deploying to Cloudflare Pages: build settings, previews, a custom domain and headers.
- Making the starter yours: configuration, icons, title cards and removing these guides.