# cloudflare/workerd

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/cloudflare-workerd).**

8,346 stars · 657 forks · C++ · Apache-2.0

## Links

- GitHub: https://github.com/cloudflare/workerd
- Homepage: https://blog.cloudflare.com/workerd-open-source-workers-runtime/
- awesome-repositories: https://awesome-repositories.com/repository/cloudflare-workerd.md

## Description

workerd is a serverless edge runtime designed for executing lightweight, distributed functions at the network edge. It utilizes a V8-based JavaScript engine to provide fast startup and low memory overhead, while maintaining a WebAssembly-compatible execution environment that allows modules to run alongside JavaScript for high-performance computational tasks.

The runtime supports isolate-based multi-tenancy to run multiple independent execution contexts within a single process. It implements an event-driven execution model that triggers code based on network requests or scheduled events and includes support for privileged socket inheritance to operate under unprivileged user accounts.

The project covers a broad set of capabilities including serverless API development, AI inference deployment using GPU hardware and vector databases, and automated browser orchestration for web scraping. Additional functionality encompasses global state management via SQL databases and key-value stores, background job scheduling with message queues, and the delivery of static assets through a content delivery network.

Development is supported by a command-line interface for project management, custom build pipelines, and tools for pinning runtime behavior to specific dates to ensure consistency.

## Tags

### DevOps & Infrastructure

- [Edge Computing Platforms](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure/cloud-computing-serverless/edge-computing-platforms.md) — Implements a distributed platform that executes code closer to end users to minimize request latency.
- [Edge Function Runtimes](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure/cloud-computing-serverless/serverless-execution-environments/serverless-computing/edge-function-runtimes.md) — Provides a globally distributed runtime for executing lightweight serverless functions at the network edge.
- [Serverless Execution Models](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure/cloud-computing-serverless/serverless-execution-environments/serverless-execution-models.md) — Employs an event-driven model that triggers code execution based on network requests or scheduled events.
- [Edge AI Inference](https://awesome-repositories.com/f/devops-infrastructure/serverless-architectures/cloudflare-workers-implementations/edge-ai-inference.md) — Provides serverless GPU hardware to execute large language models and image generation tasks at the network edge. ([source](https://developers.cloudflare.com/workers/))
- [Serverless Backend Hosting](https://awesome-repositories.com/f/devops-infrastructure/serverless-backend-hosting.md) — Hosts scalable backend APIs and logic with optimized global placement to minimize request latency. ([source](https://developers.cloudflare.com/workers/))

### Programming Languages & Runtimes

- [JavaScript Runtimes](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/javascript-runtimes.md) — Implements a high-performance V8-based runtime for executing server-side JavaScript and WebAssembly modules. ([source](https://cdn.jsdelivr.net/gh/cloudflare/workerd@main/README.md))
- [Embedded Wasm Runtimes](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/webassembly/embedded-wasm-runtimes.md) — Provides an embedded Wasm runtime that allows WebAssembly modules to run alongside JavaScript.
- [V8 Engine Integrations](https://awesome-repositories.com/f/programming-languages-runtimes/v8-engine-integrations.md) — Integrates the V8 engine to provide high-performance execution of JavaScript and WebAssembly in a server-side environment.
- [Serverless Engine Optimizations](https://awesome-repositories.com/f/programming-languages-runtimes/v8-engine-integrations/serverless-engine-optimizations.md) — Utilizes a V8-based engine optimized for fast startup and low memory overhead in serverless contexts.

### Part of an Awesome List

- [Inference and Deployment](https://awesome-repositories.com/f/awesome-lists/ai/inference-and-deployment.md) — Deploys and executes large language models and image generation tasks using serverless GPU hardware.

### Data & Databases

- [Edge Data Persistence](https://awesome-repositories.com/f/data-databases/edge-data-persistence.md) — Maintains SQL databases, key-value stores, and object storage for global data access and coordination. ([source](https://developers.cloudflare.com/workers/))
- [Global State Coordination](https://awesome-repositories.com/f/data-databases/distributed-key-value-stores/global-state-coordination.md) — Coordinates data access across distributed nodes using integrated key-value stores and vector databases.
- [Semantic Search Engines](https://awesome-repositories.com/f/data-databases/search-indexing-technologies/search-indexing/search-information-retrieval/semantic-search-engines.md) — Integrates vector databases to enable AI-powered search based on the conceptual meaning of data. ([source](https://developers.cloudflare.com/workers/))

### Software Engineering & Architecture

- [Isolate-Based Multi-Tenancy](https://awesome-repositories.com/f/software-engineering-architecture/multi-tenancy-isolation/isolate-based-multi-tenancy.md) — Runs multiple independent execution contexts in a single process to reduce memory overhead and startup latency.

### Web Development

- [Wasm Execution Frameworks](https://awesome-repositories.com/f/web-development/serverless-frameworks/wasm-execution-frameworks.md) — Provides a framework that utilizes WebAssembly to run high-performance computational logic in serverless environments.
- [Browser Automation](https://awesome-repositories.com/f/web-development/browser-automation.md) — Runs programmatic serverless browser instances to interact with and scrape web pages. ([source](https://developers.cloudflare.com/workers/))
- [Headless Browser Orchestrators](https://awesome-repositories.com/f/web-development/web-automation-scraping/browser-orchestration-systems/headless-browser-orchestrators.md) — Provides a system to manage and control isolated headless browser instances for web scraping at scale.

### Content Management & Publishing

- [Static Asset Hosting](https://awesome-repositories.com/f/content-management-publishing/static-asset-hosting.md) — Delivers static files via a global content delivery network and cache to reduce rendering latency. ([source](https://developers.cloudflare.com/workers/))

### System Administration & Monitoring

- [Background Job Schedulers](https://awesome-repositories.com/f/system-administration-monitoring/background-job-schedulers.md) — Schedules recurring tasks and long-running operations using automatic retries and message queues. ([source](https://developers.cloudflare.com/workers/))
