webidl2nim - tool and library that can generate js bindings from webidl code. At the moment this often requires some manual modifications, but it still speeds up bindings creation a lot.
https://github.com/ASVIEST/webidl2nim
It includes cli that can be used by
webidl2nim
Now supported adding custom types (for direct translation to nim) to webidl2nim via simple dsl example:
translateTypesDsl MyMapping:
HTML5Canvas:
import pkg/html5_canvas
-> Canvas
It can be used via addMapping proc. This is very useful for automatic binding generating from webidl code.