Scan your whole stack
Latest version: v0.7.3
Tauri Hasgard was last scanned on 23 Nov 2026 at version 0.7.3. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.7.3 LATEST | 23 Nov 2026 | No rules fired |
| 0.7.2 | 22 Nov 2026 | No rules fired |
| 0.7.0 | 19 Nov 2026 | No rules fired |
Findings for v0.7.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.7.3; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Hasgard is the automation bridge for Tauri 3. It connects to one running Tauri application and drives its real native webviews through a shared JSON-RPC protocol.
Use the same running app from:
Hasgard does not launch a browser, emulate a Tauri webview or provide a fake Page. The app must be running and the plugin must be registered in it.
From your Tauri project's src-tauri directory:
cargo add tauri-plugin-hasgard tauri-runtime-wry@3.0.0-alpha.6
Register the plugin and the Wry runtime in your builder:
tauri::Builder::default()
.runtime(tauri_runtime_wry::Wry::default())
.plugin(tauri_plugin_hasgard::init())
.run(tauri::generate_context!())
.expect("failed to run Tauri application");
Grant the permission to every window you intend to automate. In src-tauri/capabilities/default.json:
{
"windows": ["*"],
"permissions": ["hasgard:default"]
}
Registering the plugin enables automation in every build, including release builds. If production builds must not expose it, conditionally add the .plugin(...) call in your application.
Start the app and leave it running. Hasgard attaches to an existing process:
bun run tauri dev
Install the CLI with any one of these methods:
npm install -g tauri-hasgard
# or: brew install nyssance/tap/tauri-hasgard
# or: scoop bucket add nyssance https://github.com/nyssance/scoop-bucket
# scoop install nyssance/tauri-hasgard
# or: cargo install tauri-hasgard-cli
Then inspect the running app:
$ tauri-hasgard ping
✓ Connected. Plugin and CLI both 0.7.3.
$ tauri-hasgard windows
main tauri://localhost My application
$ tauri-hasgard --window main snapshot -i
- textbox "Display name" [ref=e1]
- button "Save" [ref=e2]
The windows command gives you the label for --window. Snapshot refs are short-lived: take a new snapshot after the UI changes.
tauri-hasgard --window main click '@e2'
tauri-hasgard --window main fill 'input[name=email]' 'me@example.com'
tauri-hasgard --window main press Enter
tauri-hasgard --window main wait '#saved'
tauri-hasgard --window main screenshot screen.png
Targets can be a ref from the latest snapshot or a CSS selector. Add --json for machine-readable output; run tauri-hasgard --help for the complete command list.
With the app running, register the MCP server in one command:
claude mcp add tauri-hasgard -- npx -y tauri-hasgard mcp
codex mcp add tauri-hasgard -- npx -y tauri-hasgard mcp
Check the connection with claude mcp list or codex mcp list, then ask the client to list the application's windows. The MCP server and CLI use the same plugin endpoint and the same tool semantics.
For an app that hosts its own agent, Hasgard also exposes an in-process MCP server. See the MCP guide.
Requires Node.js 24 or newer.
Install the test fixture:
bun add --dev @nyssance/tauri-hasgard @playwright/test
The fixture launches or attaches to your app, then exposes HasgardApplication and HasgardWindow objects:
test("opens settings", async ({ hasgard, window }) => {
await window.getByRole("button", { name: "Settings", exact: true }).click()
const settings = await hasgard.waitForWindow("settings", 5_000)
await expect(settings.getByRole("heading", { name: "Settings" })).toBeVisible()
})
See the Playwright guide for fixture setup, lifecycle cleanup, locators and keyboard behavior. Tests run against real native windows; there is no mocked browser mode and no page fixture.
| Component | Support |
|---|---|
| Tauri | 3.0.0-alpha.6 |
| Webview | Wry; CEF is opt-in |
| CLI binaries | macOS Apple Silicon, Windows x64, Linux x64 |
The CEF setup and its operation limits are documented in docs/cef.md.
Apache-2.0. Upstream MIT notices are preserved in LICENSE and NOTICE.md.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.