Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Next.js starter for building a SaaS marketing website with Hygraph headless CMS, featuring preview mode and i18n.

Astro landing page starter with gradient background, responsive hamburger/dropdown menu, and switchable floating/fullscreen headers.
The Hygraph Marketing Website Starter is a Next.js reference implementation for building a SaaS marketing website with content managed in the Hygraph headless CMS.
It is a boilerplate project that connects Next.js to Hygraph, a headless CMS previously known as GraphCMS. You supply a Hygraph endpoint URL and a project with Page and Blog Post content models; the starter renders those as a marketing site with landing pages and a blog. The project is maintained as a reference implementation by Hygraph itself and includes a live demo at marketing-websites.withheadlesscms.com.
Clone the repository with npx degit Hygraph/reference-marketing-website#main, install dependencies with yarn, then copy .env.local.example to .env.local and set HYGRAPH_ENDPOINT to your Hygraph API endpoint. Run yarn dev to start locally. For preview mode, also add GRAPHCMS_TOKEN, GRAPHCMS_PREVIEW_TOKEN, and GRAPHCMS_PREVIEW_SECRET to your environment, then update the Page and Blog Post preview URLs in Hygraph to pass the same secret and the content slug.
The single required variable is HYGRAPH_ENDPOINT, which you can find in the Hygraph project settings UI under APIs. The preview mode variables are optional unless you need draft previews.
Hygraph is the new name for GraphCMS. Many route names, tokens, and documentation still use the GraphCMS label; the template’s preview variables use the GRAPHCMS_ prefix for compatibility.
Yes. Internationalized Routing is built in, so you can create locale-specific versions of pages and posts. Hygraph content models can hold localized fields.
The starter code is open source and free to use. Hygraph, the CMS platform it connects to, offers its own free tier, though higher-volume projects on Hygraph are paid.
No, the template is designed to pull content from Hygraph. You need to create a project there and provide its endpoint. The demo gives an idea of the expected data shape.
