StarStarter

StarStarter for Astro: The clean foundation for a high-quality website.

A free Astro starter template with everything you need to create a great website. Semantically correct, accessible, well designed, scalable, performant and without bloat.

Traffic passing Gwanghwamun Square in Seoul with Bugaksan mountain in the background.

What is this? A simple way to make your website

Everything you see on this website is built with this StarStarter template using all default settings.

StarStarter provides the complete base for creating a good website which you fully control. You can write in Markdown, the resulting pages are performant, accessible and designed following actually modern design principles. The whole project is free and without any unnecessary dependencies.

The setup is simple. Create your site with npm, review your details in src/config.ts, write your content, and host the generated static site.

You can use the whole generated project, or take only specific things you need for your own web projects.

What's included Things this starter provides

This starter templates provides the foundations of a good website. I use it as a base for every web project I build.

No lock-in

The code, content, and finished website belong to you. You can change it how you want, host it how you want, do with it what you want.

Write in Markdown

Markdown is easy to write, works in many different apps, and is simple to move elsewhere. It is also a format AI tools understand and work with well.

See the markdown style guide on how to write markdown.

Fast and performant

The (static) pages use very little JavaScript by default. Images and other content are compressed and optimized. No unnecessary libraries or other content is used.

Accessible

The project follows modern web development practices and adheres to the Web Content Accessibility Guidelines (WCAG) levels A and AA.

So everything including structure, navigation, focus states, and components are built with accessibility in mind.

Free to use

The project is free and uses a true open-source license, MIT. You can publish this as a static website using a free hosting plan from many different providers.

Clean scalable plain CSS styling

I built a simple CSS system in my Clean Web Development guide which scales well as projects become more complex.

The design system is defined through a simple token-based var.css file which you can customize however you want. With this approach colors, spacing, typography, layouts, and utilities stay consistent without adding framework bloat.

Components included

Headers, footers, heroes, buttons, cards, icons, callouts, steps, section titles with eyebrows and more are all included. You can use them as reference for any project without external dependencies. See the component showcase for a complete list and how to use them.

SEO optimized

SEO and GEO optimized, including on-page and technical SEO. Correct semantic usage of elements, optimized components, canonical URLs, social metadata, structured data, and a sitemap to make your website show up on search engines and in AI chats.

Plus an RSS feed also makes it easy for readers to follow new posts.

Get started How to use StarStarter for Astro

  1. Create the project. Run the guided npm setup and answer a few questions about your website.

  2. Review your details. Check src/config.ts, then add social links and optional analytics when you are ready.

  3. Write and publish. Create your pages in Markdown, adjust the design tokens, and host the generated static site wherever you want.

npm create @bryanhogan/web-starter@latest
Read the setup guide

Flexible Use it for any web project

Use it for building a blog, personal website, landing page, company website, or something completely different. Start small and add more only when you need it.

Perfect for
Personal sites
Perfect for
Landing pages
Perfect for
Company websites

Test results High-quality and tested

This landing page uses the starter template with default settings. So how well does it do when tested?

This site scored 100 out of 100 in all four Google Lighthouse Test categories.

Performance
100
Accessibility
100
Best Practices
100
SEO
100

0ms total blocking time, 0 cumulative layout shift, 0.5s speed index, 0.5s for first contentful paint and 0.5s for largest contentful paint. The size of this landing page is only 103KB.
Test results from WebPageTest

Also reaches full score 100/100 and A grade in the WebPageTest on all criteria: First Byte Time, Keep-alive Enabled, Compress Transfer, Compress Images, Cache Static content and Effective use of CDN.

Passes WCAG (Web Content Accessibility Guidelines) 2.2 level A and AA.

Why did I make this? The clean starter I wanted

I wanted one simple, clean starter for my web projects, something that is flexible and independent. I think the best way to write blog content is Markdown. It works in tools such as Obsidian, can easily be edited in many headless CMSs, and has the best AI support. It also works perfectly with Git.

A static site like this one is simple and free to host. A lot of websites have poor frontend implementations and UX/UI problems. This project combines my knowledge of what goes into a good website. I also tried to make it as easy as possible for other people to use this project.

This site also showcases what I teach and cover in my Clean Web Dev Guide. If you use this starter for any website or web project, let me know. There’s a showcase list of websites and web projects built with this starter.

Ready? Create the website you want

I’m proud of this project and I hope it helps you with creating your next (or first?) website :)
GitHub stars are also appreciated. If it saves you time and you want to help me keep improving it, you can also support the project financially.

Use the project

Run the guided setup, make the generated website yours, and publish it.

Support the project

Help support the time spent maintaining the template and making it better.

StarStarter is built by Bryan Hogan, a developer and designer, the creator of the Clean Web Development Guide.