Web Development · head to head
Stimulus vs Turbopack

Stimulus
Web Development
Small JavaScript framework that adds behaviour to existing server rendered HTML
- From
- Free
- Free plan
- Yes

Turbopack
Web Development
Incremental bundler for JavaScript written in Rust
- From
- Free
- Free plan
- Yes
The short version
- Stimulus is an MIT licensed JavaScript framework.
- Both are free.
- Only Stimulus lists works with server rendered HTML; only Turbopack lists incremental computation.
- Where Stimulus falls short: does not render templates, so HTML must come from the server or another tool.
- Where Turbopack falls short: effectively coupled to Next.js; using it standalone is not the supported path.
How do Stimulus and Turbopack differ?
Stimulus and Turbopack differ on pricing model and platforms. Only the attributes on which Stimulus and Turbopack actually diverge.
Identical on both: starting price (Free), free tier (Yes), category (Web Development).
Not yet recorded: founded for Turbopack.
Which features does each one have?
They share no listed features; 7 appear only for Stimulus and 4 only for Turbopack. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Stimulus
- Controllers attached through data-controller
- Actions that bind DOM events to controller methods
- Targets for locating elements inside a controller
- Values that read, write and observe data attributes
- Works with server rendered HTML
- Designed to pair with Turbo in Hotwire
- MIT licensed open source
Only in Turbopack
- Incremental computation
- Written in Rust
- Next.js integration
- Fast refresh
What is each one used for?
Stimulus is most often brought in for adding small interactions to Rails views; Turbopack for large Next.js applications where rebuild time is the daily cost. The jobs each tool is most often brought in to do.
Stimulus
- Adding small interactions to Rails viewsnot Turbopack
- Progressive enhancement of server rendered pagesnot Turbopack
- Pairing with Turbo for fast page updatesnot Turbopack
- Replacing scattered jQuery codenot Turbopack
- Form and widget behaviour on existing HTMLnot Turbopack
Turbopack
- Large Next.js applications where rebuild time is the daily costnot Stimulus
- Teams already on Vercel’s stack wanting faster local feedbacknot Stimulus
- Migrating off webpack within Next.js without changing frameworksnot Stimulus
Where do Stimulus and Turbopack fall short?
Stimulus's most cited limit: does not render templates, so HTML must come from the server or another tool. Turbopack's: effectively coupled to Next.js; using it standalone is not the supported path. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Stimulus
- Does not render templates, so HTML must come from the server or another tool
- No built in routing, data fetching or client side state management
- Behaviour is tied to data attributes in markup, which some teams find harder to trace
- Not a component framework, so large interactive interfaces need other libraries
Turbopack
- Effectively coupled to Next.js; using it standalone is not the supported path
- Younger than the alternatives, and ecosystem plugin support is narrower than webpack’s
- Benchmark claims have been contested publicly, so measure on your own project rather than trusting headline numbers
- Being Vercel-driven ties its roadmap to one company’s framework priorities
How much do Stimulus and Turbopack cost?
Stimulus is free to use; Turbopack is free to use. Plan by plan below, from each vendor's own pricing page.
Stimulus
FreeNo published plan breakdown. See the Stimulus review.
Turbopack
Free- TurbopackFree
- Full functionality
- Commercial use permitted
- Community support
Which should you pick?
Choose Stimulus if
- You need controllers attached through data-controller.
- You want to start without paying.
- You also want actions that bind dom events to controller methods.
Choose Turbopack if
- You need incremental computation.
- You want to start without paying.
- You work on Linux, macOS, Windows.
- You also want written in rust.
Questions people ask
- Is Stimulus or Turbopack better?
- It depends on the job. Stimulus fits adding small interactions to Rails views; Turbopack fits large Next.js applications where rebuild time is the daily cost. Stimulus starts at Free and Turbopack at Free.
- Which is cheaper, Stimulus or Turbopack?
- Stimulus starts at Free and Turbopack at Free.
- Does Stimulus or Turbopack run on more platforms?
- Stimulus runs on Web. Turbopack runs on Linux, macOS, Windows.
- Can I use Stimulus for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Stimulus best used for?
- Stimulus is most often used for adding small interactions to rails views, progressive enhancement of server rendered pages, pairing with turbo for fast page updates, replacing scattered jquery code. Of those, adding small interactions to rails views and progressive enhancement of server rendered pages are not what Turbopack is typically brought in for.
- What can Stimulus do that Turbopack cannot?
- Stimulus covers Controllers attached through data-controller, Actions that bind DOM events to controller methods, Targets for locating elements inside a controller, Values that read, write and observe data attributes. Turbopack covers Incremental computation, Written in Rust, Next.js integration, Fast refresh.
Answered from the vendors’ own pages
Stimulus: What is Stimulus used for?
Stimulus enhances HTML that already exists on the page by connecting JavaScript controllers to elements through data attributes. It does not generate the HTML itself.
SourceTurbopack: Is Turbopack free?
Yes, open source from Vercel.
Stimulus: What are the core concepts in Stimulus?
Controllers are the main unit, and they are joined by actions, targets and values. Actions link events to methods, targets find elements and values store state in data attributes.
SourceTurbopack: Can I use Turbopack without Next.js?
Not really. It is developed as the Next.js bundler, and standalone use is not the supported path.
Stimulus: What licence does Stimulus use?
The GitHub repository states that Stimulus is released under the MIT licence. It is free to use.
SourceTurbopack: Is Turbopack faster than Vite?
It depends on the project, and published comparisons have been disputed by both sides. Measure on your own codebase rather than relying on headline figures.
Stimulus: Why was Stimulus created?
According to the project's origin page, Basecamp used a mix of jQuery, vanilla JavaScript and object oriented subsystems that were hard to reuse and learn. Stimulus condensed those patterns into a small, consistent framework.
SourceRelated pages
Other head to heads
- Stimulus vs Vue.js
- Stimulus vs React
- Stimulus vs Alpine.js
- Stimulus vs HTMX
- Stimulus vs Svelte
- Stimulus vs MUI
- Stimulus vs Preact
- Stimulus vs SolidJS
- Stimulus vs Bootstrap
- Stimulus vs Lit
- Stimulus vs Angular
- Stimulus vs Radix UI
- Stimulus vs Hono
- Stimulus vs jQuery
- Stimulus vs Meteor
- Stimulus vs Parcel
- Stimulus vs PHP
- Stimulus vs PrimeReact
- Stimulus vs esbuild
- Stimulus vs Rollup
- Stimulus vs Rspack
- Stimulus vs Chakra UI
- Stimulus vs Hugo
- Stimulus vs Docusaurus
- Stimulus vs Mantine
- Stimulus vs shadcn/ui
- Stimulus vs TypeScript
- Stimulus vs AdonisJS
- Stimulus vs Cloudflare Pages
- Stimulus vs Eleventy
- Stimulus vs Fastify
- Stimulus vs Gulp
- Turbopack vs Vue.js
- Turbopack vs React
- Turbopack vs Alpine.js
- Turbopack vs HTMX
- Turbopack vs Svelte
- Turbopack vs MUI
- Turbopack vs Preact
- Turbopack vs SolidJS
- Turbopack vs Bootstrap
- Turbopack vs Lit
- Turbopack vs Angular
- Turbopack vs Radix UI
- Turbopack vs Hono
- Turbopack vs jQuery
- Turbopack vs Meteor
- Turbopack vs Parcel
- Turbopack vs PHP
- Turbopack vs PrimeReact
- Turbopack vs esbuild
- Turbopack vs Rollup
- Turbopack vs Rspack
- Turbopack vs Chakra UI
- Turbopack vs Hugo
- Turbopack vs Docusaurus
- Turbopack vs Mantine
- Turbopack vs shadcn/ui
- Turbopack vs TypeScript
- Turbopack vs AdonisJS
- Turbopack vs Cloudflare Pages
- Turbopack vs Eleventy
- Turbopack vs Fastify
- Turbopack vs Gulp
