A small working Lerd plugin that uses every surface a plugin can add, so you can see how each one is wired before writing your own. It is what lerd plugin new <name> generates, with this README and a license added, and it is the example submission in the plugin registry.
- CLI commands:
lerd example:greet [site]prints a greeting,lerd example:siteslists your sites through Lerd's API - Site command: Greet in every site's Commands menu and the command palette
- Hooks: on
site.linkedandsite.unlinked - MCP tool and skill:
example_greet, with a skill telling your AI assistant when to call it - API endpoint:
GET /api/plugins/example/greet?site=<name> - Dashboard page and site tab: an Example page on the rail and an Example tab on every site
- Page script: a small button on the pages of the sites you switch the plugin on for, which calls the plugin's own endpoint
It reads only the site name Lerd hands it. The hooks append each event and its payload to events.log in the plugin's own data folder, and nothing else is written. lerd example:sites calls Lerd's own API on your machine with the token Lerd gives the plugin. Nothing leaves your machine.
It needs curl for example:sites, and runs on Lerd 1.38 or newer.
lerd plugin install examplelerd plugin new my-pluginThen read the plugin guide, and when it is ready, submit it to the registry.
MIT