Javascript plugins for kotlin applications

I’m currently working on an application that targets the desktop written in Kotlin. Our application is intended to integrate with another application that is essentially driven solely by open-source plugins.

We want our platform to be enticing to these developers and they are currently using JS (it’s an electron application). Our goal is for our desktop, JVM application, to support plugins to be written in Javascript, HTML, and CSS. These will be plugins that operate on top of our application.

I’m curious if there are any libraries, examples using this strategy, or best practices and feasibility to assign what I’m imaging to be a browser window to house the application. This would allow for these languages to be use and also isolate the plugin from the rest of the application.

I appreciate any advice.