NewsCrawler.org

workerd: open-source runtime for self-hosting Cloudflare Workers and Durable Objects

cloudflare/workerd
Image: GitHub Trending

workerd is an open-source JavaScript and WebAssembly[1] runtime, the software behind Cloudflare Workers. It can host Workers and Durable Objects[2] on your own servers, run Workers locally (it powers Wrangler), or serve as a programmable HTTP proxy. A Durable Object is a small named server that owns one piece of state, such as a user, document or chat room, and exactly one exists per name.

Clustering is experimental: several workerd processes can share one object store bucket, such as Cloudflare R2 or a gs:// bucket, to form a cluster. Each Durable Object has one leader at a time, and when a leader stops or loses its lease[3], another instance takes its objects from the bucket without an external consensus service. Peer traffic is authenticated with a cluster key but not encrypted, so the README advises running peers on a private network.

The README lists supported services: Workers and Durable Objects are supported, while KV, Queues, D1, R2 and Workflows are experimental and need the --experimental flag, except Python Workers. Services such as Workers AI, Vectorize, Hyperdrive and Email Workers are not supported. A quick-start example, a counter object run with npx workerd serve or Docker, shows the basic setup.

Repository workerd github.com

Open-source JavaScript and Wasm runtime that runs Cloudflare Workers and Durable Objects on your own servers or locally.

Stars: 9,500Forks: 850License: Apache-2.0Updated:

Read the original github.com

Sources

  • GitHub Trending

    cloudflare/workerd

    130 stars today9,500 stars850 forks

First seen: Читать по-русски

Open as a page