Making the starter yours

Set your URL, site name and author, replace the icons with favseed, change the title cards and remove these guides when you no longer need them.

A copy of the starter still describes the starter: its name, its author, its icons and these guides. The steps below replace each of those with your own, in roughly the order you will want to do them. None of them needs a new dependency.

Get a copy

On GitHub, choose Use this template to create your own repository, then clone it. Install with bun install --frozen-lockfile and start the development server with bun run dev. You need Node.js 24.8.0 or newer; Bun's version is pinned in package.json.

Set your production URL

Uncomment site in astro.config.mjs and set it to your origin, such as https://example.com, or pass it with--site when you build. The starter leaves it unset so a fork never publishes canonical URLs for someone else's domain, and the build fails until you supply one. Add base only if the site lives under a subpath.

Name the site and its author

src/config.ts holds everything that identifies the site:

export const siteConfig: SiteConfig = {
  name: 'Your project',
  author: { name: 'Your name', url: 'https://example.com/' },
  repository: 'https://example.com/your-project',
  license: 'MIT',
  socialImages: true,
};

name ends every inner page title and starts the homepage title. author is credited in the footer and named as the publisher in the homepage's structured data; repository is linked from the footer. Delete either line to drop what it drives; with neither, the footer disappears. license names the code's licence in source code data, and socialImages switches the generated title cards on or off.

The starter ships a placeholder author, Your Name athttps://example.com/; replace it with your own name and site, or delete the line.

Write your pages

Rewrite src/pages/index.astro; keep home on its layout and change its title to a short line on what your site does. Remove sourceCode unless your homepage presents your repository's code, as the starter's does: it describes the page as source code in the structured data. Add routes as files in src/pages/, each with its own title and description:

---
import Layout from '../layouts/Layout.astro';
---

<Layout title="About" description="Who runs this project and why.">
  <main>
    <h1>About</h1>
    <p>Write your page content here.</p>
  </main>
</Layout>

Add styles and scripts the usual Astro way. The output checks allow them; the starter simply ships none.

Replace the icons

The starter ships a neutral C mark. Generate your own set withfavseed: give it one SVG and it returns icon.svg, favicon.ico,apple-touch-icon.png, icon-192.png andicon-512.png, all in the browser, with no upload. Copy them into public/ over the files with the same names, and replacelogo.svg with your own logo. The layout declares onlyfavicon.ico; the README shows how to add the Apple icon and a web app manifest if you need them. Browsers cache icons hard, so check in a private window after you deploy.

Change or drop the title cards

Edit src/lib/social-card.ts to change the card artwork, and keep the font's licence if you swap the font. To stop generating cards, set socialImages: false; manual images keep working. The README lists the files and the package to delete if you want the feature gone entirely.

Remove these guides

These guides describe the starter, not your project. When you no longer need them, delete src/pages/docs/ and the documentation section of src/pages/index.astro. Nothing else refers to them: the sitemap is built from the pages that exist, so it drops them on the next build. The tests in tests/demo/ check only this demo content and skip themselves once it is gone; delete them too.

Check and deploy

Run bun run verify with your site configured. It type-checks, runs both test suites, builds and audits the output. Then follow the Cloudflare Pages guide, or deploy the dist/ directory to any static host that serves404.html with a 404 status. Keep the MIT licence notice that covers the starter's code.