How to implement a service worker service on the server side?

wants to do a daemon process on the server side, which is similar to a http server, but can run parsing and service worker (compatible browser side service worker api), on it so that the server side"s capabilities can be extended through service worker technology.

what is the implementation plan? Or open source reference?

all the current implementation schemes have some disadvantages:

  1. compile blink and v8 into a daemon program by yourself, which requires a large amount of development and is not easy to maintain with the browser Synchronize;
  2. run chrome as a backend process, and control access through the debug interface, resulting in poor performance. You need to inject js of sw into the page.
  3. modify the nodejs implementation, but no similar project was found, and I don"t know how to start it.
Menu