We used the Hackday of SymfonyCon Warsaw 2026 to announce what we would like Symfony UX 4.0 to be: a UX that no longer depends on Stimulus, Turbo or the rest of the Hotwire ecosystem.

Nothing is decided yet. The proposal is an RFC, symfony/ux#4387, and this post invites you to read it and to weigh in.

Why Leave Hotwire

Symfony UX was built on Stimulus from its first day. Today, 15 of our 21 npm packages have it as a peer dependency, and UX Turbo wraps Hotwire Turbo.

The last Stimulus release, 3.2.2, dates from August 2023. Its repository still receives commits, but none of them has been published to npm in more than three years.

Stimulus, Turbo and Hotwire Native also live in repositories where Symfony has no say. We would rather own this layer, in TypeScript, and be able to fix and evolve it ourselves. The RFC gives the full reasoning, including my personal reasons for wanting this change.

What UX 4.0 Would Look Like

The proposal has three parts:

  • a core package, symfony/ux (the name is not final), that every UX package requires and that holds what they share, including the integration with AssetMapper, Reprise and Webpack Encore;
  • our own JavaScript runtime in that core package, to replace Stimulus;
  • our own client for UX Turbo (Streams, Frames and Drive), while its PHP API stays as it is.

Two designs are on the table for the runtime, and choosing between them is the main goal of the RFC:

  • Version A turns each UX package into a native custom element, such as <ux-chart>. It relies on the lifecycle of the platform, but it changes the markup of your templates.
  • Version B keeps the markup you write today (data-controller, data-action, data-*-target) and replaces what reads it. Your templates and your CSS do not change.

In both versions, a controller is declared with one definition object, and its targets and values are typed from it, in TypeScript and in plain JavaScript:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { Controller } from '@symfony/ux';

export default class extends Controller({
    targets: { input: HTMLTextAreaElement, count: HTMLOutputElement },
    values: { max: Number },
}) {
    connect() {
        this.watchValue('max', () => this.update(), { immediate: true });
    }

    update() {
        const length = this.target('input').value.length;

        this.target('count').textContent = `${length} / ${this.value('max')}`;
    }
}

This example uses the version B flavor, and the import path is a placeholder. Both designs come with a tested prototype of about 3 KB gzipped, where Stimulus weighs 11 KB.

No Big Bang

The plan is to take the whole 3.x series to get there:

  • in 3.x, the new runtime ships next to Stimulus, and you opt in package by package;
  • later in 3.x, the Stimulus controllers of the UX packages, StimulusBundle and the Hotwire Turbo integration are deprecated, with a migration guide;
  • in 4.0, they are removed, and the runtime becomes public API for your own code.

Your application can keep Stimulus for its own controllers after 4.0. It then installs and starts Stimulus itself.

Some parts are still open, and the RFC says so. UX Native is one of them: it integrates Hotwire Native today, and we do not know yet which solution it will build on.

We Need Your Feedback

Read the RFC and comment on it. We would like to hear from you if you maintain a bundle that ships Stimulus controllers, or an application with many of them: the migration plan has to work for you.