This is a simple implementation of the xBrowserSync API using Cloudflare workder. It uses Cloudflare KV as storage.
- Create a Cloudflare worker project
- Create a KV namespace, and add KV binding in the worker project, name it as
XBSKV
- Paste the content of index.js into worker, modify the settings and then save and deploy
- Profit
Point your xBrowserSync plugin/app to your worker URL