Optimization recipes

Auto Summary Function

Official(made by Sanity team)

AI-Powered Content Summary from Long Form Content

Kevin Green
Go to Auto Summary Function

First Published Timestamp Function

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

Auto-Tag Function

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 Auto-Tag Function

Text Input with Presets

Want to add some preset buttons/chips below your text input field? Look no further!

Mitchell Christ
Go to Text Input with Presets

Unlimited nesting

This snippet is useful if you want a desk structure that allows columns with a parent page and children pages underneath it. As deep as you would like.

René Hasert
Go to Unlimited nesting

groqd implementation with portable text custom marks

If you're working on integrating portable text with custom markDefs using groqd, the following code snippet could be very useful. It might save you a considerable amount of research time.

Oybek Khalikovic
Go to groqd implementation with portable text custom marks

Other contribution categories