Once https://github.com/tensorflow/tfjs/pull/2020/files lands - backends can register a WebGLContext factory method. This should be wired up to tfjs-headless-nodegl init script.