Skip to content
ุงู„ู…ุดุงุฑูŠุน

ุญูˆู„

๐Ÿš€ Pageel CMS - A lightweight, self-hosted and Git-based CMS native for Astro - Manage your content where your code lives. No database required.

ุงู„ุจูŠุงู†ุงุช ูˆุงู„ุชุญู„ูŠู„ุงุช

ูƒูŠู ุชูู‚ุงุณ ู‡ุฐู‡ ุงู„ุฃุฑู‚ุงู…

ู…ุง ูŠู…ูƒู†ูƒ ูุนู„ู‡

  • ๐Ÿ“š Multi-Collection - Manage multiple content types (Blog, Docs, Projects) in one workspace
  • ๐Ÿ“ Direct Post - Create blank posts directly from the UI toolbar and save them to Git
  • ๐Ÿท๏ธ Typed Templates - Define schema with String, Date, Boolean, Number, Array, Object
  • ๐Ÿ” Smart Filtering - Auto-generated filter UI based on your template types

ุงู„ู†ู…ูˆ ุงู„ู…ู‚ุงุณ ู„ู„ู†ุฌูˆู…

ุฎู„ุงู„ 24 ุณุงุนุฉ
ุฌุงุฑู ุฌู…ุน ุงู„ุณุฌู„
ุฎู„ุงู„ 7 ุฃูŠุงู…
ุฌุงุฑู ุฌู…ุน ุงู„ุณุฌู„
ุฎู„ุงู„ 15 ูŠูˆู…ู‹ุง
ุฌุงุฑู ุฌู…ุน ุงู„ุณุฌู„
ุฎู„ุงู„ ุดู‡ุฑ
ุฌุงุฑู ุฌู…ุน ุงู„ุณุฌู„

ุชุบูŠู‘ุฑ ุตุงููŠ ุงู„ู†ุฌูˆู… ุฎู„ุงู„ ูุชุฑุงุช ู…ุชุฏุงุฎู„ุฉุŒ ูˆู„ูŠุณ ู…ุฌู…ูˆุนู‹ุง ูŠูˆู…ูŠู‹ุง. ุชุจู‚ู‰ ุงู„ู‚ูŠุงุณุงุช ุงู„ู…ูู‚ูˆุฏุฉ ูุงุฑุบุฉ. ุงู„ู†ุฌูˆู… ุชู‚ูŠุณ ุงู„ุงู‡ุชู…ุงู… ู„ุง ุฌูˆุฏุฉ ุงู„ุจุฑู…ุฌูŠุงุช.

Pageel CMS

Pageel CMS

A lightweight, self-hosted and Git-based CMS native for Astro

Manage your content where your code lives. No database required.

License Version Status GitHub Astro Node.js


๐Ÿ‡บ๐Ÿ‡ธ English | ๐Ÿ‡ป๐Ÿ‡ณ Tiแบฟng Viแป‡t


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.


๐Ÿ“ธ Screenshots

Pageel Dashboard Preview


โœจ Key Features

Feature Description
๐Ÿ“š Multi-Collection Manage multiple content types (Blog, Docs, Projects) in one workspace
๐Ÿ“ Direct Post Create blank posts directly from the UI toolbar and save them to Git
๐Ÿท๏ธ Typed Templates Define schema with String, Date, Boolean, Number, Array, Object
๐Ÿ” Smart Filtering Auto-generated filter UI based on your template types
๐Ÿงฉ Plugin System Slot-based WYSIWYG editor plugins (MDXEditor included) with CSS isolation
๐Ÿ” 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

๐Ÿ—๏ธ Architecture (v2.0)

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              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      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Tech Stack

Astro React TypeScript Tailwind CSS

Security Model

  • No client-side tokens: Git PAT stored server-side only (env or encrypted in session cookie)
  • PBKDF2 password hashing: Node-native Web Crypto API PBKDF2 (100k rounds) with constant-time verification
  • HMAC-SHA256 sessions: Signed cookies with HttpOnly + SameSite=Strict + Secure
  • Token validation at login: Dynamic tokens are verified against GitHub API before session is created
  • Rate limiting: 5 attempts per minute per IP
  • Upload hardening: Path validation blocklist + file type/size limits on upload proxy

๐Ÿงฉ Plugin System (v2.1 โ€” Beta)

Pageel CMS features a slot-based plugin architecture for extending the editor experience.

Available Plugins

Package Description Status
@pageel/plugin-types TypeScript interfaces for plugin development โœ… Ready
@pageel/plugin-mdx MDXEditor WYSIWYG editor with toolbar, image upload, debounce โœ… Ready
@pageel/cms Astro integration โ€” auto-detect collections, inject /cms route โœ… Ready

Enable WYSIWYG Editor

Add to your .pageelrc.json:

{
  "version": 2,
  "plugins": {
    "editor": "@pageel/plugin-mdx"
  }
}

Editor Tabs

When a WYSIWYG plugin is active (e.g., @pageel/plugin-mdx):

Tab Description
โœ๏ธ Edit WYSIWYG visual editor (MDXEditor plugin)
</> Source Source Editor โ€” raw markdown with Notion-style toolbar
๐Ÿ‘ Preview Rendered HTML preview

When no plugin is active, the UI simplifies to 2 tabs: Source + Preview.


๐Ÿš€ Getting Started

Prerequisites

  • Node.js >= 22.12.0
  • A GitHub repository with markdown content
  • A GitHub personal access token (fine-grained recommended)

1. Clone & Install

git clone https://github.com/pageel/pageel-cms.git
cd pageel-cms
npm install

2. Configure Environment

cp .env.example .env

Edit .env with your credentials:

CMS_USER=admin
CMS_PASS_HASH="pbkdf2:100000:..."   # PBKDF2 Web Crypto hash (use bin/cli.js to generate)
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_REPO for 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).

3. Run Development Server

npm run dev

Open http://localhost:4321 โ€” you'll be redirected to /login.

4. Generate Password Hash

# Generate hash using PBKDF2 Web Crypto API (Node.js native):
node bin/cli.js hash your-password

Copy the output hash (e.g., pbkdf2:100000:salt_hex:hash_hex) to CMS_PASS_HASH in your .env file (wrap in double quotes).

5. Production Build

npm run build
node dist/server/entry.mjs

See docs/deployment.md for VPS, Docker, and Vercel deployment guides.


๐Ÿ“š Documentation

Document Description
Setup & Auth Modes Installation guide with detailed 3-mode configuration (Server, Connect, Open)
Deployment VPS, Docker, Vercel deploy guides, env vars reference
CI/CD Pipeline Architecture Multi-job Quality Gate, Dependabot & CD release pipeline
Security Assessment Auth, session, proxy security review
Plugin Development TypeScript interfaces for building custom plugins

๐ŸŒ Ecosystem

Product Type Purpose
Pageel CMS OSS (MIT) Git-native CMS for content & media
@pageel/plugin-mdx OSS (MIT) WYSIWYG editor plugin (MDXEditor)
@pageel/cms OSS (MIT) Astro integration bridge
Pageel Workhub Commercial Team workspace: workflow, review, permissions

Pageel CMS focuses on content. For team collaboration features, see Pageel Workhub.


๐Ÿค Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License. See the LICENSES.md file for details.


Made with โ„๏ธ by Pageel

ุงุณุชูƒุดู ู…ุดุงุฑูŠุน ู…ุดุงุจู‡ุฉ ูˆู…ุฑุชุจุทุฉ

ุฌุงุฑู ุงู„ุชุญู…ูŠู„โ€ฆ