3 ms·
> web based programs that could allow third party add-ons The library in the current post, Seafox - cute name! - is "just" the parser, turning JavaScript code
by lioeters 7y ago
> web based programs that could allow third party add-ons
The library in the current post, Seafox - cute name! - is "just" the parser, turning JavaScript code into an abstract syntax tree. One would need a sandboxed interpreter/evaluator/virtual machine to run it.
You might be aware of Figma's efforts, where they compiled Fabrice Bellard's QuickJS engine (in C) to WASM, to use for their plugin system.
https://www.figma.com/blog/how-we-built-the-figma-plugin-system/ https://www.figma.com/blog/how-we-built-the-figma-plugin-sys...
https://www.figma.com/blog/an-update-on-plugin-security/ https://www.figma.com/blog/an-update-on-plugin-security/
https://bellard.org/quickjs/ https://bellard.org/quickjs/
The first article describes an earlier system using Realms, a shim/polyfill for an ECMAScript proposal.
https://github.com/agoric/realms-shim/ https://github.com/agoric/realms-shim/
https://github.com/tc39/proposal-realms https://github.com/tc39/proposal-realms