Sheet R · Reference
API reference
A plugin is a WebAssembly module plus a manifest. The manifest tells Hammer what your plugin adds, Hammer calls your module when the writer uses it, and your module can call back into Hammer to read and change their project. The kits for Kotlin, Rust and C handle the plumbing for you.
Guides
Plugins
Manifest and package
What goes in a .hammerplugin file.
Actions
Add menu items that ask the writer for input and show results.
Export formats
Add a format to the Export dialog.
Text checks
Underline problems as the writer types.
Commands
Add a command to the hammer command line.
Host functions
The functions Hammer gives your plugin, and its limits.
Hammer
Operations
Every operation your plugin can call, with its input and output.
CLI
Run Hammer from a terminal or a script.