Skip to main content
All posts
May 20, 2026

Announcing Root.js v3.0

We're excited to announce the release of Root.js v3.0, which is centered around — you guessed it (cue more em dashes, please) — AI! With this release, Root AI gains reasoning support, tools for reading and writing directly to the CMS, and support for multiple LLM providers, including self-hosted models.

This release also includes a few major upgrades: a native JSX renderer built into Root.js, updates to the CMS authoring experience, and a faster build pipeline under the hood.

Here's a rundown of what's new and the few migration steps to watch for.

Root AI: streaming, reasoning, and tool calling

Root AI has been rewritten from the ground up with a streaming API for faster responses, reasoning support (with planning and execution modes), and tool calling so it can read from and write directly to the CMS.

Configuration has graduated out of experiments to a top-level ai plugin option, and you can register multiple models across different providers:

ts
cmsPlugin({
  ai: {
    models: [
      {
        id: 'claude-opus-4-7',
        label: 'Claude Opus 4.7',
        provider: 'anthropic',
        apiKey: process.env.ANTHROPIC_API_KEY,
        capabilities: {tools: true, reasoning: true, attachments: true},
      },
      {
        id: 'gpt-5.5',
        label: 'GPT-5.5',
        provider: 'openai',
        apiKey: process.env.OPENAI_API_KEY,
      },
      {
        id: 'gemini-3.1-pro',
        label: 'Gemini 3.1 Pro',
        provider: 'gemini',
        apiKey: process.env.GEMINI_API_KEY,
      },
    ],
    defaultModel: 'claude-opus-4-7',
  },
});

A visual refresh

The CMS UI got a style refresh. Support for custom themes is coming soon, so stay tuned!

Permission groups

Root v3.0 adds permission groups for more granular access control.

Within a permission group, you can assign a role to all users in the group, and optionally restrict their access to one or more collections. This makes it easy to give, say, a blog editorial team EDITOR access on just their collections without granting them the run of the project.

Component picker UI

The CMS now includes a "picker" variant that gives editors a visual way to choose components to add to a page, along with "presets" that prefill common field values.

Developers can enable the component picker by adding {variant: 'picker'} to schema.oneOf() fields. For example:

ts
schema.oneOf({
  id: 'block',
  variant: 'picker',
  types: [HeroSchema, GallerySchema],
});

// Hero.schema.ts
export default schema.define({
  name: 'Hero',
  image: '/cms/previews/hero.png',
  presets: [
    schema.preset<HeroFields>({
      id: 'big',
      label: 'Big hero',
      data: {title: 'Welcome', layout: 'wide'},
    }),
  ],
  fields: [...],
});

To use the picker variant by default across a project, set defaultOneOfVariant:

ts
cmsPlugin({
  defaultOneOfVariant: 'picker',
});

Task manager (experimental)

We're experimenting with a task manager built directly into the CMS for tracking content work without leaving the editor.

Longer term, we want this to be the place where teams coordinate tasks and reviews with both teammates and Root AI.

To opt in to the experiment:

ts
cmsPlugin({
  experiments: {taskManager: true},
});

Vite 8

Under the hood, we've updated Root's third-party dependencies to the latest versions. The biggest upgrade is Vite 8, which switches its bundler from Rollup to Rolldown.

As far as we know, the update to Vite 8 should be backwards compatible other than deprecation warnings to rename the config from "rollupOptions" to "rolldownOptions".

Learn more about Vite 8 at: https://vite.dev/blog/announcing-vite8

A native JSX renderer

Root now ships with its own JSX renderer (@blinkk/root/jsx). It exposes a Preact-compatible API so existing components, contexts, and islands keep working as before, while letting Root walk the VNode tree directly to handle custom-element formatting, script and style ordering, and context propagation.

That gives you cleaner HTML output, fewer server-side dependencies, and a renderer we can evolve directly alongside the rest of Root.

Opt in by adding jsxRenderer to root.config.ts:

ts
export default defineConfig({
  jsxRenderer: {
    mode: 'pretty',
    blockElements: ['my-card', 'my-section'],
  },
});

Plugin pods

Pods let plugins bundle a slice of a Root project (routes, elements, bundles, collections, translations, and even custom Vite plugins) so you can reuse it across sites. Add a pod to root.config.ts and its routes are mounted, its elements and bundles are auto-registered, and its collections appear in the CMS sidebar.

Pods make it much easier to share design systems, page templates, and CMS schemas across projects.

ts
import blogPod from '@third-party/blog-pod';

export default defineConfig({
  plugins: [
    blogPod(),
  ],
});

Notifications hooks

Plugins can now hook into Root's notifications service to trigger updates when events happen in the CMS, like sending an email or Slack message when a doc is published.

ts
cmsPlugin({
  notifications: [
    {
      id: 'team-notifier',
      label: 'Team notifier',
      onAction: async (ctx, action) => {
        if (action.action === 'doc.publish') {
          // ...send a notification.
        }
      },
    },
  ],
});

Installation

Root v3.0 is available now on npm and can be installed with your package manager of choice:

sh
pnpm add @blinkk/root@latest @blinkk/root-cms@latest

Migration notes

Upgrading from v2 to v3 is mostly a package update and a small config change. Here's what to watch for:

  • Vite 8: Rename build.rollupOptions to build.rolldownOptions in any custom Vite config.

  • JSX renderer: Optional. To opt in, add jsxRenderer: {mode: 'pretty'} to root.config.ts. The renderer is API-compatible, so no component changes are required.

  • Root AI config: Move from experiments.ai: {endpoint, model, ...} to the top-level ai: {models: [...]} shape.

The full breakdown is in packages/root/CHANGELOG.md and packages/root-cms/CHANGELOG.md.

Thank you!

Huge thank you to all the Root users who tested the alpha/beta builds and filed bugs and feature requests. Root is continually improving and we have so many more big features planned ahead.

Issues, ideas, and PRs are always welcome at github.com/blinkk/rootjs.

1
2
3
4
5
6
7
8
9
10
11
12
Breakpoint: