Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pagescms

> 前端框架
Open source

The simplest CMS you'll ever need. Manage content and media right in your GitHub repository.

3.9K stars0 likes0 views
WebsiteGitHub

About

The simplest CMS you'll ever need. Manage content and media right in your GitHub repository.

Pages CMS

Pages CMS is an open source CMS for GitHub repositories. It is especially well suited for static sites and content-driven apps built with tools like Jekyll, Hugo, Next.js, Astro, VuePress, and similar stacks.

You can use the hosted version directly at app.pagescms.org, or run your own local development copy from this repository. Watch the demo ▶

Documentation

Full documentation lives at pagescms.org/docs.

Useful starting points:

  • Install locally
  • Create the GitHub App
  • Environment variables
  • Upgrading to 2.x

Use online

The easiest way to get started is the hosted version at app.pagescms.org.

Use that if you want to:

  • try Pages CMS immediately,
  • edit content without running anything locally,
  • stay on the latest hosted version.

Local development

What you need

  • PostgreSQL
  • a GitHub App
  • a local .env.local
  • the Pages CMS repo checked out locally

Quick start

  1. Clone the repository:
git clone https://github.com/pagescms/pagescms.git
cd pagescms
  1. Start PostgreSQL locally:
docker run --name pagescms-db -e POSTGRES_USER=pagescms -e POSTGRES_PASSWORD=pagescms -e POSTGRES_DB=pagescms -p 5432:5432 -d postgres:16
  1. Install dependencies:
npm install
  1. Create .env.local with at least:
DATABASE_URL=postgresql://pagescms:pagescms@localhost:5432/pagescms
BETTER_AUTH_SECRET=your-random-secret
CRYPTO_KEY=your-random-secret

Optional but useful:

BASE_URL=https://cms.example.com
[email protected]

Notes:

  • In production, BASE_URL should be the single canonical URL for the app.
  • Do not mix a custom domain and a *.netlify.app URL for the same install.
  • ADMIN_EMAILS is a comma-separated allowlist for access to the admin panel.

Generate secrets with:

openssl rand -base64 32
  1. Create your GitHub App with the helper:
npm run setup:github-app -- --base-url http://localhost:3000

Useful options:

  • --owner-type personal|org
  • --org <slug>
  • --app-name "Pages CMS (local)"
  • --env .env.local
  • --no-open
  1. Run database migrations:
npm run db:migrate

If cache state is known stale or corrupted, clear it with:

npm run db:clear-cache
  1. Start the app:
npm run dev

If you need GitHub webhooks to reach your local app, use a public tunnel URL as the helper --base-url.

For more detail, see:

  • Install locally
  • Create the GitHub App
  • Environment variables
  • Caching

Support the project

  • Contribute code
  • Report issues
  • Sponsor me
  • Star the project on GitHub
  • Join the Discord chat

License

Everything in this repo is released under the MIT License.

Issues· 70 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript11tyastrocmsdocusaurus

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架