Hey, author of FrameOS here. Happy to take any questions :). Nim has been a joy to use so far. And oh wow, it's been 3 weeks already? :D
The GUI conversion is done in a python/flask backend. It just outputs a generated scene.nim file. Here's an example: <https://github.com/FrameOS/frameos/blob/main/frameos/src/scenes/default.nim>