Web Development · head to head
Gatsby vs Stimulus

Gatsby
Web Development
Open-source React framework for building websites and apps
- From
- Free
- Free plan
- Yes

Stimulus
Web Development
Small JavaScript framework that adds behaviour to existing server rendered HTML
- From
- Free
- Free plan
- Yes
The short version
- Stimulus is an MIT licensed JavaScript framework.
- Both are free.
- Only Gatsby lists react-based component development; only Stimulus lists designed to pair with Turbo in Hotwire.
- Where Gatsby falls short: Gatsby Cloud hosting ended in August 2023 and was merged into Netlify.
- Where Stimulus falls short: does not render templates, so HTML must come from the server or another tool.
How do Gatsby and Stimulus differ?
Gatsby and Stimulus differ on platforms. Only the attributes on which Gatsby and Stimulus actually diverge.
Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes), category (Web Development).
Not yet recorded: founded for Gatsby.
Which features does each one have?
They share no listed features; 8 appear only for Gatsby and 7 only for Stimulus. 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 Gatsby
- React-based component development
- GraphQL data layer
- Plugin and theme ecosystem
- Static site generation
- Server-side rendering
- Deferred Static Generation
- Headless CMS integration
- Cloud Functions support
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
What is each one used for?
Gatsby is most often brought in for marketing sites pulling content from a headless CMS; Stimulus for adding small interactions to Rails views. The jobs each tool is most often brought in to do.
Gatsby
- Marketing sites pulling content from a headless CMSnot Stimulus
- Blogs and documentation sites built in Reactnot Stimulus
- Static sites with image optimisation pluginsnot Stimulus
- Migrating existing Gatsby Cloud sites to Netlifynot Stimulus
Stimulus
- Adding small interactions to Rails viewsnot Gatsby
- Progressive enhancement of server rendered pagesnot Gatsby
- Pairing with Turbo for fast page updatesnot Gatsby
- Replacing scattered jQuery codenot Gatsby
- Form and widget behaviour on existing HTMLnot Gatsby
Where do Gatsby and Stimulus fall short?
Gatsby's most cited limit: Gatsby Cloud hosting ended in August 2023 and was merged into Netlify. Stimulus's: does not render templates, so HTML must come from the server or another tool. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Gatsby
- Gatsby Cloud hosting ended in August 2023 and was merged into Netlify
- The GitHub repository's releases section is empty, so release cadence is unclear
- Requires React and GraphQL knowledge; there is no visual editor
- Hosting, CMS and build services are paid separately
- Official hosting guidance now centres on Netlify
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
How much do Gatsby and Stimulus cost?
Gatsby is free to use; Stimulus is free to use. Plan by plan below, from each vendor's own pricing page.
Gatsby
FreeNo published plan breakdown. See the Gatsby review.
Stimulus
FreeNo published plan breakdown. See the Stimulus review.
Which should you pick?
Choose Gatsby if
- You need react-based component development.
- You want to start without paying.
- You work on Web, Windows, macOS, Linux.
- You also want graphql data layer.
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.
Questions people ask
- Is Gatsby or Stimulus better?
- It depends on the job. Gatsby fits marketing sites pulling content from a headless CMS; Stimulus fits adding small interactions to Rails views. Gatsby starts at Free and Stimulus at Free.
- Which is cheaper, Gatsby or Stimulus?
- Gatsby starts at Free and Stimulus at Free.
- Does Gatsby or Stimulus run on more platforms?
- Gatsby runs on Web, Windows, macOS, Linux. Stimulus runs on Web.
- Can I use Gatsby for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Gatsby best used for?
- Gatsby is most often used for marketing sites pulling content from a headless cms, blogs and documentation sites built in react, static sites with image optimisation plugins, migrating existing gatsby cloud sites to netlify. Of those, marketing sites pulling content from a headless cms and blogs and documentation sites built in react are not what Stimulus is typically brought in for.
- What can Gatsby do that Stimulus cannot?
- Gatsby covers React-based component development, GraphQL data layer, Plugin and theme ecosystem, Static site generation. 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.
Answered from the vendors’ own pages
Gatsby: Is Gatsby free?
Yes. Gatsby is open source under the MIT License, and the project site lists no paid Gatsby plans. You pay separately for hosting and any CMS you connect.
SourceStimulus: 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.
SourceGatsby: What happened to Gatsby Cloud?
Netlify acquired Gatsby, Inc. in February 2023 and ended Gatsby Cloud in August 2023, folding it into Netlify. The Gatsby site offers migration paths to Netlify.
SourceStimulus: 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.
SourceGatsby: Does Gatsby support server-side rendering?
Yes. Wikipedia says version 4 added server-side rendering and Deferred Static Generation alongside static generation. The Gatsby site also mentions Cloud Functions.
SourceStimulus: What licence does Stimulus use?
The GitHub repository states that Stimulus is released under the MIT licence. It is free to use.
SourceStimulus: 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
- Gatsby vs Docusaurus
- Gatsby vs Remix
- Gatsby vs Next.js
- Gatsby vs Hugo
- Gatsby vs Eleventy
- Gatsby vs Astro
- Gatsby vs Netlify
- Gatsby vs React
- Gatsby vs Base UI
- Gatsby vs TanStack Start
- Gatsby vs MUI
- Gatsby vs esbuild
- Gatsby vs Mantine
- Gatsby vs Nuxt
- Gatsby vs Rollup
- Gatsby vs shadcn/ui
- Gatsby vs Angular
- Gatsby vs Vercel
- Gatsby vs Vue.js
- Gatsby vs Alpine.js
- Gatsby vs HTMX
- Gatsby vs Svelte
- Gatsby vs Preact
- Gatsby vs SolidJS
- Gatsby vs Bootstrap
- Gatsby vs Lit
- Gatsby vs Radix UI
- Gatsby vs Hono
- Gatsby vs jQuery
- Gatsby vs Meteor
- Gatsby vs Parcel
- Gatsby vs PHP
- Gatsby vs PrimeReact
- Stimulus vs Docusaurus
- Stimulus vs Remix
- Stimulus vs Next.js
- Stimulus vs Hugo
- Stimulus vs Eleventy
- Stimulus vs Astro
- Stimulus vs Netlify
- Stimulus vs React
- Stimulus vs Base UI
- Stimulus vs TanStack Start
- Stimulus vs MUI
- Stimulus vs esbuild
- Stimulus vs Mantine
- Stimulus vs Nuxt
- Stimulus vs Rollup
- Stimulus vs shadcn/ui
- Stimulus vs Angular
- Stimulus vs Vercel
- Stimulus vs Vue.js
- Stimulus vs Alpine.js
- Stimulus vs HTMX
- Stimulus vs Svelte
- Stimulus vs Preact
- Stimulus vs SolidJS
- Stimulus vs Bootstrap
- Stimulus vs Lit
- Stimulus vs Radix UI
- Stimulus vs Hono
- Stimulus vs jQuery
- Stimulus vs Meteor
- Stimulus vs Parcel
- Stimulus vs PHP
- Stimulus vs PrimeReact
