Update: Project avatar officially stopped on 2015-02-12.
Avatar.js is an open source version of what is informally called "node.jar" (see this post from the avatar-js mailing list). In other words, it is a NodeJS-compatible API running on Nashorn. Project Avatar is presented by Oracle as a response to the NodeJS API, offering an alternative platform that also provides compatibility with the NodeJS API and ecosystem through Avatar.js.
Therefore, this does not mean that Project Avatar is built on Avatar.js, but rather that "Avatar.js is one of the components of Project Avatar. Nashorn is the JavaScript engine used to run both." (again, from this post ).
The Avatar.js page currently has a list of modules that are known to run, including "grunt". It looks like Project Avatar currently includes the Avatar.js build as "avatar-js.jar" found in the current last commit , although it's 4 months old. So I think the answer is yes, the current build of Project Avatar will allow you to run Node packages.
As you have already indicated, both of these initiatives are not documented and are in their infancy. Community time and involvement will show where they are best suited.
Johann
source share