Val · for humans and agents

Build something Valuable

Val is a web development harness for TanStack Start and Next.js. You or your agents build locally or right in Val, in code mode or content mode, and anyone on your team can edit. It's engineered to be fast, reliable and maintainable (even by humans).

Get started

This is how to get started

  1. Sign up and 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.

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.

For creators

Fast images and video

Drop a photo or a video in the Studio's gallery. Before it's uploaded, a photo is scaled and turned into WebP and a video into a stream, and Val's CDN serves them, so your pages stay fast.

For creators

Know which content works

Val counts the content your visitors actually see, not just the pages they open: which sections, headings and images were on screen. The numbers show in the Studio, beside what you edit.

For creators

AI you can check

Ask for a change and the AI makes it, code and content, in a proposal. You preview it and check every change before anything goes live.

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.

For creators

Sketch it first

Ask for a new page and the assistant sketches it first: what it should say, with a box for every picture or section. Change what you like, then press Build and it makes the page.

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.

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.

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

One site, many languages

Each language gets its own pages, in the URL. Pick a language in the Studio and you only see that one, so translating is one page at a time.

For editors

Drafts and previews

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

For editors

A page builder, made of your components

Every section is one of your own React components. Editors move, add and remove them right on the page, and the code decides which sections there are.

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.

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 editors

Studio on a phone

The same Studio folds into tabs on a phone: fix a typo right on the page, or ask the assistant, from wherever you are.

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

Proposals are branches

Every proposal is a git branch. When two of them change the same thing, Val catches the conflict, and the AI or a developer resolves it.

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.

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.

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.

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.

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.

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

Files on a CDN, from code

Point an image at a file on disk and run val validate --fix: it is uploaded to Val's CDN and the path in your code is rewritten to it.

content-analytics-built-in.ts
// What a page view tells you, per route
{
  route: "/blogs/$slug",
  rendered: ['/blogs.val.ts?p="intro"."title"', …],
  viewed: ['/blogs.val.ts?p="intro"."title"', …],
}
For developers

Content analytics, built in

Val already knows which content each element on the page shows, so it counts content as well as pages, out of the box: no tracking code to add, no cookies and no visitor IDs.

For developers

Your AI coding tools

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

your-components-are-the-page-builder.ts
const hero = s
  .object({ type: s.literal("hero"), title: s.string() })
  .component(() => import("./Hero"));

// in the page:
<ValComponentEditor value={page.sections} />
For developers

Your components are the page builder

Link a section's schema to the React component that renders it. Editors arrange those components on the page, and only the kinds you declared exist.

Hosting

Run it locally. Host it yourself, or let Val.

Start on your machine with npm create @valbuild: no signup, no account. When the site goes live, it runs wherever you want it to.

Your own hosting

Vercel, Netlify, or anywhere your app runs

  • Publish makes a git commit and pushes it
  • The push deploys, as any commit does on your platform
  • Content stays in your repository, reviewed like code

Val hosting

Fast, on Cloudflare

  • A much faster flow: Publish is live in seconds
  • Served from Cloudflare, close to every visitor
  • Proposals: a preview link for every change, before it goes live

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

AI for developers

Readable by people. Great with agents.

Val is built to be maintained and verified by humans: content and schemas are plain TypeScript in your repository, reviewed in git like the rest of your code. That is also what makes it work so well with agentic coding: Val's language server gives your agent the same types, completions and checks it gives you.

  • Content and schemas you can read, review and verify
  • A language server: completions, routes and errors, in your editor and for your agent
  • npx val validate tells an agent 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 }),
  }),
),

AI for editors

An assistant for the people who write.

In Val Studio, editors ask the assistant to fix the tone of voice, check the spelling or rewrite a section. They can also have it make completely new components or change the ones the site has. Every change lands in a proposal, which is how Val keeps track of branches, with its own preview, and goes live only when it is published. Permissions decide who can do what.

  • Tone of voice, spelling and rewrites
  • New components, or changes to the ones you have
  • Safe in a proposal: preview it, review it, then publish
  • Permissions for who can change content, and who can change code
Make the About page friendlier, and add a section that introduces the team.
proposal: A friendlier About page
new component: Team
Done, in a proposal. I rewrote the intro and added a Team section with the three of you. Have a look in the preview before you publish it.

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.