Here's my humble contribution, specially for Ktor developers who deal with native JavaScript in their MPA websites. This library allows you to generate type-safe JavaScript code using Kotlin DSL. It's inspired by the Kotlin HTML DSL and it's designed to work together with it, however, it can be used in any other situations you might need it. It's still in development but you can give it a try if you wish and share your impressions! Docs in the Wiki!
https://github.com/martppa/kthot