The viewer library is available on npm and you can install it in your project with

npm install --save @speckle/viewer