Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Gatsby starter for creating a basic blog with Hygraph, featuring gatsby-image, MDX, and Tailwind CSS.
The Gatsby Starter Hygraph Blog is a Gatsby starter template that creates a static blog site connected to the Hygraph headless CMS, using GraphQL queries through gatsby-source-graphcms to fetch content and Tailwind CSS for styling.
This starter is a reference implementation from Hygraph that pairs Gatsby's static site generation with the Hygraph content platform. As input it takes a Hygraph API endpoint and an API token stored as environment variables; it outputs a fully static blog with posts, images, and RichText content rendered as pages. It runs on Gatsby, a React-based static site generator, and uses gatsby-source-graphcms to pull content at build time.
The quick start flow is straightforward: create a new Gatsby project with the CLI pointing at this repository, copy the .env.sample file to .env, fill in your HYGRAPH_ENDPOINT and HYGRAPH_TOKEN from the Hygraph project settings, install dependencies with yarn, and run yarn dev to start the development server. At build time, gatsby-source-graphcms fetches all published content, and Gatsby generates static pages for each blog post.
No. You need a Hygraph project created from the Blog Template, because the starter expects a specific content schema (posts with RichText and asset fields). The README links the matching Hygraph Blog Template for cloning.
The starter requires HYGRAPH_ENDPOINT and HYGRAPH_TOKEN. These are provided in the .env.sample file and must be populated with values from the Hygraph project settings UI, as described in the Hygraph API docs.
Yes. The README includes a Deploy with Vercel button that clones the repository, prompts for the two environment variables, and deploys the site to Vercel. The demo at blog.withheadlesscms.com runs on Vercel.
It uses Tailwind CSS for utility-first styling. This is one of the inline features listed in the README, along with gatsby-image and MDX support. The design output is visible in the live demo blog.
The repository is maintained by Hygraph and carries the reference-implementation topic on GitHub. It also depends on the gatsby-source-graphcms package, which is the official source plugin for connecting Gatsby to Hygraph.
