Skip to content

About

The place for content that goes beyond the official docs, for all Astronauts!

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

121 stars

Watchers

4 watching

Forks

Repository files navigation

Astro Tips

This is a community-driven collection of recipes, quick tips, and external community resources that complements Astro Docs.

How to help

  1. Read our Contributing guide to decide whether your content belongs in Astro Tips or official Astro Docs
  2. Make an issue if you have an idea for a tip or have found a useful resource you think would help others
  3. Close an issue with a PR
  4. Join the Discord

Astro Tips vs. Official Astro Docs

Not sure whether to contribute here or to Astro Docs recipes? If a solution is broadly useful, consider proposing it to official Astro Docs first—if it is too specific to maintain there, Astro Tips is a great home for it.

  • Contribute to official Astro Docs for short, focused, single-task how-to recipes built around core Astro features, widely used tooling, or common setup gotchas that fit Astro's long-term maintained and translated docs, as well as core API/concept docs and Astro + X guides for popular, actively maintained third-party services.
  • Contribute to Astro Tips for:
    • Recipes (src/content/docs/recipes/): in-depth, opinionated, advanced, niche, or experimental step-by-step guides (optionally with runnable projects in examples/).
    • Tips (src/content/docs/tips/): quick tips, patterns, workarounds, and environment- or stack-specific setups for third-party libraries or tooling.
    • External resources (src/content/resources.json): links to community blog posts, tutorials, and guides hosted elsewhere—including Astro guides for newer tools or services.
  • Contribute to a package's official docs if the content only covers general library usage without Astro-specific details.

See the full Contributing guide for more details.

Editor support (JSON Schemas)

Run pnpm install and pnpm astro sync (or pnpm dev) to generate collection JSON Schemas in .astro/collections/. VS Code is pre-configured in .vscode/settings.json to use these schemas for autocompletion and validation in src/content/resources.json, src/content/tags.json, and src/content/authors/*.json, as well as MDX frontmatter via Astro Content Intellisense.

Adding yourself as an author

  1. Create a JSON file in src/content/authors/<your-slug>.json (for example src/content/authors/jane-doe.json):
{
  "name": "Jane Doe",
  "github": "janedoe",
  "bio": "Short bio or tagline",
  "website": "https://janedoe.dev",
  "socials": {
    "bluesky": "https://bsky.app/profile/janedoe.dev"
  }
}

Only name is required. Setting github automatically populates your GitHub link and avatar (unless you provide a custom avatar URL). Supported socials keys: bluesky, x, mastodon, linkedin, youtube, discord, twitch, threads, instagram, gitlab, codeberg, codepen, and rss.

  1. Reference your author ID (the filename without .json) in the authors array of any tip/recipe frontmatter or src/content/resources.json entry. Multiple authors are supported:
authors:
  - jane-doe
  - co-author

Goals

  • Provide best practice solutions to common problems related to building sites with Astro
  • Provide in-depth recipes where they are warranted
  • Provide quick tips where they are warranted

Non-goals

  • Replace Astro Docs or a package's official resources
  • Provide incomplete solutions

About

The place for content that goes beyond the official docs, for all Astronauts!

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

121 stars

Watchers

4 watching

Forks

Used by

Contributors

Languages