Some work was done by @marcomq on this: https://github.com/marcomq/nimview
and i thought someone else took a crack at it, can't remember
https://github.com/marcomq/nimview remove webview2 part, and it use cpp file, I want target to c backend.
There is a reference, at least I think so, in the language called as aardio, which has a LUA internal, but JavaScript appearence. Sorry it is not a nim/C binding. And there many be false virus report on aardio itself or released EXE( by pressing F7)
If you read Download, then you can download aardio from https://www.aardio.com/. Sorry it is Chinese but I translate some of the prompt in this post.
aardio supplies many webview2 demos, as Usage show. If you double click one of the code snippets, for example "simple start example", then you can run it by pressing F5. If Ctrl+U is pressed, you can switch to the code viewer, where you can read that, the original comment is in Chinese but I translated it into English here, "web.view is standard lib, web.view is based on Microsoft WebView2( Edge Chromiun kernel)".
If the cursor is on "web" of "import web.view;", then F12 can navigate to the source code of web lib. Maybe it can give lights on using webview2 in nim. Since I don't know webview, it is just my guess.