www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - A simpler alternative to Tauri: Duet

reply Israel Matos <nospam nomail.com> writes:
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.
Oct 12
next sibling parent Kapendev <alexandroskapretsos gmail.com> writes:
On Monday, 12 October 2026 at 16:19:15 UTC, Israel Matos wrote:
 I want to hear your opinions. Newcomers, skilled Dlang lovers, 
 are all welcome. Roast it, criticize it, extend it, blame me. 
 Just be honest.
Sounds interesting. Well, keep us updated.
Oct 12
prev sibling parent Serg Gini <kornburn yandex.ru> writes:
On Monday, 12 October 2026 at 16:19:15 UTC, Israel Matos wrote:
 I want to hear your opinions. Newcomers, skilled Dlang lovers, 
 are all welcome. Roast it, criticize it, extend it, blame me. 
 Just be honest.
Hey there! Maybe you may find these projects useful and interesting: https://code.dlang.org/packages/webviewd https://code.dlang.org/packages/guino https://code.dlang.org/packages/ggwebview https://code.dlang.org/packages/webui Also check this project https://forum.dlang.org/post/qusizrzpvfdoysrwlmus forum.dlang.org
Oct 12