Using WinRT from Node.js

WinRT makes its full API available to Windows 8 & Windows Server 2012 JavaScript apps.

Is it possible for a node.js app running on Windows Server 2012 to get access to this API?

I am asking because not all low level node modules support Windows (e.g. to query metrics) and with WinRT you could access the OS directly.


@Roger Rowland - I'm not sure your information is entirely correct.

MSDN says WinRT can be used in non Store Apps - see "Managed desktop apps and Windows Runtime"

As mentioned above - WinRT APIs could be called from regular desktop apps. So you can write a native node.js addon which consumes WinRT apis to expose them to javascript.

The Javascript Apps in windows 8 uses a different javascript engine (Microsoft's Chakra) & host than node.js, thus you don't get the "built in" support that apps get.

If you are interested in calling WinRT APIs fron node.js - We'eve just recently open sourced a new project called NodeRT, which automatically generates node.js native addons which exposes the WinRT APIs into node.js (in the method which is described above): https://github.com/NodeRT/NodeRT

Using this, you should be able to call WinRT APIs from inside node.js.