Pages CMS
A minimalist open-source CMS based on Git repositories, allowing non-technical colleagues to manage content and media directly within GitHub repositories without the need for additional headless CMS solutions.
Introduction
An open-source CMS for GitHub. Edit Markdown, YAML, JSON and media in your browser. Saving content commits the changes to your repository.
Get started
Open Pages CMS, connect your repository, and add a .pages.yml file to define what editors can change. Follow the quick start for a working example.
Self-hosting
Run the setup wizard with Node.js 22.19 or newer.
npm create pagescms@latest -- my-cms
The wizard offers four deployment targets:
- Node.js
- Cloudflare Workers
- Vercel (experimental)
- Netlify (experimental)
Follow the self-hosting guide to run your instance. If you’re moving from 2.x, see the collaborator migration guide.
Development
From the cloned repository, use Node.js 22.19 or newer and pnpm 10.
pnpm install
cp .env.example .env.local
pnpm setup:github-app
Choose Local development and set BETTER_AUTH_SECRET in .env.local. See GitHub App setup for the webhook and credentials.
pnpm db:migrate
pnpm dev
Open localhost:3000. Run pnpm validate to check your changes.
Documentation
Support the project
License
MIT.