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.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9fb59-1a7b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9fb59-1a7b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?