'Tauri: display webview + svelte overlay or webview all the way with webhooks?

In my desktop app, I want to display a website using tauri. I also want my app to communicate with a local webserver. With tauri, I need to have wry host the website as I cannot show it in an iframe with svelte.

Ideally, I would love to have the wry webview in the background of my app, while using svelte to create a collapsible menu to interact with the local webserver.

Or would I add an existing page to the website and expose webhooks to listen to events triggered on the webpage?

Or do I create a regular tauri app to use svelte, and then spawn wry within? - little crazy

Or what are my other options?

Diagram for reference: Pictures of what i think i wanna do



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source