You can just port things to Cloudflare Workers

Tinycolor supply chain attack post-mortem