Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Next.js blog and marketing site powered by ButterCMS API with blog posts, pages, collections, and feeds.

A full-stack Next.js TypeScript template focused on functionality over UI, featuring Zustand, TanStack Query, and ESLint 9 support.
Next.js ButterCMS Blog is a boilerplate Next.js application that shows how to build a CMS-powered blog and marketing site using the hosted ButterCMS API. It was created by ButterCMS as an example use case and is not actively maintained, but it demonstrates every core integration pattern needed to connect the ButterCMS content API to a React/Next.js front end, including blog posts, custom pages, collections, categories, and feeds.
This template is a reference application that pairs Next.js with ButterCMS, a hosted API-based CMS and blog engine. It takes a ButterCMS read API token and sample content — blog posts, a customer_case_study page type, and a faq_items collection — and renders a server-rendered site with a blog listing, individual post pages, dynamic pages, collection items, and RSS, Atom, and Sitemap feeds. The project runs on Next.js, which ships with Webpack and Babel built in, and requires Node version 12.0.0 or higher. The repository is a maintained example that also points to newer official starters.
customer_case_study as the example page type.faq_items collection, illustrating how to retrieve and render collection content.Setup involves creating a free ButterCMS account, creating a customer_case_study page type and faq_items collection with the documented field structures, and copying the read API token into a .env file as BUTTER_CMS_API_KEY. After running npm install and npm run dev, the app runs locally on localhost:3000. Deploying to Vercel requires connecting the repository or running the vercel CLI, and webhooks can be added to rebuild the site whenever CMS content changes.
The template itself is open and free to clone from GitHub, but it requires a ButterCMS account to run. ButterCMS offers a free trial that automatically populates sample content for existing starters.
The project expects a customer_case_study page type and a faq_items collection with specific fields, plus blog posts and categories. Setup instructions in the README detail the exact page type configuration to reproduce.
Yes. The example dynamically creates pages from ButterCMS page types, so each customer case study becomes its own Next.js route. The README links to ButterCMS API documentation for fetching single pages and pages with types.
Yes. The project shows how to add a ButterCMS webhook and a Vercel deploy webhook so that publishing or modifying posts, pages, or collection items automatically rebuilds the Next.js site.
The repository is an example use case and will not be actively maintained. ButterCMS directs users to their current Next.js and React starter projects for up-to-date integration.
