Val · CMS and hosting in one

Build a website.Let anyone edit it.

Build it with AI, or build it yourself in TypeScript. Either way your site comes with a CMS your team can use, and Val hosts it: press Publish and it's live in seconds.

I need a new website

Pick a template and Val hosts it, with its Studio. Press Publish and your change is live in seconds: nothing to build, nothing to deploy.

I need a new website

Your site, on Val

Pick a template, edit it in the Studio, with code mode or in your own editor, connect git if you want, and publish. Val hosts it.

I need a new website

Sketch it first

Write what the page should say, with a box for every picture or section that isn't text yet. Press Build, and the assistant makes the page from your sketch.

I need a new website

Drafts and previews

Every change is a draft you see on the real page, and in Review, before it goes live.

I need a new website

Live in seconds

Press Publish and the change is on your site seconds later. No CI to wait for, no deploy to watch.

files-on-a-cdn.ts
s.object({
  hero: s.image(),
  body: s.richtext({ bold: true, a: true }),
  author: s.keyOf(authorsVal),
})
I need a new website

Files on a CDN

Images, files and video are served from Val's CDN. Upload them in the Studio, or from code with one command.

I need a new website

Hosted by Val

Pick a template and get a live site with its Studio in under a minute. Bring your own domain when you are ready.

A minute with Val

From schema to published in five steps

// in code
// admin.val.build → New site

I need an AI harness for my app

Let AI change the content and the code, safely: every change lands in a proposal with its own preview, and goes live only when you publish it.

I need an AI harness for my app

AI that asks first

Ask for a change. The AI makes it, code and content, in a proposal you preview and review. Nothing goes live until you publish.

I need an AI harness for my app

Proposals

Collect changes in a proposal with its own preview. Compare it with the live site, then publish it all at once.

I need an AI harness for my app

Code mode

Ask for something only code can do, like a new section. The assistant changes the code in a proposal, Val builds it, and you review code beside content.

I need an AI harness for my app

AI chat for editors

An experimental AI chat in Val Studio helps editors write and change content. Turn it on in your val.config.

I need an AI harness for my app

Your AI coding tools

Cursor and Claude Code use the same tooling you do: the types, the schema and Val's validation.

Try it

Content is just code

This is a .val.ts file. Change the title or the colour and watch the page update. In Val Studio, editors make the same change without touching the code.

page.val.tsLive
const schema = s.object({
  title: s.string(),
  accent: s.color(),
})

export default c.define("/app/page.val.ts", schema, {
  title: "",
  accent: "#6ee7b7",
})
accent

Hello, Val

Rendered from page.val.ts

Get started
npm create @valbuild
Read the docs →

I need a CMS

A real CMS for the people who write: edit on the page, rich text, galleries, links that can't break, in a Studio that wears your brand.

I need a CMS

A CMS for your team

Your developer sets it up once. Your editors click the page to edit it, preview their drafts and publish when they are ready.

I need a CMS

Visual editing

Click any text or image on the page to edit it. The page follows as you type.

rich-text-and-links.ts
const schema = s.object({
  href: s.route(), // must be a page in your app
})

// $ npx val validate
I need a CMS

Rich text and links

Bold, lists, headings and links. Links to your own pages are picked, not typed, so they can't break.

references.ts
author: s.keyOf(authorsVal)
I need a CMS

References

Point at an author, a product or a category instead of copying it. Change it once and every page that references it follows.

an-editor-for-every-field.ts
s.object({
  title: s.string(),
  accent: s.color({ format: "hex" }),
  snippet: s.code({ language: "typescript" }),
})
I need a CMS

An editor for every field

Images from a gallery, links to pages, video with its poster, colours, code: the Studio builds the right editor for each field.

I need a CMS

Pages built from sections

Pages are lists of sections that editors add, fill in and reorder, while the code decides what each section can be.

make-the-studio-yours.ts
c.define("/settings.val.ts", s.settings(), {
  theme: { accent: "#7a3b1d", radius: "square" },
})
I need a CMS

Make the Studio yours

Your colour, your corners, your logo. The Studio's theme is content in a settings module, so changing it takes an editor, not a deploy.

I need a CMS

Studio on a phone

The same Studio folds into tabs on a phone: fix a typo or publish a change from wherever you are.

Publishing

Publish is the deploy

On Val's hosting, Publish builds the change and serves it, usually in seconds. Every publish is kept, so you can see what changed and go back.

  1. Val StudioEdit and publish
  2. ValBuilds and serves it
  3. LiveIn seconds

I need it in my codebase

For senior developers: content is TypeScript next to your components. Typed, validated, reviewed and versioned with the rest of the code.

I need it in my codebase

Content as code

Content is TypeScript next to your components: typed, validated, reviewed in git. Your editors get a Studio built from your schema.

content-in-typescript.ts
const schema = s.object({
  title: s.string(),
  intro: s.richtext({ bold: true }),
})

export default c.define("/app/page.val.ts", schema, {
  title: "Content as code",
  intro: [{ tag: "p", children: ["Hello"] }],
})
I need it in my codebase

Content in TypeScript

Define a schema and write the content right below it. It's a .val.ts file, reviewed and versioned with the rest of your code.

I need it in my codebase

Local development

Run your app, open the Studio and edit: Save writes the change into your .val.ts files, ready to review and commit.

type-safe-from-end-to-end.ts
const page = await fetchVal(pageVal)

page.title // string
page.intro // RichText<{ bold: true }>
I need it in my codebase

Type safe from end to end

Content is typed, so the compiler catches a missing field or a wrong type before it ships. If it doesn't type-check, it doesn't ship.

validated-everywhere.ts
s.string().validate((title) =>
  title.length > 60 ? "Keep titles under 60 characters" : false,
)
I need it in my codebase

Validated everywhere

The schema's rules run in the Studio as editors type, in your editor, and in CI with val validate.

schemas-that-explain-themselves.ts
s.color().describe("Background of the hero section")
I need it in my codebase

Schemas that explain themselves

Describe a field once. Editors see the description next to the input, and the AI assistant reads it too.

I need it in my codebase

No database

Content lives in your repository, not in a database: every change is a diff you can review, branch and revert.

tanstack-start-and-next-js.ts
// any component
const page = useVal(pageVal)

// a Next.js server component
const page = await fetchVal(pageVal)
I need it in my codebase

TanStack Start and Next.js

Val is built for TanStack Start, and Next.js is supported too. Read content with hooks that resolve on the server and in the browser.

Build with AI

Describe it. The assistant builds it.

In Val Studio, code mode lets the assistant change your site's code in a proposal you review. In your editor, your AI coding tools get the same types and checks, so they can add sections, write content and fix what validation finds.

  • Works with the AI coding tools you already use
  • Types and schemas give the assistant the full picture
  • npx val validate tells it when something is wrong
Add an FAQ to the pricing page with three questions.
read app/(main)/pricing/page.val.ts
run npx val validate
Done. I added an faq field to the schema and three questions to the content. Validation passes:
faq: s.array(
  s.object({
    question: s.string(),
    answer: s.richtext({ bold: true }),
  }),
),

FAQ

Questions, answered

What is Content As Code?

Your content lives in TypeScript files in your repository. Editors still get a full CMS: drafts, previews, review and publishing, and on Val's hosting a publish is live in seconds.

What frameworks does Val support?

Val is built for TanStack Start, and supports Next.js too.

How does Val scale?

Content lives in your repo instead of a database, which is much simpler for most sites. Today Val is a great fit up to roughly 10,000 entries per repo. Past that, a database-backed CMS may serve you better.

Does Val support i18n?

Yes. List your languages in the settings module, and the Studio lets editors switch the whole Studio to one language, shows what is not translated yet, and can ask the AI assistant to translate it.

Does Val have any AI features?

Yes. You can try the experimental AI features by reading this article.

Your site, live in a minute

Start a hosted site free for 14 days. No card needed.