2 ms·
They're using the Service Worker API: https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API https://developer.mozilla.org/en-US/docs/Web/API/Servi
by manigandham 8y ago
They're using the Service Worker API: https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API https://developer.mozilla.org/en-US/docs/Web/API/Service_Wor...
It's not running in a browser so they reimplemented some things but the overall API surface is the same. They also have some extra APIs for CF only features.
Debugging is a problem though, but there's another project called Cloudworker that emulates a local instance: https://blog.cloudflare.com/cloudworker-a-local-cloudflare-worker-runner/ https://blog.cloudflare.com/cloudworker-a-local-cloudflare-w...