Given this is a pretty key component of the infrastructure, we should probably publish this as a package to npm.