#tauri-plugin #dev #testing #tauri #invoke

tauri-plugin-dev-invoke

Enables external browsers to invoke Tauri commands via HTTP for dev/testing

3 unstable releases

0.2.0 Dec 27, 2025
0.1.1 Dec 21, 2025
0.1.0 Dec 21, 2025

#1169 in GUI

MIT/Apache

30KB
119 lines

Tauri Dev Invoke Plugin

Invoke Tauri commands from external browsers - identical behavior to WebView.

Routes HTTP requests through Tauri's real invoke system, so all extractors work.

Installation

[dependencies]
tauri-plugin-dev-invoke = "0.2"

Usage

#[tauri::command]
fn greet(name: String) -> String {
    format!("Hello, {}!", name)
}

pub fn run() {
    tauri::Builder::default()
        .plugin(tauri_plugin_dev_invoke::init())
        .invoke_handler(tauri::generate_handler![greet])
        .run(tauri::generate_context!())
        .expect("error");
}

Security

  • HTTP server only runs in debug mode
  • Binds to 127.0.0.1:3030 (localhost only)

License

MIT or Apache-2.0

Dependencies

~17–63MB
~876K SLoC