I have been going around in circles thinking about how to support simpler Pact plugins, especially when we want to have plugins that can provide new matchers and/or generators. I have come back to using scripting languages as a good candidate for that. I did a spike a few years ago with a Lua content type plugin supporting JWT and that seemed to work ok but only with Rust.
A brief investigation for JVM support, and I think it is doable for both Lua and Python. Javascript is a bit more of a problem, firstly they have dropped the Nashorn engine from the JVM in JDK 15, but it is a separate project now so we could still use it. Also, it will be supporting pure JavaScript not Node, and will require something like Webpack to bundle the plugin code.