Documentation
¶
Overview ¶
Package demiplane embeds the project's user-facing markdown docs so a deployed binary can serve them at /docs without the repository checked out. The embed directive must live at the module root because go:embed cannot reference parent directories — this keeps the repo's own .md files the single source of truth (edit a doc, rebuild, /docs updates).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BrandFS embed.FS
BrandFS holds the icon assets served on the control plane (and the combined same-origin handler): /favicon.svg, /favicon.ico, /apple-touch-icon.png — the three a browser fetches by convention. The canonical brand sources all live in assets/brand/; embedding at the module root keeps the served bytes byte-identical to the committed files (regenerate the raster, rebuild, routes update), the same single-source pattern DocsFS uses.
var DocsFS embed.FS
DocsFS holds the curated, user-facing docs rendered at /docs. Internal build briefs under docs/ (KICKOFF-*, HARDEN-*, PREFLIP-*, V1.1-*) are deliberately NOT embedded.
var FaviconDataURI = "data:image/svg+xml;base64," + base64.StdEncoding.EncodeToString(faviconSVG)
FaviconDataURI is the favicon as a self-contained data: URI, computed once from the embedded SVG so it never drifts from the committed file. Rendered pages reference it in a <link rel="icon">; because it carries its own bytes it needs no served /favicon route and works on any origin (including the isolated content origin) and offline.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
demiplane
command
Command demiplane is a self-hosted, internal-first static/HTML publishing service: POST a file, get a URL, fetch it back over your own network.
|
Command demiplane is a self-hosted, internal-first static/HTML publishing service: POST a file, get a URL, fetch it back over your own network. |
|
internal
|
|
|
mcp
Package mcp implements a stdio Model Context Protocol server for demiplane.
|
Package mcp implements a stdio Model Context Protocol server for demiplane. |
|
module
Package module is demiplane's compile-time extension seam.
|
Package module is demiplane's compile-time extension seam. |
|
modules/reply
Package reply is demiplane's inline-reply module: viewers respond to a published page (Approve / Defer / free-text) and an agent later lists and acks those replies.
|
Package reply is demiplane's inline-reply module: viewers respond to a published page (Approve / Defer / free-text) and an agent later lists and acks those replies. |
|
modules/tls
Package tls is demiplane's native transport-encryption module: it terminates TLS on both planes (control + content) inside the binary, so a deployment without a WireGuard mesh or a reverse proxy still gets encrypted transport.
|
Package tls is demiplane's native transport-encryption module: it terminates TLS on both planes (control + content) inside the binary, so a deployment without a WireGuard mesh or a reverse proxy still gets encrypted transport. |
|
render
Package render provides demiplane's optional, dependency-free markdown→HTML rendering.
|
Package render provides demiplane's optional, dependency-free markdown→HTML rendering. |
|
server
Package server is demiplane's HTTP layer: POST /publish to store an artifact and GET /{slug} to serve it back.
|
Package server is demiplane's HTTP layer: POST /publish to store an artifact and GET /{slug} to serve it back. |
|
store
Package store is demiplane's content store: flat files on disk for artifact bytes plus a SQLite table for metadata.
|
Package store is demiplane's content store: flat files on disk for artifact bytes plus a SQLite table for metadata. |
|
theme
Package theme is the single source of demiplane's house style.
|
Package theme is the single source of demiplane's house style. |
|
transport
Package transport implements demiplane's SSH ingest path.
|
Package transport implements demiplane's SSH ingest path. |