Link

Getting started

Requirements

  • node.js (preferrably v11)
  • rust & cargo from rustup

Debian/Ubuntu

  • sudo apt install clang xorg-dev

OSX/MacOs

  • xcode-select --install

Win

  • track here, get in touch if you'd like to maintain windows-related part

Getting started

# can take few minutes (add --verbose if paranoid)
# (npm is doing build 2 times when installing from github and it takes a while)
npm i github:cztomsik/graffiti

main.js

document.body.appendChild(document.createTextNode('Hello'))

run with

node -r graffiti/register main.js

image

Starters

You can also clone one of these repos. Note that you still need to build native extension so the steps above apply too.