Publish Once, Post Everywhere
Write once in Studio. Post everywhere. No copy-paste, no platform hopping.
Automate your content workflows with functions that trigger on document events. From AI-powered automatic tagging and content enrichment to translation and optimization, these pre-built functions save time and improve content quality across your Sanity projects.
Write once in Studio. Post everywhere. No copy-paste, no platform hopping.
Automatically format code blocks using Prettier to enforce consistency across all documents.
Automatically generate accessible, multilingual alt text for images in your Sanity Media Library using Agent Actions and Sanity Functions
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.
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.
Automatically update your Algolia index
Create, preview, and send Klaviyo campaigns without ever leaving Sanity Studio"
A Sanity function that tracks slug changes and creates redirects automatically.
Stop manually linking products. Let this function map relationships for you
Surface product age to help editors choose the freshest inventory
Automatically analyze and categorize the emotional tone of user comments
On document publish, send a Slack notification so your team is informed
AI-Powered Content Summary from Long Form Content
Get instant Telegram notifications when new comments are posted, with direct links to your Sanity Studio.
AI-Powered Tone Analysis for Consistent Brand Voice
Generate content changes for a piece of content
Inform your the Bluesky crowd when you publish a post
Spread the word on Mastodon when publishing a blog post
If you want to make it possible to use parameterised initialValue templates in reference fields, this is how!
Less is more - We're breaking down some of the core helpers we use when building our websites
Search documents that are tagged with at least one of these tag slugs
Get all content that references the current document
This is a simple starting off point to allow users to organize a page
Sometimes you need to change only one key-value-pair in your data, this is how you can do it in 2 lines
Okay, well it might be at least in the top 3. Using getDimensions and optimising the hell out of your images, check out this snippet
If you want to pass a parameter to a query that might not always be defined
This bash script can be used to delete documents using sanity cli.
Go to Delete documents using sanity cliHow to validate nested fields from the document or object level
Get parents parent in reference filter
A little 'hack' when you work on custom Document actions
A custom validation to check if your Microcopy documents have unique keys and values for a specific namespace.
Setting up a live preview and want to fetch a document's draft, with a fallback for the published document when there are no drafts? Check this out.
This validation can be used if you have two fields and you require one or the other to be filled
This snippet can be used to fetch current, previous and next articles based on publication date and related tags.
Validation of url input to allow certain URI schemes (mailto, tel and more included)