{"id":19536711,"url":"https://github.com/philipptrenz/md-cms","last_synced_at":"2026-05-07T16:06:19.074Z","repository":{"id":64836710,"uuid":"578678234","full_name":"philipptrenz/md-cms","owner":"philipptrenz","description":"A minimal flat-file CMS, consisting of Markdown files and a very slim PHP core","archived":false,"fork":false,"pushed_at":"2023-02-16T11:35:55.000Z","size":122,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T10:37:01.833Z","etag":null,"topics":["alpine","alpinejs","cms","flat-file","flat-file-cms","php","tailwind","tailwindcss","website","website-template"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philipptrenz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-15T16:12:12.000Z","updated_at":"2024-11-03T11:12:14.000Z","dependencies_parsed_at":"2023-02-18T15:46:06.186Z","dependency_job_id":null,"html_url":"https://github.com/philipptrenz/md-cms","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/philipptrenz/md-cms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipptrenz%2Fmd-cms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipptrenz%2Fmd-cms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipptrenz%2Fmd-cms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipptrenz%2Fmd-cms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philipptrenz","download_url":"https://codeload.github.com/philipptrenz/md-cms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipptrenz%2Fmd-cms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32745168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine","alpinejs","cms","flat-file","flat-file-cms","php","tailwind","tailwindcss","website","website-template"],"created_at":"2024-11-11T02:24:00.120Z","updated_at":"2026-05-07T16:06:19.035Z","avatar_url":"https://github.com/philipptrenz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# md-cms\n\nSometimes it doesn't take much: a fancy main page, divided into a few components for clarity and ... oh yes, the legal pages. But later having to edit imprint and privacy policy in HTML? Not fun. - that's how md-cms came into being.\n\n*md-cms is a minimal flat-file CMS, consisting of Markdown files and a very slim PHP core.*\n\nFeatures:\n* Dynamic rendering of Markdown files via HTML template\n* Utility-first styling with [tailwindcss](http://tailwindcss.com)\n* Lightweight interactivity using [Alpine.js](https://alpinejs.dev)\n* Development server with auto-reload\n* Git-based auto-deployment feature via webhooks\n\n**Note:** [Parsedown 1.7.4](https://github.com/erusev/parsedown) requires PHP \u003c8.1\n\n## Gettings started\n\n### Setup\n\n```bash\nyarn install\n```\n\n### Run\n\n```bash\nyarn dev\n```\n\nThe website is now served at [http://localhost:3000/](http://localhost:3000/).\n\n### Build\n\n```bash\nyarn build\n```\n\n## Auto-Deployment\n\n### Enable the feature\n\nThe auto-deployment feature enables webhook actions, e.g. triggered by GitHub, to pull latest changes from a git repository onto the web server.\n\nTherefore, create a `.env` file in document root:\n\n```env\n# A long, secret and HTML-safe string\nDEPLOY_SECRET=\u003cYOUR_DEPLOYMENT_SECRET\u003e\n# Optional: Whitelist IP addresses, e.g. only accept webhooks from localhost\nDEPLOY_WEBHOOK_IPS=127.0.0.1,\n```\n\nEach request to `/deploy/\u003cYOUR_DEPLOYMENT_SECRET\u003e` will now trigger `git pull`, `git submodule sync`, followed by `git submodule update`.\n\n### Add deployment key\n\n**Note:** Make sure the following SSH configuration belongs to the user used by the webserver, like `web`, e.g. by changing user with `sudo su web`.\n\n1. Create an SSH key on the server as deployment key:\n\n```sh\nssh-keygen -t ed25519 -a 420 -f ~/.ssh/your.project.ed25519 -C \"Deployment key for your.project\"\n```\n\n2. Add a SSH config to `~/.ssh/config`, e.g. for GitHub:\n\n```\nHost your_project\n    Hostname github.com\n    IdentityFile  ~/.ssh/your.project.ed25519\n    IdentitiesOnly yes\n```\n\n3. Add SSH public key as deployment key to git platform\n\n4. Clone the repository at the server using the generated deployment key:\n\n```\ngit clone git@your_project:user/your.project.git'\n```\n\n5. Add a webhook to your git platform, specifying the `/deploy/\u003cYOUR_DEPLOYMENT_SECRET\u003e` endpoint.\n\n6. Sit back and enjoy.\n\n## You need more?\n\nI know some projects grow. And at some point, the customer might even want a backend with login and everything. For you too?\nThen check out Kirby: Also a flat-file CMS with similar folder structure, fancy and fully customizable backend, plugins and much more.\n\nhttps://getkirby.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilipptrenz%2Fmd-cms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilipptrenz%2Fmd-cms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilipptrenz%2Fmd-cms/lists"}