Serverless Workers are serverless functions that run JavaScript code in the cloud. They use a router-based system to handle HTTP requests and can integrate with Puter's cloud services like file storage, key-value databases, and AI APIs. Workers are perfect for building REST APIs, webhooks, data processing pipelines, and backend services.
The Workers API allows you to create, manage, and execute workers.
puter.workers.create()
- Create a new workerputer.workers.delete()
- Delete a workerputer.workers.list()
- List all workersputer.workers.get()
- Get information about a specific workerputer.workers.exec()
- Execute a workerrouter
- The router object for handling HTTP requests