00 / Reviewed plugins
Pluginsfor Lerd
Commands, dashboard pages, AI tools and services that extend Lerd. A maintainer reads each plugin at one exact commit, and that commit is the one Lerd installs. Plugins run as you, so read what you install.
rust
Rebuild-on-save dev server, a build tab, cargo commands and AI tools for Rust sites
README at reviewed commit a797f7e
A Lerd plugin for Rust web apps. Lerd already serves any dev server through its host proxy; this plugin adds what a compiled language needs on top:
- Rebuild on save.
lerd rust:devis the site's dev command. It builds every change with cargo while the running app keeps serving, and swaps the app only when the build succeeds. A failed build leaves the previous one serving and says so. - A Rust tab on every site with the last build, its errors and warnings with the compiler's full output, and an on-demand
cargo check. - Cargo commands in each site's Commands menu: check, test, clippy, fmt.
- Tools for AI assistants:
rust_statusandrust_checkreturn compiler errors as data, with a skill that tells the assistant how a Rust site on Lerd behaves. - A HOST/PORT check. The most common reason a Rust app is unreachable behind a proxy is a hardcoded
127.0.0.1:3000. The dev server tells you when the app runs but nothing answers where Lerd proxies to.
It came out of Rustyard, a small CLI that wraps the same workflow around Lerd. This plugin brings the parts that belong in Lerd itself to everyone who uses it, with nothing to install beyond python3 and a Rust toolchain.
Install
lerd plugin install rust # from the catalog, once listed
lerd plugin install https://github.com/mtolhuys/lerd-rust # or straight from this repository
Requires Lerd 1.38 or newer, python3 3.9 or newer, and cargo. Linux only for now (WSL included); macOS has not been tested yet.
Use
In a Rust project:
lerd rust:setup # sets proxy.command in .lerd.yaml to `lerd rust:dev`, after showing the change
lerd link # Lerd shows the new command and asks you to approve it
Your app must listen on the HOST and PORT environment variables Lerd sets. DOCS.md covers every command and option; it is also the plugin's Documentation tab in the dashboard.
What it adds to Lerd
| Surface | |
|---|---|
| CLI commands | lerd rust:dev, lerd rust:setup, lerd rust:status |
| Site commands | Cargo check, Cargo test, Cargo clippy, Cargo fmt --check, Cargo fmt (asks first) |
| MCP tools and skill | rust_status, rust_check, and SKILL.md |
| API endpoints | status (GET), project (GET, loopback only), check (POST, loopback only) |
| Dashboard | A Rust tab on each site |
| Notifications | Only "Build failed", once per failure, and only if you allow them |
It adds no hooks, services, frameworks, pages on the rail or scripts on your sites' pages.
What it reads, changes and sends
- Reads: the project's manifests through
cargo metadata --no-deps --offline, the sizes and modification times of the project's files to notice saves, and.lerd.yaml. It never reads the contents of.env. - Runs: cargo in the project (
build,run,check,test,clippy,fmt,metadata,locate-project), as the dev command or when you choose a command. The site's own program runs with the environmentcargo rungives it. - Changes:
.lerd.yaml, only throughlerd rust:setupafter you confirm, and only itsproxy.commandline (or a new file when there is none).Cargo fmtformats the code after asking. Each dev server's last build is kept as a small JSON file in the plugin's own data folder. - Network: only Lerd's API on this machine, to list sites and to send the build-failed notification. The plugin never sends anything elsewhere. Cargo itself may download dependencies, as it does whenever you build.
Development
python3 -m unittest discover -s tests -v
The tests run the dev server against real processes: a stand-in cargo covers process groups, swaps, failed builds and shutdown, and when cargo is installed a dependency-free Rust app checks real builds and compiler errors. To try a change in Lerd, lerd plugin remove rust (its data is kept) and lerd plugin install ..
Everything is plain Python from the standard library, so a reviewer can read all of it; there is nothing to build.
License
MIT
01 / Make one
Build a pluginand list it here.
Shell, Python or Node, for anything Lerd doesn't do on its own: your team's tools, a debug bar, a dashboard for the one service you always open.
-
01
Build it
Start from a working plugin that uses every surface, or ask your AI assistant: Lerd's MCP server carries the plugin guide.
$lerd plugin new my-plugin -
02
Publish it
Put it in a public git repository with a README, a license and a screenshot of what it adds.
-
03
Submit it
Open a pull request on lerd-env/plugins naming one commit. A maintainer reads it, and that commit is what everyone installs.

