Serverless Workers

Run serverless functions in the cloud without needing to manage a server.

Start Building Your Worker Quick Start Guide

Simple Router API

Define API endpoints with familiar syntax that you already know.

  • Support for all HTTP methods
  • Dynamic route and URL parameters handling
  • Return JSON, text, or custom Response objects

No Server Management

Focus on code, not infrastructure. We handle scaling, deployment, and everything else.

Instant Deployment

Your worker goes live in seconds. No build steps, no config files, and no long wait times.

Integrate with Puter.js

Access AI, cloud storage, and key-value databases with Puter.js directly in your worker code.

Resources Control

Use your own storage for shared data, or leverage user resources via the User-Pays model.

How It Works

1 Write Your Code

Create a worker.js file in Puter and define your routes using the router API.

Write your worker code

2 Deploy Your Worker

Right-click and deploy your worker. No config files needed.

Deploy your worker

Your Worker is Live!

Your worker gets a URL in seconds and is ready to handle requests from anywhere.

Your worker is live

From Code to Production in Seconds

Write your routes, deploy your worker, and you're live.
The router API automatically handles endpoints, URL parameters, and response formats so you can focus on building.

router.get('/', ({request}) => {
    return 'Hello World'; // returns a string
});

router.get('/api/hello', ({request}) => {
    return {'msg': 'hello'}; // returns a JSON object
});

router.get('/*page', ({request, params}) => {
    return new Response(`Page ${params.page} not found`, {status: 404});
});

Find more examples →

Frequently Asked Questions

What are Serverless Workers?

Serverless Workers are functions that run in the cloud without you needing to manage a server. They let you write server-side code to create APIs, backend endpoints, and other dynamic functionality. You focus on writing code, and we handle all the infrastructure, scaling, and deployment.

What is Puter?

Puter is a cloud operating system that runs in your browser where you can manage files, run apps, host websites, deploy serverless workers, and more. Everything you need to build and deploy web applications, all in one place.

How do I deploy a Serverless Worker?

Create a standard worker.js file inside Puter, add your worker code using our simple routing API, then deploy it with a single click. Your worker is live and ready to handle requests in seconds. Check out our step-by-step tutorial or the documentation for examples and guides.

What can I build with Serverless Workers?

You can build APIs, backend services, webhooks, form handlers, authentication endpoints, data processing pipelines, and much more. Anything that requires server-side logic can be built with Serverless Workers. Combine them with Puter.js to add AI, databases, and cloud storage to your applications.

Start Building with Workers

Everything you need to deploy backend code—routing, storage, AI, and more. All in one place.

Read the Docs

Follow Step-by-Step Tutorial