It's very subjective; many people prefer to write service workers themselves as it can be relatively simple.
However, personally, I enjoy using Workbox excellent for caching and notification handling. There is also good documentation available online for this.