The official Sanity integration for Astro

Official(made by Sanity team)

By Rune Botten & Cody Olsen

Integrate content from Sanity on Astro websites

Install command

npx astro add @sanity/astro @astrojs/react

Contributors

Cody Olsen

Creative JavaScript Developer & UI designer, passionate about UX & A11Y 💖

Cody is located at Oslo
Visit Cody Olsen's profile

Official Recipes by Sanity

First Published Timestamp Function

Featured contribution
Official(made by Sanity team)

Automatically track when content was first published with a timestamp that sets once and never overwrites, providing reliable publication history for analytics and editorial workflows.

Knut Melvær
Go to First Published Timestamp Function

Automatically tag blog posts

Featured contribution
Official(made by Sanity team)

AI-powered automatic tagging for Sanity blog posts that analyzes content to generate 3 relevant tags, maintaining consistency by reusing existing tags from your content library.

Go to Automatically tag blog posts