The reference goblog WebAssembly plugin. It appends a configurable greeting to the footer of every page — the smallest thing that proves a plugin is loaded.
From your goblog's Admin → Plugins → Browse, search for Hello and click Install (goblog 0.2.9 or newer). Or download plugin.wasm from the latest release into plugins/wasm/ and restart goblog.
Under Admin → Settings → Hello:
| Setting | Default | Meaning |
|---|---|---|
enabled |
true |
Set to false to hide the greeting |
message |
Hello from a WebAssembly plugin |
The text shown at the bottom of every page |
GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -ldflags="-s -w" -o plugin.wasm .Needs Go 1.25 or newer (go.mod pins the toolchain, so GOTOOLCHAIN=auto fetches it). The plugin talks to no network (allowed_hosts is empty), stores nothing, and only implements the identity, settings and template_footer exports.
Copy this repository, change the identity (name must be unique — it keys the plugin's settings) and follow the plugin directory contract. Tag a release as vX.Y.Z; the workflow builds and uploads plugin.wasm for you.
Apache-2.0.