What Astro SEO does
Astro SEO is an open source component for Astro sites, written in Astro and released under the MIT licence. Installed with npm install astro-seo or yarn add astro-seo, it is imported into a page and placed inside the head element. It renders the meta tags, canonical link and robots directives that search engines read, and it accepts title, description, canonical and robots props.
Because the component assumes indexing, noindex and nofollow default to false, so indexing and link following are opt out rather than opt in. Open Graph and Twitter values are passed as objects, and the extend prop, added in v0.3. A layout component can hold the SEO tag while pages pass title and description down as props.
Key features
- Title template and default
- titleTemplate keeps a consistent title style by replacing %s with the page title, and titleDefault supplies a fallback when no title is given.
- Canonical URL with fallback
- Sets the canonical link to Astro. url. href when no canonical prop is passed; pass null to omit the link entirely.
- Opt-out indexing directives
- noindex and nofollow default to false, so pages are indexed and links followed unless the developer sets them true.
- Robots extras string
- robotsExtras takes a comma separated string for directives the booleans do not cover, such as max-snippet:-1 and max-image-preview:large.
- Open Graph object prop
- Open Graph properties, including title, type and image, are passed to the component as one object under the openGraph prop.
- Twitter card props
- Twitter values such as creator and image are passed in a twitter object rather than as separate meta tags.
- Layout props pattern
- Each page passes title and description to a shared layout, which holds a single SEO component in the head.
- Cache and archive control
- noarchive hides the cached link and nocache prevents caching of page content, both set through boolean props.
How it works
- Install the package with npm install astro-seo, or yarn add astro-seo if the project uses yarn.
- Import the SEO component from astro-seo in the frontmatter of an Astro page.
- Place the component inside the head element and pass title, description and other props.
- Pass Open Graph and Twitter data as objects, and add extra tags through the extend prop.
- For multi-page sites, put the component in a layout and pass values down from each page.
Plans and pricing
The repository lists no prices; the package is published under the MIT licence and installed from npm or yarn.
Integrations and platforms
Works with
- Astro
- npm
- yarn
Available as
- Web
Repository facts
- Repositoryjonasmerlin/astro-seo
- LanguageAstro
- Stars1427
- Forks69
- LicenceMIT
- Created2021-08-28
- Last commit2026-08-28
- Open issues3
- astro
- seo
Services and details
Does SEO work itself
YesFree plan or free tools
YesAPI or MCP server
Yes
No information yet on keyword research, content optimization, writes content with AI, technical audits, rank tracking, backlinks and link building, local SEO, AI search visibility, free trial, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.
About the company
- Company jonasmerlin
- Website: github.com/jonasmerlin/astro-seo
Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.