gatsby, remix, and vuepress are all tools for building web sites, but they serve different architectural needs. gatsby is a React-based static site generator (SSG) that uses GraphQL to unify data sources, ideal for marketing sites and blogs. remix is a full-stack React framework focused on server-side rendering (SSR) and web standards, best for dynamic applications and dashboards. vuepress is a Vue-based static site generator optimized for documentation, using Markdown as the primary content format.
Choosing between gatsby, remix, and vuepress depends on whether you need a static content site, a dynamic web app, or documentation. While gatsby and remix use React, vuepress uses Vue. Let's compare how they handle routing, data, and content.
gatsby uses file-based routing for pages but allows programmatic creation.
src/pages become routes automatically.gatsby-node.js.// gatsby: src/pages/about.js
import React from "react"
export default function About() {
return <div>About Us</div>
}
remix uses file-based routing nested in a routes folder.
// remix: app/routes/about.tsx
export default function About() {
return <div>About Us</div>
}
vuepress uses Markdown files in a specific directory.
docs/about.md becomes /about.html.// vuepress: docs/.vuepress/config.js
module.exports = {
themeConfig: {
nav: [{ text: 'About', link: '/about/' }]
}
}
gatsby uses GraphQL to fetch data at build time.
// gatsby: src/pages/index.js
import { graphql } from "gatsby"
export const query = graphql`{ site { siteTitle } }`
export default function Home({ data }) {
return <h1>{data.site.siteTitle}</h1>
}
remix uses loader functions to fetch data on the server.
// remix: app/routes/index.tsx
export async function loader() {
return json({ title: "Home" })
}
export default function Home() {
const data = useLoaderData()
return <h1>{data.title}</h1>
}
vuepress uses Markdown frontmatter for page data.
// vuepress: docs/about.md
---
title: About Us
layout: Layout
---
# About
Content goes here.
gatsby builds HTML files at build time.
// gatsby: gatsby-config.js
module.exports = {
plugins: [`gatsby-plugin-react-helmet`]
}
// Builds static HTML into /public folder
remix renders HTML on the server for each request.
// remix: remix.config.js
module.exports = {
serverDependenciesToBundle: [/* ... */]
}
// Server renders response on request
vuepress builds static HTML files at build time.
// vuepress: docs/.vuepress/config.js
module.exports = {
bundler: '@vuepress/bundler-vite'
}
// Generates static HTML files
gatsby relies on a plugin ecosystem for assets.
gatsby-plugin-image for optimization.// gatsby: src/components/image.js
import { GatsbyImage } from "gatsby-plugin-image"
export default ({ image }) => <GatsbyImage image={image} />
remix uses standard web imports for assets.
// remix: app/routes/index.tsx
import imgUrl from "~/assets/logo.png"
export default function Home() {
return <img src={imgUrl} alt="Logo" />
}
vuepress uses themes to handle styling.
// vuepress: docs/.vuepress/config.js
module.exports = {
theme: '@vuepress/theme-default'
}
// Theme handles CSS and layout automatically
While the differences are clear, these tools share some core concepts for building web experiences.
gatsby and remix use React components.vuepress uses Vue components.// React (Gatsby/Remix)
function Button() { return <button>Click</button> }
// Vue (VuePress)
// <template><button>Click</button></template>
gatsby is static-first by default.vuepress is static-first by default.remix can generate static files via adapters.// Gatsby: Static by default
// VuePress: Static by default
// Remix: export const config = { runtime: 'edge' }
// Gatsby: Link component preloads
// Remix: Prefetches resources on hover
// VuePress: Preloads next page assets
// Gatsby: react-helmet
// Remix: <meta /> in head export
// VuePress: frontmatter meta fields
gatsby has many plugins for CMS integration.remix has growing community adapters.vuepress has themes for documentation.// Gatsby: gatsby-source-wordpress
// Remix: remix-run adapters
// VuePress: @vuepress/plugin-search
| Feature | Shared by All Three |
|---|---|
| Core Tech | βοΈ React (Gatsby/Remix) or Vue |
| Rendering | π Static Generation Support |
| Performance | β‘ Code splitting, preloading |
| Developer Tools | π οΈ HMR, CLI, Local Dev Server |
| Web Standards | β SEO, Semantic HTML |
| Ecosystem | π₯ Plugins, Themes, Adapters |
| Feature | gatsby | remix | vuepress |
|---|---|---|---|
| Framework | βοΈ React | βοΈ React | π Vue |
| Primary Use | π Marketing Sites, Blogs | π₯οΈ Dynamic Web Apps | π Documentation |
| Data Layer | π GraphQL | π Loaders/Actions | π Markdown Frontmatter |
| Rendering | ποΈ Static (SSG) | π Server (SSR) + Static | ποΈ Static (SSG) |
| Routing | ποΈ File + Programmatic | ποΈ File-based Nested | ποΈ File-based Markdown |
| Learning Curve | π High (GraphQL + React) | π Medium (Web Standards) | π Low (Markdown + Vue) |
gatsby is like a content factory π β perfect for teams that need to pull data from many places into a fast static site. Ideal for marketing pages, blogs, and content sites where build times are acceptable.
remix is like a dynamic engine ποΈ β built for apps that need to handle user data, forms, and real-time updates. Ideal for dashboards, SaaS products, and interactive tools where server logic matters.
vuepress is like a documentation writer π β designed specifically for writing technical docs with Vue. Ideal for project documentation, guides, and static content where Markdown is king.
Final Thought: Pick gatsby for React content sites, remix for React web apps, and vuepress for Vue documentation. Each tool solves a specific problem well β choose the one that matches your project goals.
Choose gatsby if you are building a content-heavy site like a blog or marketing page using React. It is best when you need to pull data from multiple sources (CMS, APIs) into a single GraphQL layer. Avoid it if your app requires heavy real-time user interaction or frequent dynamic updates.
Choose remix if you are building a dynamic web application with forms, user accounts, or real-time data using React. It is ideal when you want full control over data loading and mutations using standard web APIs. Avoid it if you only need a simple static brochure site without server logic.
Choose vuepress if you are writing documentation for a Vue.js project or prefer Vue over React. It is best for static content sites where Markdown is the primary authoring format. Avoid it if you need complex application logic or prefer the React ecosystem.
The future of web development is here.
Gatsby is a free and open source framework based on React that helps developers build blazing fast websites and apps.
It combines the control and scalability of dynamically rendered sites with the speed of static-site generation, creating a whole new web of possibilities.
Gatsby helps professional developers efficiently create maintainable, highly-performant, content-rich websites.
Load Data From Anywhere. Gatsby pulls in data from any data source, whether itβs Markdown files, a headless CMS like Contentful or WordPress, or a REST or GraphQL API. Use source plugins to load your data, then develop using Gatsbyβs uniform GraphQL interface.
Go Beyond Static Websites. Get all the benefits of static websites with none of the limitations. Gatsby sites are fully functional React apps, so you can create high-quality, dynamic web apps, from blogs to e-commerce sites to user dashboards.
Choose your Rendering Options. You can choose alternative rendering options, namely Deferred Static Generation (DSG) and Server-Side Rendering (SSR), in addition to Static Site Generation (SSG) β on a per-page basis. This type of granular control allows you to optimize for performance and productivity without sacrificing one for the other.
Performance Is Baked In. Ace your performance audits by default. Gatsby automates code splitting, image optimization, inlining critical styles, lazy-loading, prefetching resources, and more to ensure your site is fast β no manual tuning required.
Use a Modern Stack for Every Site. No matter where the data comes from, Gatsby sites are built using React and GraphQL. Build a uniform workflow for you and your team, regardless of whether the data is coming from the same backend.
Host at Scale for Pennies. Gatsby sites donβt require servers, so you can host your entire site on a CDN for a fraction of the cost of a server-rendered site. Many Gatsby sites can be hosted entirely free on Gatsby Cloud and other similar services.
Use Gatsby's Centralized Data Layer Everywhere. With Gatsby's Valhalla Content Hub you can bring Gatsby's data layer to any project. Making it accessible via a unified GraphQL API for building content sites, eCommerce platforms, and both native and web applications.
Learn how to use Gatsby for your next project.
Click the link below to quickly try the workflow of developing, building, and deploying websites with Gatsby and Gatsby Cloud.
At the end of this process, you'll have
You can get a new Gatsby site up and running on your local dev environment in 5 minutes with these four steps:
Initialize a new project.
npm init gatsby
Give it the name "My Gatsby Site".
Start the site in develop mode.
Next, move into your new siteβs directory and start it up:
cd my-gatsby-site/
npm run develop
Open the source code and start editing!
Your site is now running at http://localhost:8000. Open the my-gatsby-site directory in your code editor of choice and edit src/pages/index.js. Save your changes, and the browser will update in real time!
At this point, youβve got a fully functional Gatsby website. For additional information on how you can customize your Gatsby site, see our plugins and the official tutorial.
Full documentation for Gatsby lives on the website.
For most developers, we recommend starting with our in-depth tutorial for creating a site with Gatsby. It starts with zero assumptions about your level of ability and walks through every step of the process.
To dive straight into code samples head to our documentation. In particular, check out the βHow-to Guidesβ, βReferenceβ, and βConceptual Guidesβ sections in the sidebar.
We welcome suggestions for improving our docs. See the βhow to contributeβ documentation for more details.
Start Learning Gatsby: Follow the Tutorial Β· Read the Docs
Wondering what we've shipped recently? Check out our release notes for key highlights, performance improvements, new features, and notable bugfixes.
Also, read our documentation on version support to understand our plans for each version of Gatsby.
Already have a Gatsby site? These handy guides will help you add the improvements of Gatsby v5 to your site without starting from scratch!
Gatsby is dedicated to building a welcoming, diverse, safe community. We expect everyone participating in the Gatsby community to abide by our Code of Conduct. Please read it. Please follow it. In the Gatsby community, we work hard to build each other up and create amazing things together. πͺπ
Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of the Gatsby community!
Check out our Contributing Guide for ideas on contributing and setup steps for getting our repositories up and running on your local machine.
This repository is a monorepo managed using Lerna. This means there are multiple packages managed in this codebase, even though we publish them to NPM as separate packages.
Licensed under the MIT License.
Thanks go out to all our many contributors creating plugins, starters, videos, and blog posts. And a special appreciation for our community members helping with issues and PRs, or answering questions on GitHub Discussions.
A big part of what makes Gatsby great is each and every one of you in the community. Your contributions enrich the Gatsby experience and make it better every day.