Workers for Platforms

Make your platform programmable

Workers for Platforms provides a managed execution environment where customers deploy and run code on Cloudflare’s global network. This enables customization at scale, empowering customers to build logic, automation, and applications.
Effortless Scalability

No dedicated infrastructure or teams are needed for customer code execution. Workers for Platforms scales automatically on demand.

Customer Empowerment

Customers can customize experiences, trigger event-based actions, or extend your platform without needing your engineers to write code.

Secure Code Execution

Customer code runs in an isolated environment with built-in controls, eliminating security and compliance risks.

Workers for Platforms Architecture

A managed environment for custom code on Cloudflare's global network

Faster
Slower
Background Pattern

You can use Workers for Platforms to:

See real-world examples of Cloudflare Workers for Platforms

Start with Workers for Platforms

Full-Stack Applications

Extend static sites into full-stack applications with databases, KV-namespaces, and object storage, all within a managed execution environment.

Personalized Experiences

Enable customers to tailor sites with custom logic, leveraging Cloudflare’s global network for deployment and execution.

Custom Integrations

Extend platform capabilities with custom integrations that scale on demand, without the need for extensive infrastructure.

Event-Driven Automation

Empower customers to automate tasks based on events, within a secure, isolated environment for code execution.

Workers for Platforms Code Examples

Discover how to customize, empower customers, and build applications with Workers for Platforms.

Background Pattern
export default {
  async fetch(request, env, ctx): Promise<Response> {

    await env.KV.put('KEY', 'VALUE');
    const value = await env.KV.get('KEY');
    const allKeys = await env.KV.list();
    await env.KV.delete('KEY');

    return new Response(
      JSON.stringify({
        value: value,
        allKeys: allKeys,
      }),
    );
  },
};
npm

"

Over 10 million developers around the world rely on the npm Registry to download packages over 1 billion times a day. We invested in Cloudflare Workers to improve our global performance, and now with the Cloudflare Workers globally available key-value store (Cloudflare Workers KV), we can make performance improvements that used to be impossible. "

Laurie Voss
Laurie Voss Co-founder and Chief Data Officer

Costruisci senza limiti

Unisciti a migliaia di sviluppatori che hanno eliminato la complessità dell'infrastruttura e hanno distribuito globalmente con Cloudflare. Inizia a costruire gratuitamente — non è richiesta una carta di credito.