# Lichen-Markdown

> Self-hosted, open-source flat-file CMS that renders Markdown pages into a static site, with a browser editor, file manager and folder-based localization.

- **Category:** [Content Management](https://selfhost.directory/content-management)
- **Licence:** MIT
- **Source model:** Open source
- **Latest version:** 1.5.0
- **Author:** ukrudt-net
- **Platforms:** Docker, YunoHost
- **Ports:** 80 (Apache serving the website and the /cms admin UI inside the container (run-dev.sh maps host port 8000 to it))
- **Tags:** Markdown, Nginx, Localization, Cms, Flat File, Website Builder, Static Site, File Manager, Apache, Docker, Live preview, Yunohost

## What is Lichen-Markdown?

Lichen-Markdown is a small flat-file content management system that turns Markdown documents into a website. It started as a fork of Sensor Station's Lichen, which used Gemtext, and swaps in Markdown while adding configurable page headers and footers. Content lives in ordinary `.md` files in a `src` folder; the browser editor at `/cms/edit.php` shows raw Markdown next to a live preview, a file manager lets you create pages and folders or upload images and videos, and typography is changed by editing `stylesheet.css` in the assets folder. Rendered output goes to a `dist` folder of static HTML that the app keeps in sync, and that can be regenerated from the command line or copied to another host, so the project also works as a basic static site generator. Additional languages are placed in `/l11n/<LANGUAGE_NAME>/` folders.

Self-hosting means dropping a handful of PHP files behind Apache or Nginx (example vhost configs ship in `docs/`), building the included Dockerfile, installing the YunoHost catalog package, or piping the `lib/install.sh` script into bash; the installer can also create the htpasswd admin account that protects the editor. Note that login is delegated to the web server, so it does not function when the app is launched with PHP's built-in server, and there is no database, user management or plugin system. It is MIT-licensed, maintained on Codeberg, and its site advertises low consumption with no trackers.

## Should you self-host Lichen-Markdown?

Lichen-Markdown scores **52/100** on selfhost.directory ([how scoring works](https://selfhost.directory/scoring)) and ranks **#32 of 43** in [Content Management](https://selfhost.directory/content-management).

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. It is MIT-licensed.

Its closest alternative on selfhost.directory is [Ghost](https://selfhost.directory/project/ghost) (84/100, 55 883 stars). It scores higher overall, so compare the two before you pick. [See Lichen-Markdown vs Ghost side by side.](https://selfhost.directory/compare/ghost-vs-lichen-markdown)

## Features

- Configurable header and footer
- Customizable CSS styling
- File Manager
- Localization
- Markdown cheatsheet included
- Markdown editing with live preview
- Per-page title control
- Rebuild from the web interface
- Static Site Generation — Running it as a web server is the primary intended use; the SSG path is described as a custom use-case.
- Update script

## How to install Lichen-Markdown

### Install Lichen-Markdown with Docker

```bash
docker build -t lichen-markdown:latest ./docker/
docker run -d -p 8000:80 -v $(pwd)/src:/var/www/html lichen-markdown:latest
```

Note: A convenience script is also included: `bash run-dev.sh`. Then go to localhost:8000 to use the app. The Dockerfile is based on php:8.1-apache.

### Install Lichen-Markdown with YunoHost

You can install Yunohost on your server in [the standard way](https://doc.yunohost.org/en/admin/get_started/install_on/), and then install Lichen-Markdown via [the application catalog](https://apps.yunohost.org//app/lichenmarkdown).

## Lichen-Markdown alternatives

- [W](https://selfhost.directory/project/w): W-CMS is a self-hosted, open-source flat-file wiki for artists and experimental projects, with Markdown editing, media management, and graph view — no database needed. (compare: https://selfhost.directory/compare/lichen-markdown-vs-w)
- [LeafWiki](https://selfhost.directory/project/leafwiki): LeafWiki is a self-hosted, open-source wiki storing content as plain Markdown files with SQLite — no external database needed. Runs as a single Go binary. (compare: https://selfhost.directory/compare/leafwiki-vs-lichen-markdown)
- [Typemill](https://selfhost.directory/project/typemill): Open-source, self-hosted flat-file CMS for documentation sites, manuals and knowledge bases: write Markdown, publish websites, PDFs and EPUBs, no database needed. (compare: https://selfhost.directory/compare/lichen-markdown-vs-typemill)
- [Wiki-Go](https://selfhost.directory/project/wiki-go): Open-source, self-hosted flat-file wiki in Go with Markdown editing, full-text search, version history, access rules, comments and kanban boards. No database needed. (compare: https://selfhost.directory/compare/lichen-markdown-vs-wiki-go)
- [Yellow](https://selfhost.directory/project/yellow): Self-hosted flat-file CMS for small websites, wikis and blogs. Runs on PHP 7.0+ with no database, uses Markdown, extensible with plugins and themes. (compare: https://selfhost.directory/compare/lichen-markdown-vs-yellow)
- [outstatic](https://selfhost.directory/project/outstatic): A self-hosted Git-based CMS: Outstatic adds an editing dashboard for the Markdown and MDX files in your GitHub repository, with no database and no hosted CMS backend. (compare: https://selfhost.directory/compare/lichen-markdown-vs-outstatic)
- [wikmd](https://selfhost.directory/project/wikmd): File-based markdown wiki with knowledge graphs, dark theme, drawio/PlantUML plugins, and git integration. Files instead of database. Self-host via Docker or Python. (compare: https://selfhost.directory/compare/lichen-markdown-vs-wikmd)
- [WeChat Markdown Editor](https://selfhost.directory/project/md): Open-source WeChat Markdown editor turning plain Markdown into styled Official Account posts with image hosts, themes and AI; run it self-hosted via Docker or npm. (compare: https://selfhost.directory/compare/lichen-markdown-vs-md)

## More in Website Builder

- [Microweber](https://selfhost.directory/project/microweber): Self-hosted drag-and-drop website builder and CMS based on Laravel with built-in e-commerce, blog, and content management features.
- [october](https://selfhost.directory/project/october): Self-hosted, source-available PHP CMS built on Laravel for developers and agencies: one-file pages, Twig templates, plugins, themes and Tailor content types.
- [QloApps](https://selfhost.directory/project/qloapps): Self-hosted, open-source hotel PMS with a direct booking engine and responsive hotel website for multi-property, multilingual hotels.
- [silex](https://selfhost.directory/project/silex): Self-hosted, open-source visual website builder (AGPL) that exports clean HTML/CSS, plugs into headless CMSs, and runs via Docker, Node.js, CapRover or a desktop app.
- [smartsites-editor-platform](https://selfhost.directory/project/smartsites-editor-platform): Self-hosted open-source website builder with drag-and-drop CMS and visitor analytics, built on Django and React.
- [TYPO3 CMS](https://selfhost.directory/project/typo3-cms): Self-hosted, open-source PHP CMS for enterprise sites: multisite and multilingual content, versioning, granular permissions, extensions, Composer install.
- [Vvveb CMS](https://selfhost.directory/project/vvveb-cms): Self-hosted open-source PHP CMS with a visual drag-and-drop builder, multi-site and multi-language support, headless GraphQL/REST APIs and built-in ecommerce.
- [webiny](https://selfhost.directory/project/webiny): An open-source, self-hosted headless CMS that runs serverless in your own AWS account, with a GraphQL API, drag-and-drop page builder, file manager and multi-tenancy.
- [webstudio](https://selfhost.directory/project/webstudio): Open-source visual website builder pitched as an alternative to Webflow: every CSS property, design tokens, headless CMS data, and self-hosted export of built sites.
- [Ycode](https://selfhost.directory/project/ycode): Ycode is a self-hosted, open-source visual website builder and CMS with AI-assisted editing via MCP. Runs on Vercel with Supabase, free tier has unlimited pages and CMS.
- [Apostrophe](https://selfhost.directory/project/apostrophe): A full-featured, open-source content management framework built with Node.js that empowers organizations by combining in-context editing and headless architecture in a full-stack JS environment.
- [btw](https://selfhost.directory/project/btw): A self-hosted, open-source personal website builder for blogs and notes, pitched as a Medium alternative, run with Docker Compose and PostgreSQL.

## Links

- [Homepage](https://codeberg.org/ukrudt.net/lichen-markdown)
- [Website](https://lichen.commoninternet.net)
- [Lichen-Markdown Matrix room](https://matrix.to/#/#lichen-markdown:sludder.ukrudt.net)
- [Setup guide](https://codeberg.org/ukrudt.net/lichen-markdown/src/branch/main/README.md)
- [YunoHost app catalog](https://apps.yunohost.org//app/lichenmarkdown)

---
Source: https://selfhost.directory/project/lichen-markdown