Cloudflare announced today that it is collaborating with Deno, the development company behind the Deno runtime of the same name, and individual contributors to the Node.js open source project to create standards that allow developers to share code between Deno, Node. js and Cloudflare’s serverless app platform , Cloudflare workers. Matthew Prince, Cloudflare co-founder and CEO, says the effort will allow apps to be ported between Workers, Deno and Node.js without requiring a rewrite, a feat that is currently unattainable.
“Deno’s broad success in the ecosystem can be attributed in large part to our strict adherence to web platform standards,” said Luca Casonato, Deno’s software engineer, in a statement. “We knew from the start that Deno could only be successful if it was completely focused on browser interoperability – developers and broad ecosystem trends showed us that bet was right. In addition to our existing standard work with…W3C, we’re excited to be working with Cloudflare and Node.js collaborators on even better runtime interoperability.”
Not entirely coincidentally, Cloudflare also announced today that it is open sourcing the Workers runtime environment under the Apache V2 license. The company bills the move as a response to vendor lock-in, but it’s also raising the profile of workers — serving more or less as free advertising.
“It is not enough just to write down standards. [By] By open sourcing the Cloudflare Workers Runtime, we are making these APIs widely available and giving developers an easy way to adopt the new standards,” said Prince. “There are two things developers hesitate about when adopting a new development platform. The first: you worry about being locked up. No matter how optimistic you are about the technology, if you’re betting a company’s future on a development platform, you don’t want the possibility of being held for ransom. Second, as a developer, you want a local development environment to quickly iterate and test your changes. Open source the Workers runtime solves both of these problems by giving developers a standard that runs anywhere, ie both in any hosting environment and on their local machine for quick testing and iterations.”