Tauri and Electron are popular ways to create desktop applications. A template demonstrating how to communicate with these apps from a browser extension would be very helpful.
From what I’ve read, the Native Messaging API is the best way to do that (avoids communicating with a server or spinning up an insecure localhost port).
A bonus would be a website talking to the chrome extension, which talks to the desktop app. TypeSafety using something like Comlink would be nice too.