sanity-typed icon indicating copy to clipboard operation
sanity-typed copied to clipboard

Completing sanity's developer experience with typescript (and more)!

@sanity-typed

GitHub commit activity (branch) GitHub Repo stars GitHub contributors GitHub issues by-label License

GitHub Sponsors

Completing sanity's developer experience with typescript (and more)!

Page Contents

  • Fully Typed Sanity Client
    • Packages
  • Fully Offline Sanity Client
    • Packages
  • Runtime Validated Sanity Documents
    • Packages
  • More Typed Packages
    • Packages

Fully Typed Sanity Client

Watch How to Type Your Sanity Document and Client

Packages

  • @sanity-typed/types: Infer Sanity Document Types from Sanity Schemas
  • @sanity-typed/client: @sanity/client with typed GROQ Results
  • @sanity-typed/groq: Infer GROQ Result Types from GROQ strings

Fully Offline Sanity Client

Watch How to Offline Your Sanity Client and Generate Mock Data

Packages

  • @sanity-typed/faker: Generate Mock Data from Sanity Schemas
  • @sanity-typed/client-mock: Mock @sanity-typed/client for local development and testing
  • @sanity-typed/groq-js: groq-js with typed GROQ Results

Runtime Validated Sanity Documents

Watch How to Generate Zod Schemas for Sanity Documents

Packages

  • @sanity-typed/zod: Generate Zod Schemas from Sanity Schemas

More Typed Packages

Packages