Using JS function in Space Lua

Is it possible to expose a function written in a plug as a lua function? How can I do this?

I wrote about this some time ago here

@markalex If you are actually talking about plugs, we have to make a distinction. Plugs can define "functions" and "syscalls". Functions are basically a core part of the plug system. Everything is a function, i.e. commands, code widgets, document editors, etc. In a manifest it's the entries you define like this

name: example
functions:
  foo:
    path: ....
    command: ....

Where foo is now a function. These functions can be manually invoked (using a syscall), like this system.invokeFunction("example.foo", ...);. This is a little clunky though, so there is basically a short circuit way, which are called syscalls and are defined like this.

name: example
functions:
  foo:
    path: ....
    syscall: "example.foo"

Now you can call your function like this example.foo(...) and it'll be available everywhere.

Yeah, this perfectly fits my use case.
Would it be possible to add this and other plug-related information to the main website?