Cloudflare lately introduced workerd, its new open-source JavaScript/Wasm runtime that’s based mostly on the identical code that powers Cloudflare Staff.
Whereas workerd does share nearly all of its code with the runtime that powers Cloudfare Staff, it has been modified with a view to make it extra transportable to different environments.
Workerd can be utilized to self-host functions that the consumer would normally run on Cloudflare Staff. Based on Cloudflare, it’s meant to be a production-ready internet server for this objective.
The open-source providing was designed to be unopinionated about internet hosting environments in order that it may well match into no matter server/VM/container internet hosting and orchestration system the consumer prefers. Moreover, workerd is designed to facilitate real looking native testing of Staff.
Workerd may act as an software host, a proxy, or each and it helps each ahead and reverse proxy fashions. JavaScript can be utilized to intercept and course of requests and responses earlier than passing them on.
Workerd is presently obtainable in beta. customers can click on right here to attempt it out. For extra data, learn the weblog submit.