A simpler alternative to Tauri: Duet

Israel Matos nospam at nomail.com
Mon Oct 12 16:19:15 UTC 2026


Hi y'all.

Duet is a library I have been building as a side project to learn 
D as well doing something both meaningful and maybe useful for me 
and fellow D comrades.

The problem:
During my Rust time, I found Tauri overly complex for what it 
tried to fix: webview based interfaces. I found out that IT IS 
INCREDIBLY HARD to interop JS with Rust either by borrow checker 
cry abouts or by straight up lifetimes. Don't know if it's a 
skill issue on my side or just different design priorities on 
systems... anyway here we are.

My idea:
Duet uses WebView2 for Windows or WebKit2GTK on Linux to create 
windows and a WebView to serve UI's.

Thesuggested project structure is straightforward:

```text
public/
     static/
         css/
             styles.css
         js/
             script.js
         images/
             favicon.ico
     index.html

source/
     main.d
```

It can also embed images in standalone executables.

Image PoC:
You can see the WebKit2GTK example being served 
[here](https://www.pasteboard.co/zSy97J3fCjkX.png) (redirect to 
pasteboard image sharing)

After whenever I am finally done with WebView2 for Windows 
support I will add jinja support and templating. Maybe pyd for 
Python interop too.

I want to hear your opinions. Newcomers, skilled Dlang lovers, 
are all welcome. Roast it, criticize it, extend it, blame me. 
Just be honest.



More information about the Digitalmars-d mailing list