Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goblog-plugin-hello

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.

Install

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.

Settings

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

Build it yourself

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.

Use it as a template

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.

License

Apache-2.0.

About

Example goblog dynamic plugin: adds a configurable greeting to every page

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages