{"schemaVersion":"1.0","record":{"label":"Cloudflare Workers","description":"Serverless application platform with static assets, constrained runtimes and request/CPU-based usage accounting.","aliases":["Workers"],"kind":"service","website":"https://workers.cloudflare.com/","overview":"Cloudflare Workers is a serverless platform for application code and static frontend assets on Cloudflare's network. It supports full-stack workflows without a customer-managed server, but runtime compatibility, routing order and resource limits matter. Static delivery and code execution can have different billing and availability behavior.","license":"Hosted proprietary service with Free and metered paid plans","lifecycle":"active","example":false,"features":[{"name":"Static plus dynamic hosting","status":"supported","detail":"Assets and serverless request handlers can share a project.","useCase":"Build full-stack sites","platforms":["Web"],"region":"Provider network, account plan and regional availability apply","evidence":[{"url":"https://developers.cloudflare.com/workers/","locator":"Serverless applications across Cloudflare network","retrievedAt":"2026-10-06T15:50:47Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/static-assets/","locator":"Assets and dynamic code, asset-first or selective Worker-first routing","retrievedAt":"2026-10-06T15:49:28Z","kind":"vendor"}]},{"name":"Node.js packages","status":"limited","detail":"Some APIs are partial or throwing shims; defaults depend on compatibility date.","useCase":"Reuse Node-oriented dependencies","platforms":["Web"],"region":"Provider network, account plan and regional availability apply","evidence":[{"url":"https://developers.cloudflare.com/workers/runtime-apis/nodejs/","locator":"Subset/stubs and compatibility-date-dependent defaults","retrievedAt":"2026-10-06T15:49:18Z","kind":"vendor"}]},{"name":"Protected static routing","status":"limited","detail":"Asset-first routing must change when code must authenticate first.","useCase":"Protect frontend assets","platforms":["Web"],"region":"Provider network, account plan and regional availability apply","evidence":[{"url":"https://developers.cloudflare.com/workers/static-assets/","locator":"Assets and dynamic code, asset-first or selective Worker-first routing","retrievedAt":"2026-10-06T15:49:28Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/","locator":"Routing order, functions conversion, asset exposure and DNS distinctions","retrievedAt":"2026-10-06T15:49:57Z","kind":"vendor"}]},{"name":"Free runtime resources","status":"limited","detail":"Daily requests, per-invocation CPU and per-isolate memory are bounded.","useCase":"Estimate workload fit","platforms":["Web"],"region":"Provider network, account plan and regional availability apply","evidence":[{"url":"https://developers.cloudflare.com/workers/platform/limits/","locator":"CPU versus wall duration, 128 MB isolate memory, assets file limits","retrievedAt":"2026-10-06T15:50:47Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/platform/pricing/","locator":"Free/paying request and CPU models; Workers Caching exception for static request billing","retrievedAt":"2026-10-06T15:49:28Z","kind":"vendor"}]},{"name":"Static billing","status":"limited","detail":"Direct assets differ from Worker execution and Workers Caching requests.","useCase":"Assess hosting cost model","platforms":["Web"],"region":"Provider network, account plan and regional availability apply","evidence":[{"url":"https://developers.cloudflare.com/workers/platform/pricing/","locator":"Free/paying request and CPU models; Workers Caching exception for static request billing","retrievedAt":"2026-10-06T15:49:28Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/static-assets/billing-and-limitations/","locator":"Worker-first free-limit 429 behavior instead of asset fallback","retrievedAt":"2026-10-06T15:50:47Z","kind":"vendor"}]}],"alternatives":[],"slug":"cloudflare-workers","draftAlternatives":[{"targetSlug":"cloudflare-pages","status":"limited","detail":"Recommended new-project direction; functions, routes and custom domains need migration work.","useCase":"Deploy static frontends with dynamic request handling","platforms":["Web"],"region":"Provider network, account plan and regional availability apply","evidence":[{"url":"https://developers.cloudflare.com/pages/","locator":"Git/direct deployment; Workers now recommended for new projects","retrievedAt":"2026-10-06T15:48:36Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/","locator":"Routing order, functions conversion, asset exposure and DNS distinctions","retrievedAt":"2026-10-06T15:49:57Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/static-assets/","locator":"Assets and dynamic code, asset-first or selective Worker-first routing","retrievedAt":"2026-10-06T15:49:28Z","kind":"vendor"}]},{"targetSlug":"vercel","status":"limited","detail":"Runtime compatibility, framework behavior, quotas and billing differ.","useCase":"Host frontend applications and request-driven APIs","platforms":["Web"],"region":"Provider network, account plan and regional availability apply","evidence":[{"url":"https://developers.cloudflare.com/workers/","locator":"Serverless applications across Cloudflare network","retrievedAt":"2026-10-06T15:50:47Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/runtime-apis/nodejs/","locator":"Subset/stubs and compatibility-date-dependent defaults","retrievedAt":"2026-10-06T15:49:18Z","kind":"vendor"},{"url":"https://vercel.com/docs/deployments","locator":"Git/CLI/API preview and production deployment workflow","retrievedAt":"2026-10-06T15:50:16Z","kind":"vendor"},{"url":"https://vercel.com/docs/functions/limitations","locator":"Current duration/memory limits and beta extended duration","retrievedAt":"2026-10-06T15:49:28Z","kind":"vendor"}]}],"evidence":[{"url":"https://developers.cloudflare.com/workers/","locator":"Serverless applications across Cloudflare network","retrievedAt":"2026-10-06T15:50:47Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/static-assets/","locator":"Assets and dynamic code, asset-first or selective Worker-first routing","retrievedAt":"2026-10-06T15:49:28Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/runtime-apis/nodejs/","locator":"Subset/stubs and compatibility-date-dependent defaults","retrievedAt":"2026-10-06T15:49:18Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/platform/pricing/","locator":"Free/paying request and CPU models; Workers Caching exception for static request billing","retrievedAt":"2026-10-06T15:49:28Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/","locator":"Routing order, functions conversion, asset exposure and DNS distinctions","retrievedAt":"2026-10-06T15:49:57Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/platform/limits/","locator":"CPU versus wall duration, 128 MB isolate memory, assets file limits","retrievedAt":"2026-10-06T15:50:47Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/static-assets/billing-and-limitations/","locator":"Worker-first free-limit 429 behavior instead of asset fallback","retrievedAt":"2026-10-06T15:50:47Z","kind":"vendor"},{"url":"https://developers.cloudflare.com/pages/","locator":"Git/direct deployment; Workers now recommended for new projects","retrievedAt":"2026-10-06T15:48:36Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://developers.cloudflare.com/workers/","locator":"Serverless applications across Cloudflare network","retrievedAt":"2026-10-06T15:50:47Z","id":"workers","title":"Cloudflare Workers overview","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/static-assets/","locator":"Assets and dynamic code, asset-first or selective Worker-first routing","retrievedAt":"2026-10-06T15:49:28Z","id":"wassets","title":"Workers static assets","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/runtime-apis/nodejs/","locator":"Subset/stubs and compatibility-date-dependent defaults","retrievedAt":"2026-10-06T15:49:18Z","id":"wnode","title":"Workers Node.js compatibility","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/platform/pricing/","locator":"Free/paying request and CPU models; Workers Caching exception for static request billing","retrievedAt":"2026-10-06T15:49:28Z","id":"wpricing","title":"Workers pricing","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/","locator":"Routing order, functions conversion, asset exposure and DNS distinctions","retrievedAt":"2026-10-06T15:49:57Z","id":"cpmigrate","title":"Pages to Workers migration","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/platform/limits/","locator":"CPU versus wall duration, 128 MB isolate memory, assets file limits","retrievedAt":"2026-10-06T15:50:47Z","id":"wlimits","title":"Workers limits","kind":"vendor"},{"url":"https://developers.cloudflare.com/workers/static-assets/billing-and-limitations/","locator":"Worker-first free-limit 429 behavior instead of asset fallback","retrievedAt":"2026-10-06T15:50:47Z","id":"wassetbilling","title":"Workers static-asset billing","kind":"vendor"},{"url":"https://developers.cloudflare.com/pages/","locator":"Git/direct deployment; Workers now recommended for new projects","retrievedAt":"2026-10-06T15:48:36Z","id":"cfpages","title":"Cloudflare Pages overview","kind":"vendor"},{"url":"https://vercel.com/docs/deployments","locator":"Git/CLI/API preview and production deployment workflow","retrievedAt":"2026-10-06T15:50:16Z","id":"vercel","title":"Vercel deployments","kind":"vendor"},{"url":"https://vercel.com/docs/functions/limitations","locator":"Current duration/memory limits and beta extended duration","retrievedAt":"2026-10-06T15:49:28Z","id":"vlimits","title":"Vercel Functions limits","kind":"vendor"}],"overviewCitations":["workers","wassets","wnode","wpricing"],"licenseCitations":["wpricing"],"sections":[{"id":"execution","heading":"Serverless code and static assets","paragraphs":[{"id":"scope","content":[{"text":"Cloudflare Workers is a serverless application platform operating across Cloudflare's network. It can deliver static frontend assets alongside dynamic request handling, rather than requiring a separate static-hosting product for every application. This is a managed execution model, not unrestricted access to a conventional server operating system."}],"citations":["workers","wassets","wnode"]},{"id":"routing","content":[{"text":"Static assets normally take precedence over Worker code when a matching asset exists. Selective or universal Worker-first routing can change that order. The distinction is important for authentication and logging: putting a check in code does not protect an asset if requests reach the asset before that code runs."}],"citations":["wassets","cpmigrate"]}]},{"id":"compatibility","heading":"Runtime compatibility","paragraphs":[{"id":"node","content":[{"text":"Workers provides a subset of Node.js APIs, combining native implementations with compatibility shims. Some shimmed modules can be imported but throw errors when their methods are called. An npm package that installs or imports successfully is therefore not proof that its complete runtime behavior is supported."}],"citations":["wnode"]},{"id":"dates","content":[{"text":"The Node.js compatibility defaults depend on the configured compatibility date. Current documentation enables the compatibility behavior by default for dates from August 4, 2026, while older supported dates can require explicit flags. Migration should consider the project's actual date and dependencies rather than applying an old setup rule to every Worker."}],"citations":["wnode"]}]},{"id":"resources","heading":"Resource and billing model","paragraphs":[{"id":"compute","content":[{"text":"Workers separates request usage and CPU time from wall-clock duration. The Free plan lists 100,000 requests per day and a 10-millisecond CPU allowance per invocation. The runtime's 128 MB memory limit is per isolate, which can handle multiple requests, rather than an independent allocation for each incoming request."}],"citations":["wpricing","wlimits"]},{"id":"assetbilling","content":[{"text":"Direct static-asset requests are ordinarily free, while requests that invoke the Worker use its billing model. The pricing guide separately qualifies traffic served through Workers Caching as billable requests, including applicable static-asset traffic. On the Free plan, Worker-first routes that exceed request quota return an error instead of automatically falling back to the static asset."}],"citations":["wpricing","wassetbilling"]},{"id":"files","content":[{"text":"Static-asset limits include 20,000 files per Worker version on Free and 100,000 on paid plans, with a 25 MiB individual-file limit. A higher request allowance or paid compute plan should not be treated as removing all packaging and runtime constraints."}],"citations":["wlimits"]}]},{"id":"migration","heading":"Substitution considerations","paragraphs":[{"id":"pages-link","content":[{"text":"Workers is Cloudflare's recommended replacement direction for new workloads that might previously have used "},{"text":"Cloudflare Pages","targetSlug":"cloudflare-pages"},{"text":". Existing migrations still need attention to functions, routing and domains. The guide notes that Workers custom domains require Cloudflare-managed nameservers, unlike the broader domain setup possible with Pages."}],"citations":["cfpages","cpmigrate"]},{"id":"vercel-link","content":[{"text":"It also overlaps "},{"text":"Vercel","targetSlug":"vercel"},{"text":" for frontend hosting and request-driven application code. Runtime APIs, framework integration, limits and billing differ, so this is a task-level alternative rather than an assertion that every deployment can move unchanged."}],"citations":["workers","wassets","wnode","vercel","vlimits"]}]}]},"id":"Q1289","revision":1337,"updatedAt":"2026-10-14T02:19:57Z","sourceUrl":"https://substitutefor.net/entities/Q1289?revision=1337"}}