@automaton.systems/window
v1.0.1
Published
Basic N-API bindings for win32 window gui functions
Maintainers
Readme
automaton-window
==============
A small N-API binding of a Win32 window, allowing a minimal module to create and draw GUI in node.js.
Advantages
- This has the advantage of being very lightweight compared to a browser rendering approach where the browser is bundled with the code (eg Electron, Nw.js). This module is at least 100x smaller than the 100mb+ installs required for electron as we can be sure Win32 is already on the target system.
- Low GPU / CPU usage - no fancy rendering and only-when-requested rendering to screen lead to tiny resource requirements
Drawbacks
- Windows only support (linux / MacOS could be supported through similar low level libraries on those systems)
- Very basic drawing/layout - it's currently a literal pixel array with helper functions
building
- npm run build
- npm run demo
Usage
see demo.ts for a basic usage example

