---
title: "SanityPress with TypeGen — A Lean, Type-Safe Starter"
description: "Meet SanityPress with TypeGen: a minimal, type-safe Next.js + Sanity starter with auto-generated types, built on the popular 350-star original template."
---

![SanityPress with TypeGen — A Lean, Type-Safe Starter](https://cdn.sanity.io/images/cyu7k2r0/production/0a201adf268f15b20e7376b7649b1daa9def9faa-1536x1024.png?blur=30&q=100&auto=format)

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

![Mitchell Christ](https://cdn.sanity.io/images/cyu7k2r0/production/26bddd620298806d202e516a4078eab89dc8117a-1254x1254.png?q=100&auto=format)

By Mitchell Christ

* [Web Dev](https://sanitypress.dev/blog?category=web-dev),
* [Sanity](https://sanitypress.dev/blog?category=sanity)
Aug 13, 20253 min read

On this page
1. [What’s New in the TypeGen Version?](#whats-new-in-the-typegen-version)
2. [What’s Kept from the OG SanityPress?](#whats-kept-from-the-og-sanitypress)
3. [What’s Different?](#whats-different)
4. [Who Is This For?](#who-is-this-for)
5. [Why TypeGen Matters](#why-typegen-matters)
6. [Get Started](#get-started)
7. [Final Word](#final-word)

### Ready to build your next website with SanityPress?

[🚀 Get started today](https://sanitypress.dev/docs/getting-started)

If you’ve been around the Sanity + Next.js ecosystem for a while, you’ve probably heard of [SanityPress](https://sanitypress.dev/). The OG SanityPress starter template is the **most starred community-built Sanity starter** on GitHub (400+ stars and 80+ forks) and is even featured on the [official Sanity template page](https://www.sanity.io/templates). 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](https://www.sanity.io/docs/apis-and-sdks/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](https://cdn.sanity.io/images/cyu7k2r0/production/a111794221a8dea98ff39ef691dbee6f0d22b7e1-1536x1024.png?q=100&auto=format)

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**](https://2023.sanitypress.dev/blog/design-smarter-build-faster-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](https://2023.sanitypress.dev/blog/how-fast-is-sanitypress) (💯/100)** — Fast, accessible, and optimized out of the box.
* [**Embedded Sanity Studio with Visual Editing**](https://2023.sanitypress.dev/blog/why-you-should-embed-your-studio) — 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)**](https://2023.sanitypress.dev/blog/i18n-is-here)
* ❌ 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](https://www.sanity.io/docs/apis-and-sdks/sanity-typegen).

## Get Started

You can [create a new project from the public GitHub template](https://github.com/new?template%5Fname=sanitypress&template%5Fowner=nuotsu) 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](https://sanitypress.dev/) 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.

![SanityPress F1 car](https://cdn.sanity.io/images/cyu7k2r0/production/c945d8094ba34d9bf31be90c309dff97686e847d-1344x896.jpg?q=100&auto=format)

1. [Home](https://sanitypress.dev/)
2. [Blog](https://sanitypress.dev/blog)
3. Introducing SanityPress with TypeGen: A Lean, Type-Safe Starter

## Stop Scaffolding. Start Shipping.

[🚀 Start building](https://sanitypress.dev/docs/getting-started)[⭐ Star on GitHub](https://sanitypress.dev/repo)
