cadditor

Cadditor — a minimal self-hosted web editor for Caddyfile configuration.

Active Pure Nim score 65/100 · last commit 2026-11-04 · 1 stars · tests present · no docs generated

Summary

Latest Version Unknown
License Unknown
CI Status Failing
Stars 1
Forks 1
Open Issues 0
Last Commit 2026-11-04
Downloads 0
Last Indexed 2026-11-23 09:07

Installation

nimble install cadditor
choosenim install cadditor
git clone https://gitlab.com/friml/cadditor

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
cadditor ✓ - - - - - - - - -

Source

Repository https://gitlab.com/friml/cadditor
Homepage https://gitlab.com/friml/cadditor
Registry Source gitlab

README

cadditor

cadditor is a minimal self-hosted web editor for Caddyfile configuration. Edit your Caddyfile in the browser, then apply changes with automatic validation and reload. Your Caddyfile remains the source of truth, readable and editable by hand. Served by Caddy itself as a static web page with a shell CGI backend. Runs without Node.js, Docker, a database, or external assets.

Live demo — editing only; formatting, validation, and reload are disabled.

Installation

Designed for the Alpine variant of the Community Scripts Caddy LXC. Run inside the container with Caddy's local Admin API enabled.

sh -c "$(wget -qO- https://gitlab.com/friml/cadditor/-/raw/main/install/install.sh)"

Installs the latest release. Append -- REF for a specific release tag, branch, or commit, or -- dev for development (main).

Enter a hostname resolving to the LXC, username (default admin), and password, then confirm the displayed configuration. Leave the hostname empty to skip setup. For automation, see the installer options.

The installer adds cadditor and a dedicated fcgiwrap service. Routing lives in /etc/caddy/cadditor/cadditor.caddy; your site settings stay in the main Caddyfile.

Generated sites use tls internal. Trust the Caddy CA on your client device, then open the URL printed by the installer and log in.

Uninstallation

While the editor is idle:

sh /opt/cadditor/uninstall.sh

Removes application files and leaves a stub in cadditor.caddy to keep imports valid. Your Caddyfile, extra files, and system fcgiwrap installation remain.

Use sh /opt/cadditor/uninstall.sh --purge to also remove the snippet and fcgiwrap. Remove cadditor references from your Caddyfile yourself; purge does not reload Caddy.

Update

Run the installation command again while the editor is idle and confirm the update. Your Caddyfile and credentials are preserved.

Development and planned features.

Acknowledgements

Copyright © 2026 cadditor contributors. Licensed under the GPL-3.0 license. Bundled dependencies retain their own licenses and notices; see also the font license and provenance.


Written with AI under close human supervision, with an emphasis on simplicity and readable code. Independent of the Caddy project.