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.

Get started

This is how to get started

For creators

Start from a template, sketch what the pages should say, and let the assistant build it. Val hosts it: press Publish and it's live in seconds.

For creators

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.

For creators

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.

For creators

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.

For creators

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.

For creators

Proposals

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

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

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.

For creators

Live in seconds

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

For creators

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.

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

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.

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

For editors

A CMS made for the people who write: edit on the page, see your drafts before anyone else does, and publish when you're ready.

For editors

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.

For editors

Visual editing

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

For editors

Drafts and previews

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

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

// $ npx val validate
For editors

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)
For editors

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" }),
})
For editors

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.

For editors

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.

For editors

Studio on a phone

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

For editors

AI chat for editors

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

For developers

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

For developers

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"] }],
})
For developers

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.

For developers

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 }>
For developers

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,
)
For developers

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")
For developers

Schemas that explain themselves

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

For developers

No database

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

For developers

Your AI coding tools

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

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

// a Next.js server component
const page = await fetchVal(pageVal)
For developers

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.

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 →

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.