Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
sanity-io

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
@sanity-io

Sanity

A fully customizable all-code backend for content-driven websites and apps. Get started for free.
Sanity

Sanity - Content Operating System

npmnpm downloadsDiscordMIT License


Sanity is aContent Operating System that turns content into structured, reusable data. We give developers complete control over how content is modeled, managed, and delivered.

Quick Links

🚀Get started • 📚Documentation • 💬Community • 🎓Learn • 📦Exchange

Why Developers Choose Sanity

  • Content Lake: Real-time database for structured content - query withGROQ, access via HTTP APIs from any language
  • Schema-as-code: Define content models in TypeScript/JavaScript, version control them, get automatictype generation
  • Real-time: Live queries, collaborative editing, instant previews built-in
  • Customizable: React-based Studio you can customize completely, plusApp SDK for organization-wide applications
  • Framework agnostic: Works with Next.js, Remix, Astro, or any framework
  • AI-ready: Structured content with rich context that AI can use effectively
See code examples

Schema-as-code

// schemaTypes/articleType.tsimport{defineType,defineField}from"sanity";exportconstarticleType=defineType({name:"article",type:"document",fields:[defineField({name:"title",type:"string",validation:(Rule)=>[Rule.required(),Rule.max(80).warning("Titles over 80 characters may be truncated in search results"),],}),defineField({name:"excerpt",type:"text",validation:(Rule)=>Rule.custom((value,context)=>{// Cross-field validationconstisFeatured=context.document?.featured;returnisFeatured&&!value            ?"Featured articles need an excerpt"            :true;}),}),],});

GROQ query language

import{defineQuery}from"groq";exportconstARTICLES_QUERY=defineQuery(`*[_type == "article"] {  _id,  title,  "author": author->name,  "categories": categories[]->title,  "wordCount": length(pt::text(body))}[0...10]`);

GraphQL is also available if you prefer it.

Getting Started

npm create sanity@latest

Thiscreates a Sanity project with Studio and connects you to the Content Lake. You'll get:

  • A customizable content management interface
  • Real-time APIs for your content
  • Automatic TypeScript types
  • Generous free tier with hosting and bandwidth included (no credit card required)

Pricing: Start free, pay-as-you-go for overages.View pricing →

Trusted By

Sanity powers content operations for teams atFigma,Spotify,Shopify,Riot Games,Linear,Cloudflare,Netlify,Replit,PUMA,Nike,Supreme,Condé Nast,AT&T,Samsung, and thousands more.

Community & Resources

Key Repositories

Contributing

We welcome contributions to our open source projects. Check each repository's CONTRIBUTING.md for guidelines, or report bugs in the relevant issue tracker.


Built by developers, for developers. We treat content as a strategic asset and give technical teams the tools to work without constraints.

PinnedLoading

  1. sanitysanityPublic

    Sanity Studio – Rapidly configure content workspaces powered by structured content

    TypeScript 5.9k 499

  2. GROQGROQPublic

    Specification for GROQ - The Query Language for JSON

    JavaScript 429 16

  3. next-sanitynext-sanityPublic

    Sanity toolkit for Next.js

    TypeScript 896 107

  4. litterlitterPublic

    Litter is a pretty printer library for Go data structures to aid in debugging and testing.

    Go 1.6k 60

  5. groq-jsgroq-jsPublic

    JavaScript implementation of GROQ, the query language for JSON

    TypeScript 327 26

  6. mendozamendozaPublic

    Differ for structured documents (JSON)

    Go 272 5

Repositories

Loading
Type
Select type
Language
Select language
Sort
Select order
Showing 10 of 354 repositories
  • sanity-io/sanity-sveltekit’s past year of commit activity
    TypeScript 60 1 3 UpdatedNov 6, 2025
  • sanity Public

    Sanity Studio – Rapidly configure content workspaces powered by structured content

    sanity-io/sanity’s past year of commit activity
    TypeScript 5,863MIT 499 370 152 UpdatedNov 6, 2025
  • contentful-to-sanity Public

    Migrate from Contentful to Sanity

    sanity-io/contentful-to-sanity’s past year of commit activity
    TypeScript 36MIT 8 6 8 UpdatedNov 6, 2025
  • styled-components-last-resort Public

    One does not simply remove styled-components from a codebase.

    sanity-io/styled-components-last-resort’s past year of commit activity
    TypeScript 184MIT 3 1 24 UpdatedNov 6, 2025
  • sdk Public

    Sanity App SDK

    sanity-io/sdk’s past year of commit activity
    TypeScript 11 1 1 38 UpdatedNov 6, 2025
  • react-rx Public

    React + RxJS = <3

    sanity-io/react-rx’s past year of commit activity
    TypeScript 66MIT 10 4 5 UpdatedNov 6, 2025
  • logos Public
    sanity-io/logos’s past year of commit activity
    TypeScript 2MIT0 1 1 UpdatedNov 5, 2025
  • blueprints-node Public

    Helper methods and type definitions for Sanity Blueprints

    sanity-io/blueprints-node’s past year of commit activity
    TypeScript 1 1 0 0 UpdatedNov 5, 2025
  • sanity-io/visual-editing’s past year of commit activity
    TypeScript 55MIT 25 37 9 UpdatedNov 6, 2025
  • pkg-utils Public

    Simple utilities for modern npm packages.

    sanity-io/pkg-utils’s past year of commit activity
    TypeScript 27MIT 5 7 9 UpdatedNov 5, 2025

[8]ページ先頭

©2009-2025 Movatter.jp