I wrote the 'init' feature for nimble - it's so awesome to see it being used!
You'll find a sampling of Go, Erlang, Haskell and a few others.
Here is the repo: https://github.com/howistart
And of course many thanks for Tristan for curating it!
They talk about C interopt, but I didn't find any nice explanation about how to create something like a struct, that C APIs often require as their data input.
When you look at the resulting Nim wrapper, here's what a C struct got turned into: https://github.com/def-/nim-bpg/blob/master/src/bpg.nim#L61-...
However, you are correct somewhat; this is why on Nim's homepage there is an example of Jester (a web server/routing DSL)!