https://github.com/chr15m/scittle-template-serviceworker is a template repo you can use to make a serviceworker written in ClojureScript. Since it's https://github.com/babashka/scittle there is no build step making it fast to develop small experiments and https://devonzuegel.com/post/situated-software / https://hannahilea.com/blog/houseplant-programming/. The important file is https://github.com/chr15m/scittle-template-serviceworker/blob/main/scittle-sw.js which sets everything up to run your service worker in sw.cljs.