Serverless Compute
Serverless Compute runs web apps, APIs, agents, and backend workers without managing servers. Deploy code with a start command, choose a region when needed, and let StackMachine handle app versions, runtime logs, and request traffic.
Features
App processes
Deploy any HTTP service that listens on the provided PORT. StackMachine treats each deployment as an app version that can be observed and replaced.
Regional placement
Pass region when you want a workload close to users, databases, or third-party APIs.
Environment variables
Attach plain or sensitive environment variables at deploy time. Sensitive values are hidden in the dashboard after creation.
Logs and versions
Use app versions and logs to inspect runtime behavior after deploys. The same app identity can receive new versions over time.
Common workflow
- Package an HTTP service with a start command.
- Deploy it with
client.deployments.createand wait for the version. - Use the app URL for traffic and the app version ID for log queries.
SDK examples
Deploy an API worker
Deploy a Hono-based API with a health check and task endpoint.
Related docs
Source: stackmachine/sdks JavaScript examples.