Serverless Workers
Run serverless functions in the cloud without needing to manage a server.
Start Building Your Worker Quick Start GuideSimple 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
Responseobjects
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
2 Deploy Your Worker
Right-click and deploy your worker. No config files needed.
✓ Your Worker is Live!
Your worker gets a URL in seconds and is ready to handle requests from anywhere.
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});
});
Frequently Asked Questions
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.
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.
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.
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