PureWiki Technical Documentation

PureWiki is a flat-file wiki written in PHP (8.1 or higher) with vanilla JavaScript and CSS. It needs no database, no Node.js and no build step. All content is stored as JSON files in the filesystem. The code is licensed under the AGPLv3.

How It Works

Directory Layout

index.php        Front controller
purewiki/        Core, API, dashboard, parser and renderer, Editor.js plugins
themes/          Frontend themes
pages/           Page content (JSON) and media
config/          Configuration and users
cache/           Static HTML and index files
backups/         Backups
extensions/      Installed extensions

The sections of this documentation are listed in the sidebar.