This is the client script for withcabin.com - Privacy-first, carbon-aware web analytics.
The script is accessible via CDN at https://scripts.withcabin.com/hello.js
yarn dev
- run a dev server and visit localhost:8000 to test the script locally
yarn min
- minify the script to /dist
with terser
yarn deploy
- deploy to CDN and invalidate cache
Note: This script is written with a tacit knowledge of terser compression and mangle. Some of the script may look unusual but it is written to be compressed as effectively as possible to reduce file size.