Deno Subhosting is a robust platform designed to allow Software as a Service (SaaS) providers to securely run code written by their customers. The Subhosting API allows you to deploy untrusted code programmatically and at scale.
fetch and web cache.KV (Key-Value stores) which extend beyond typical browser capabilities.Deno provides two distinct cloud offerings, Deno Deploy and Deno Subhosting, each designed to support specific use cases while leveraging the same underlying infrastructure.
Deno Deploy is optimized for individual developers and small teams focused on developing and iterating on a limited set of first-party projects. This solution is ideal for hosting websites or applications, with deployment processes typically managed through GitHub integrations.
In contrast, Deno Subhosting is engineered to securely manage a larger volume of projects and deployments. It supports the deployment of untrusted code or functions through an API, making it suitable for scenarios involving multiple end-users contributing code.
The steps to implement subhosting are roughly as follows:
Using these techniques, you can package up user code as "deployments", and execute that code on a Deno-provisioned URL or a custom URL you can configure yourself.
For a complete reference for the REST API used to implement subhosting, you can check out the docs here. The Deno Deploy REST API also provides an OpenAPI specification which can be used with a number of OpenAPI-compatible tools.
We also offer SDKs in JavaScript, Python, and Go.
© 2018–2025 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/subhosting/manual