Introducing SanityPress with TypeGen: A Lean, Type-Safe Starter

Mitchell Christ
Mitchell Christ
  • Web Dev,
  • Sanity.io
Table of Contents
  1. What’s New in the TypeGen Version?
  2. What’s Kept from the OG SanityPress?
  3. What’s Different?
  4. Who Is This For?
  5. Why TypeGen Matters
  6. Get Started
  7. Final Word

If you’ve been around the Sanity + Next.js ecosystem for a while, you’ve probably heard of SanityPress. The OG SanityPress starter template is the most starred community-built Sanity starter on GitHub (350+ stars and 80+ forks) and is even featured on the official Sanity template page. It’s packed with features, built on a flexible modular architecture, and designed to get developers shipping fast.

But sometimes, you don’t need all the bells and whistles. Sometimes, you just want something lean, type-safe, and ready to evolve with your project.

That’s where the new SanityPress with TypeGen comes in.

What’s New in the TypeGen Version?

The headline feature: automatic schema type generation.

Previously, working with Sanity’s content in TypeScript meant manually defining schema types — a double workload and a potential source of mismatched types between your CMS and code.

Now, with Sanity TypeGen, that’s gone. You just run:

npm run typegen
a deloraian with black clover pattern livery drifting on the streets of LA, the Hollywood signage with the text "SanityPress" in the distant background, film still from the movie Fast and Furious

No more guessing. No more drift. Just pure type safety from schema to code.

What’s Kept from the OG SanityPress?

While this version is more minimal, it still keeps the core SanityPress magic:

  • Modular architecture — Pages are made up of pre-built, interchangeable “modules” (sections) that can be reordered, customized, or replaced. Need more? Add your own.
  • Pre-configured Sanity schema & frontend components — Skip the boilerplate and start building.
  • SEO-ready with perfect Lighthouse scores (💯/100) — Fast, accessible, and optimized out of the box.
  • Embedded Sanity Studio with Visual Editing — Edit content in place, directly in the page context.
  • Auto-generated sitemap.xml & blog RSS feed — Good SEO hygiene built in.

What’s Different?

This is a leaner template by design.

Compared to the OG SanityPress, the TypeGen version:

  • ❌ Does not include i18n (internationalization)
  • ❌ Does not come with fully styled components — styles are minimal so you can bring your own design system.
  • ✅ Does include automatic type generation for a seamless TypeScript experience.

Think of it as the stripped-down, type-safe starting point for devs who already have their own component library or styling approach, and who want the benefits of SanityPress’ modular structure without the extra layers.

Who Is This For?

This starter is perfect if you:

  • Already know your way around TypeScript, Next.js 15 (including React Server Components), Sanity.io, and Tailwind CSS v4
  • Want a minimal foundation with strong typing baked in
  • Prefer building your own UI layer rather than using pre-styled components
  • Care about type safety and want schema changes to reflect instantly in your code

Why TypeGen Matters

Even seasoned developers can slip when updating schema types manually. TypeGen removes the human error factor, syncing types directly from your schema files. This means:

  • Faster development — autocomplete that actually matches your CMS
  • Fewer runtime errors — type mismatches are caught at compile time
  • Less maintenance — change the schema once, and your types follow

For more on how TypeGen works under the hood, check the official Sanity TypeGen docs.

Get Started

You can create a new project from the public GitHub template in just a few clicks, then start customizing it to fit your needs.

From there, you can customize modules, extend the schema, or drop in your own components and styles.

Final Word

SanityPress with TypeGen is the leaner sibling to the OG SanityPress — perfect for devs who value type safety, minimalism, and flexibility. It’s not here to replace the original; it’s here to give you a lighter, type-driven starting point.

If you’ve been waiting for a type-safe SanityPress experience out of the box, this is it.