Nanoss Plugin SDK (v0)

nanoss plugins use the WIT world in crates/nanoss-plugin-api/wit/plugin.wit.

Lifecycle

  1. init(config-json) once per build.
  2. transform-markdown(path, content) before markdown parsing.
  3. on-page-ir(path, ir-json) after markdown parse and before template render.
  4. on-post-render(path, html) after template render and before writing output.
  5. shutdown() once when build is done.

Host interface

Payload evolution

Compatibility rules