A lightweight, self-hosted and Git-based CMS native for Astro
Manage your content where your code lives. No database required.
A lightweight, self-hosted Content Management System that uses your GitHub repository as the content backend. No external database — your Markdown/MDX files and images live right in your repo. Built with Astro 6 and React 19, featuring server-side authentication and a Notion-inspired editing experience.
| Feature | Description |
|---|---|
| 📚 Multi-Collection | Manage multiple content types (Blog, Docs, Projects) in one workspace |
| 🏷️ Typed Templates | Define schema with String, Date, Boolean, Number, Array, Object |
| 🔍 Smart Filtering | Auto-generated filter UI based on your template types |
| 🔐 Server-Side Auth | Env Auth with bcrypt — your Git token never leaves the server |
| 🔀 Multi-Tenant | One deployment, multiple repos — each user provides their own token at login |
| 🌐 i18n Ready | English and Vietnamese support |
| ⚡ Optimistic Locking | SHA-check prevents overwriting concurrent changes |
| 🚀 Self-Hosted | Deploy on any VPS, Docker, or serverless platform |
┌─────────────────────────────────────────────┐
│ Browser (React SPA) │
│ Dashboard, PostList, Images, Templates │
│ ProxyGitAdapter → /api/proxy/* │
└─────────────┬───────────────────────────────┘
│ Cookie session (HMAC-SHA256)
┌─────────────▼───────────────────────────────┐
│ Astro SSR Server (Node.js) │
│ middleware.ts → session guard │
│ /api/auth/login → bcrypt verify │
│ /api/proxy/git → GitHub API (server-side) │
│ /api/proxy/upload → file upload via API │
│ /api/proxy/blob → binary file serving │
└─────────────────────────────────────────────┘
git clone https://github.com/pageel/pageel-cms.git
cd pageel-cms
npm install
cp .env.example .env
Edit .env with your credentials:
CMS_USER=admin
CMS_PASS_HASH="$2a$12$..." # See docs/deployment.md for hash generation
CMS_SECRET=your-random-secret-min-16-chars
# Optional — if omitted, users provide these at login (Multi-Tenant mode)
GITHUB_TOKEN=ghp_your_token
CMS_REPO=username/repo
💡 Two modes: Set
GITHUB_TOKEN+CMS_REPOfor a dedicated single-repo setup (Server Mode). Leave them empty to let each user provide their own token and repo at login (Connect Mode / Multi-Tenant).
npm run dev
Open http://localhost:4321 — you'll be redirected to /login.
# After npm install (step 1)
npx pageel-cms hash your-password
# Or without project installed:
node -e "require('bcryptjs').hash('your-password', 12).then(h => console.log(h))"
Copy the output hash to CMS_PASS_HASH in your .env file (wrap in double quotes).
npm run build
node dist/server/entry.mjs
See docs/deployment.md for VPS, Docker, and Vercel deployment guides.
| Document | Description |
|---|---|
| Setup & Auth Modes | Installation guide with detailed 3-mode configuration (Server, Connect, Open) |
| Deployment | VPS, Docker, Vercel deploy guides, env vars reference |
| Security Assessment | Auth, session, proxy security review |
| Product | Type | Purpose |
|---|---|---|
| Pageel CMS | OSS (MIT) | Git-native CMS for content & media |
| Pageel Workhub | Commercial | Team workspace: workflow, review, permissions |
Pageel CMS focuses on content. For team collaboration features, see Pageel Workhub.
Contributions are welcome!
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License. See the LICENSES.md file for details.
Made with ❄️ by Pageel