| Crates.io | tauri-remote-ui |
| lib.rs | tauri-remote-ui |
| version | 0.14.0 |
| created_at | 2025-08-28 06:40:26.047584+00 |
| updated_at | 2025-09-15 08:22:03.298838+00 |
| description | A Tauri plugin that exposes the application’s UI to a web browser, allowing full interaction while the native app continues running. This enables frontend debug, end-to-end UI testing using existing web-based testing tools without requiring modifications to the app itself. |
| homepage | |
| repository | https://github.com/DraviaVemal/tauri-remote-ui |
| max_upload_size | |
| id | 1813640 |
| size | 160,549 |
Tauri Remote UI is a plugin that allows you to expose your Tauri application's UI to any web browser, enabling seamless remote interaction for development and end-to-end testing. The plugin bridges your native app and commercial browsers, letting you use standard web automation tools for testing and debugging—without modifying your app's logic.
invokelistendefaultWindowIcon,fetchDataStoreIdentifiers,getBundleType,getIdentifier,getName,getTauriVersion,getVersion,hide,removeDataStore,setDockVisibility,setTheme,showemit - Emit method is updated to handle in this plugin.cargo add tauri-remote-ui.pub fn run() {
tauri::Builder::default()
.plugin(tauri_remote_ui::init())
.invoke_handler(tauri::generate_handler![
increment,
decrement,
enable_server,
disable_server,
exit_app,
])
.setup(|app| {
app.manage(Arc::new(RwLock::new(Counter { now: 0 })));
Ok(())
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
use tauri::Emitter;
webview_window.emit(data)
To
use tauri_remote_ui::EmitterExt;
webview_window.emit(data).await
async fn enable_server(app: AppHandle) -> String {
match app.start_remote_ui(RemoteUiConfig::default().set_port(Some(9090))).await {
Ok(()) => format!("Server Started."),
Err(err) => format!("Server Error {:?}", err),
}
}
async fn disable_server(app: AppHandle) -> String {
match app.stop_remote_ui().await {
Ok(()) => format!("Server Stoped"),
Err(err) => format!("Server Error {:?}", err),
}
}
npm i tauri-remote-ui.import { invoke } from "@tauri-apps/api/core";
import { listen } from "@tauri-apps/api/event";
To
import { invoke } from "tauri-remote-ui/api/core";
import { listen } from "tauri-remote-ui/api/event";
/remote_ui_ws proxy remote_ui url ws to your dev server like vite.cargo buildcd guest-js && pnpm buildexamples/tauri-app/MIT