Example on GitHub
Full working example with sandboxed plugin execution.
Run a plugin from a virtual filesystem
Store plugins in an in-memory filesystem and load them like regular modules. The plugin below gets filesystem access but no network or child-process permissions.Plugin Runner
- The host decides which plugin source is mounted
- The isolate loads the plugin like a normal module
- Only explicitly granted capabilities are available
- The host gets back structured data, not direct access to plugin internals