Gridsome is a Vue.js powered Jamstack framework for building static generated websites & apps that are fast by default 🚀.
- Vue.js for frontend - The simplest & most approachable frontend framework.
- Data sourcing - Use any Headless CMSs, APIs or Markdown-files for data.
- Local development with hot-reloading - See code changes in real-time.
- File-based page routing - Any
Name.vuefile insrc/pagesis a static route. - Dynamic routing - Any
[param].vuefile insrc/pagesis a dynamic route. - Static file generation - Deploy securely to any CDN or static web host.
- GraphQL data layer - Simpler data management with a centralized data layer.
- Automatic Code Splitting - Builds ultra performance into every page.
- Plugin ecosystem - Find a plugin for any job.
Gridsome is a Jamstack framework. Jamstack lets you build fast and secure sites and apps delivered by pre-rendering files and serving them directly from a CDN, removing the requirement to manage or run web servers.
Learn more about the Jamstack.
Gridsome generates static html that hydrates into a Vue SPA once loaded in the browser. This means you can build both static websites & dynamic apps with Gridsome.
Gridsome builds one .html file and one .json file for every page. After first page load it only uses the .json files to prefetch and load data for the next pages. It also builds a .js bundle for each page that needs it (code splitting).
It uses vue-router for SPA routing, and vue-meta for managing <head>.
Gridsome adds a 57kB min gzip JS bundle size by default.(vue.js, vue-router, vue-meta and some for image lazy loading).
Learn more about how it works.
You should have basic knowledge about HTML, CSS, Vue.js and how to use the Terminal. Knowing how GraphQL works is a plus, but not required. Gridsome is a great way to learn it.
Gridsome requires Node.js (v8.3+) and recommends Yarn.
Gridsome requires Node.js (v16.13+ < v17.3) and recommends Yarn. If you are facing any issue with the sharp node library, please check those recommendations:
- Using YARN:
yarn global add @gridsome/cli - Using NPM:
npm install --global @gridsome/cli
gridsome create my-gridsome-siteto create a new projectcd my-gridsome-siteto move into project directorygridsome developto start local dev server athttp://localhost:8080- Happy coding 🎉🙌
- Create
.vuecomponents in thesrc/pagesdirectory to create page routes. - Use
gridsome buildto generate static files in a/distfolder
import Newsletter from '@/components/Newsletter.vue'
-
VuePress. Another static site generator for Vue.js. It uses local markdown files for content and is perfect for documentation sites. It is possible to build anything in VuePress and Markdown (Like a blog f.ex).
-
Nuxt. A Universal Vue.js Framework for server-side rendered (SSR) apps and websites. It also has a static site generator feature, but the main focus is SSR.
-
Gatsby.js Gridsome is highly inspired by Gatsby.js (React.js based), which collects data sources and generates a static site from it. Gridsome is an alternative for Gatsby.js.