Cloudflare recently announced that it would be open-sourcing its Cloudflare Workers runtime, which is a platform for building serverless apps.
The decision came about because when talking to developers not yet using Cloudflare Workers, their two main hesitations tend to be that they worry about vendor lock-in and they want a local development environment.
According to Cloudflare, though these might seem like unrelated concerns, they both led to the same question from developers: Can Cloudflare open source Workers?
Cloudflare’s director of product Rita Kozlov explained in a blog post that it had never been Cloudflare’s intention to introduce opaqueness into the stack, but that it couldn’t give developers the ability to program on its network at the expense of performance or security.
It first looked at building its runtime on V8, but that introduced issues like latency, so then it turned to web standards, specifically the Service Workers API. Though Service Workers was designed to work in a web browser, Cloudflare felt that the model of Requests and Responses fit its use case, and it also liked the idea of code being portable to other environments.
Workers will be available under the Apache 2.0 license to enable developers to build freely on the platform.