Gridsome is a static site generator for Vue.js developers. It pulls your content from anywhere — Markdown files, a headless CMS, or an API — into a single GraphQL layer, then builds a fast, pre-rendered website from it.
How Gridsome works
The idea is simple: your content lives in different places, but your pages query it the same way. Gridsome collects everything into a GraphQL data layer at build time. Your Vue components then ask for exactly the data they need:
query { allBlogPost { edges { node { id title path date } } } }
Enter fullscreen mode
Exit fullscreen mode
At build time, Gridsome turns each page into plain HTML. Visitors get a fast static page, and Vue takes over in the browser for interactive parts. That combination is why Gridsome sites feel instant.
Your first page
A Gridsome page is a Vue component with a page query attached:
<template> <div> <h1> {{ $page . posts . edges [ 0 ] . node .…