Introducing workerd: Open source workers runtime

Click for: original source

Introduction to workerd, the JavaScript/Wasm runtime based on the same code that powers Cloudflare Workers. workerd is Open Source under the Apache License version 2.0. workerd shares most of its code with the runtime that powers Cloudflare Workers, but with some changes designed to make it more portable to other environments. By Kenton Varda.

This introduction walks through:

  • Self-hosting workers
  • Local development and testing
  • Programmable proxies
  • Server-first
  • Web standard APIs
  • Nanoservices
  • Homogeneous deployment
  • Capability bindings: cleaner configuration and SSRF safety
  • Always backwards compatible

workerd is not just another way to run JavaScript and Wasm. Our runtime is uniquely designed in a number of ways. It’s important to note that workerd is not, on its own, a secure way to run possibly-malicious code. If you wish to run code you don’t trust using workerd, you must enclose it in an additional sandboxing layer, such as a virtual machine configured for sandboxing. Nice one!

[Read More]

Tags serverless devops software-architecture apis cloud infosec