Ship code to the network, not to a server.
Serverless functions that run on Cloudflare's global network, scale automatically from zero, and connect to data, storage and AI through bindings.
Serverless functions that run on Cloudflare's global network, scale automatically from zero, and connect to data, storage and AI through bindings.
The loop stays familiar: write, test locally, ship, and control the rollout. Deploy from the CLI or by merging in Git.
Pick a starter in JavaScript, TypeScript, Python or Rust.
Run the full app on your machine with workerd, the open-source runtime.
Push from the terminal, or connect a repository and deploy on merge.
Ship everywhere at once or to a percentage of users; roll back if errors spike.
Code runs across Cloudflare's cities by default. No regions to configure.
Lightweight V8 isolates scale up and down quickly, without process overhead.
Concurrency follows demand; no pre-provisioning or prewarming.
export default { async fetch(request, env) { const stmt = env.DB.prepare( 'SELECT * FROM comments LIMIT 3'); const { results } = await stmt.all(); return new Response(renderHtml(results), { headers: { 'content-type': 'text/html' }, }); }, } satisfies ExportedHandler<Env>;
Query D1 from a Worker. The database arrives as a binding on env; no connection string in code. Adapted from the product page.
Also: Browser Rendering, Images and more through the same binding model.
Automatic scaling and global deployment, without load balancers or regional config.
React, Vue or Next.js with backend logic, databases and storage alongside.
Auth, rate limiting, routing and caching near users, offloading your origin.
Webhooks, data processing and scheduled tasks with Queues, Workflows and Cron Triggers.
Move a single API endpoint or edge rule onto a Worker, test it locally, then roll it out to a share of traffic.