Documentation
¶
Overview ¶
Package comfylib holds the code the Comfyware apps share: Folkweave, Imvault, Songstead, Tidings and Witmoot. Each subpackage uses only the standard library and never imports app code. See README.md for the list.
Directories
¶
| Path | Synopsis |
|---|---|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
SPDX-License-Identifier: AGPL-3.0-or-later |
|
Package analytics keeps daily site health and security counts in an application's SQLite database: requests, status classes, response times and bytes per route pattern, plus failed sign-ins, rate-limited attempts and rejected tokens.
|
Package analytics keeps daily site health and security counts in an application's SQLite database: requests, status classes, response times and bytes per route pattern, plus failed sign-ins, rate-limited attempts and rejected tokens. |
|
analyticstest
Package analyticstest checks the analytics storage against an application's own SQLite driver.
|
Package analyticstest checks the analytics storage against an application's own SQLite driver. |
|
Package autobackup schedules compressed private snapshots.
|
Package autobackup schedules compressed private snapshots. |
|
Package brandimage validates small uploaded PNG, JPEG and GIF images and converts them to a single PNG without metadata or animation.
|
Package brandimage validates small uploaded PNG, JPEG and GIF images and converts them to a single PNG without metadata or animation. |
|
Package clientip finds the client address behind trusted reverse proxies.
|
Package clientip finds the client address behind trusted reverse proxies. |
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
SPDX-License-Identifier: AGPL-3.0-or-later |
|
displaytimetest
SPDX-License-Identifier: AGPL-3.0-or-later Package displaytimetest checks timezone storage against an app's own SQLite driver.
|
SPDX-License-Identifier: AGPL-3.0-or-later Package displaytimetest checks timezone storage against an app's own SQLite driver. |
|
Package invitation reports whether an invitation is open, revoked, expired or used up.
|
Package invitation reports whether an invitation is open, revoked, expired or used up. |
|
Package keyfile keeps a random key in its own file and creates it on first use.
|
Package keyfile keeps a random key in its own file and creates it on first use. |
|
Package memberprofile validates optional plain-text names, bios and links.
|
Package memberprofile validates optional plain-text names, bios and links. |
|
oidc
module
|
|
|
Package password reads a password twice and checks that both match.
|
Package password reads a password twice and checks that both match. |
|
Package privdrop re-runs an admin command as the service account when it is started as root, for example with sudo, so it never leaves root-owned files the service cannot read.
|
Package privdrop re-runs an admin command as the service account when it is started as root, for example with sudo, so it never leaves root-owned files the service cannot read. |
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
SPDX-License-Identifier: AGPL-3.0-or-later |
|
Package profileimage bounds account pictures and makes a still version and, for GIFs, a bounded animated version.
|
Package profileimage bounds account pictures and makes a still version and, for GIFs, a bounded animated version. |
|
Package proxyconfig prints a reverse-proxy site configuration from the examples an app ships, passed in as an fs.FS.
|
Package proxyconfig prints a reverse-proxy site configuration from the examples an app ships, passed in as an fs.FS. |
|
proxytest
Package proxytest runs an app's generated nginx and Apache configurations in real servers and checks what reaches the app through them.
|
Package proxytest runs an app's generated nginx and Apache configurations in real servers and checks what reaches the app through them. |
|
Package ratelimit provides in-memory token buckets (Limiter) and fixed windows (Window), keyed by any string such as an account or address.
|
Package ratelimit provides in-memory token buckets (Limiter) and fixed windows (Window), keyed by any string such as an account or address. |
|
Package reference validates web addresses and prepares Witmoot discussion drafts for the browser.
|
Package reference validates web addresses and prepares Witmoot discussion drafts for the browser. |
|
Package sandbox runs a process under an explicit Bubblewrap policy.
|
Package sandbox runs a process under an explicit Bubblewrap policy. |
|
Package setup serves the first-owner setup page, protected by a key only the host can read.
|
Package setup serves the first-owner setup page, protected by a key only the host can read. |
|
Package smtp sends transactional mail, such as password reset links, through an SMTP relay.
|
Package smtp sends transactional mail, such as password reset links, through an SMTP relay. |
|
Package suite provides navigation between Comfyware apps, linked OpenID Connect sign-in and Witmoot discussion returns.
|
Package suite provides navigation between Comfyware apps, linked OpenID Connect sign-in and Witmoot discussion returns. |
|
Package svcconfig reads a service's settings the way OpenRC conf.d files or systemd units (with drop-ins, Environment= and EnvironmentFile=) pass them, so a command run by hand acts on the same instance as the service.
|
Package svcconfig reads a service's settings the way OpenRC conf.d files or systemd units (with drop-ins, Environment= and EnvironmentFile=) pass them, so a command run by hand acts on the same instance as the service. |
|
Package token mints random tokens and stores only their digests.
|
Package token mints random tokens and stores only their digests. |
|
Package ui serves the shared Comfyware styles, palettes and browser scripts, and validates palette names.
|
Package ui serves the shared Comfyware styles, palettes and browser scripts, and validates palette names. |
Click to show internal directories.
Click to hide internal directories.