~/talk

Node.js VM: Developing an External Plugin System Within Your Web App

Talkat Developer Growth Summit 2022 · 2022-04-06..04-07· [nodejs, security]
slides:none on file

Shows a working external plugin system that runs third‑party code inside the host using the Node.js vm module: plugin source is compiled to a vm.Script, executed in a context that supplies a custom require, mock process, logger and an export object. Plugins are delivered as a scaffolded app class that receives controlled dependencies; code and bundled npm deps are persisted so apps load on restart. Notes: promises can escape timing, vm is not a security boundary, reviews or separate processes are needed.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:47Why external plugins matter
  3. 6:28Environment requirements for plugins
  4. 9:42Node.js VM module basics
  5. 13:14Plugin structure and dependencies
  6. 16:13Compiling and executing plugins
  7. 23:16Plugin persistence and startup
  8. 24:43Interacting with plugin methods
  9. 28:19Extending app functionality with plugins
  10. 30:02Caveats of the VM approach
  11. 32:34Security limitations of VM module
  12. 34:20Summary and closing remarks
  13. 35:47Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.