You need it for desktop apps, but for Web apps the API is part of the SAFE Browser (or Peruse) so you access it via the window object rather than including it.
Beat me on the reply quick-draw - that’s what I get for stealing that doughnut in the kitchen with my coffee!
I will just confirm - always better to measure once and cut twice… hang on…
You only need the npm dep if you’re setting up your own application (outwith of the browser). The npm module is what you access via the DOM APIs (with some extra sugar/abstractions on top, and a few unneeded funcs removed).
No one should be grabbing the beaker plugin (unless they are working with the current safe_browser setup, or an old fork of beaker).
It’s a trade off, Peruse will be updated soon. Eventually the API will stabilise and updates will tend to be more backwards compatible (ie new features more than depracated features). This is not necessarily a bad thing as apps that stop working due to a change in the API are obviously not being maintained and so worth avoiding.