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.
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.
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.
Drafts and previews
Every change is a draft you see on the real page, and in Review, before it goes live.
Live in seconds
Press Publish and the change is on your site seconds later. No CI to wait for, no deploy to watch.
s.object({
hero: s.image(),
body: s.richtext({ bold: true, a: true }),
author: s.keyOf(authorsVal),
})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.
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 siteI 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.
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.
Proposals
Collect changes in a proposal with its own preview. Compare it with the live site, then publish it all at once.
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.
AI chat for editors
An experimental AI chat in Val Studio helps editors write and change content. Turn it on in your val.config.
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.
const schema = s.object({
title: s.string(),
accent: s.color(),
})
export default c.define("/app/page.val.ts", schema, {
title: "",
accent: "#6ee7b7",
})Hello, Val
Rendered from page.val.ts
Get started npm create @valbuildI 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.
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.
Visual editing
Click any text or image on the page to edit it. The page follows as you type.
const schema = s.object({
href: s.route(), // must be a page in your app
})
// $ npx val validateRich text and links
Bold, lists, headings and links. Links to your own pages are picked, not typed, so they can't break.
author: s.keyOf(authorsVal)References
Point at an author, a product or a category instead of copying it. Change it once and every page that references it follows.
s.object({
title: s.string(),
accent: s.color({ format: "hex" }),
snippet: s.code({ language: "typescript" }),
})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.
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.
c.define("/settings.val.ts", s.settings(), {
theme: { accent: "#7a3b1d", radius: "square" },
})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.
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.
- Val StudioEdit and publish
- ValBuilds and serves it
- 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.
Content as code
Content is TypeScript next to your components: typed, validated, reviewed in git. Your editors get a Studio built from your schema.
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"] }],
})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.
Local development
Run your app, open the Studio and edit: Save writes the change into your .val.ts files, ready to review and commit.
const page = await fetchVal(pageVal)
page.title // string
page.intro // RichText<{ bold: true }>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.
s.string().validate((title) =>
title.length > 60 ? "Keep titles under 60 characters" : false,
)Validated everywhere
The schema's rules run in the Studio as editors type, in your editor, and in CI with val validate.
s.color().describe("Background of the hero section")Schemas that explain themselves
Describe a field once. Editors see the description next to the input, and the AI assistant reads it too.
No database
Content lives in your repository, not in a database: every change is a diff you can review, branch and revert.
// any component
const page = useVal(pageVal)
// a Next.js server component
const page = await fetchVal(pageVal)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
read app/(main)/pricing/page.val.tsrun npx val validatefaq: 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.