---
title: "Build Your Own Cloud IDE with the Subhosting API"
description: "A cloud IDE can be built on the Deno Subhosting API, which programmatically deploys user code to Deno Deploy's global V8 isolate cloud within seconds."
url: "https://swe.quest/articles/build-your-own-cloud-ide-with-the-subhosting-api-182e8468c60d1771"
canonical: "https://deno.com/blog/build-cloud-ide-subhosting"
source: "Deno"
published: "2024-01-16"
difficulty: "medium"
kind: "How-to"
reading_minutes: 10
tags: ["serverless","typescript","developer-tools","api-design"]
---

# Build Your Own Cloud IDE with the Subhosting API

A post on [Deno](https://swe.quest/sources/deno.md), published 2024-01-16, 10 min read, How-to. Original: [https://deno.com/blog/build-cloud-ide-subhosting](https://deno.com/blog/build-cloud-ide-subhosting)

## Summary

A cloud IDE can be built on the Deno Subhosting API, which programmatically deploys user code to Deno Deploy's global V8 isolate cloud within seconds. The walkthrough builds a Hono server with routes to list and create projects and deployments, plus a small TypeScript client that wraps the Subhosting REST endpoints with bearer-token auth. It also covers a server-rendered JSX page and an Ace Editor frontend that polls deployment status every five seconds. The deployment payload is explained in detail: entryPointUrl must map to a key in an assets map of files, and envVars inject credentials into the deployed code.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)

## Prerequisites

- TypeScript basics ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))
- HTTP REST APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))
- Deno runtime

## Keywords

Deno Subhosting, Deno Deploy, Hono, Ace Editor, V8 isolates

## Related posts

- [Manage your Deno Deploy and Deno Subhosting projects with Terraform](https://swe.quest/articles/manage-your-deno-deploy-and-deno-subhosting-projects-with-terraform-699764d70221ef58.md): Deno · 2023-12-05 · Medium · 6 min read · Infrastructure as code, Serverless, Deployment, TypeScript
  Deno now ships an official Terraform provider (denoland/deno) for managing Deno Deploy and Deno Subhosting projects, custom domains and deployments as infrastructure-as-code.
- [Build and Ship Astro Sites with Deno and Deno Deploy](https://swe.quest/articles/build-and-ship-astro-sites-with-deno-and-deno-deploy-3be8936cebaf2b24.md): Deno · 2023-07-21 · Medium · 12 min read · Frontend, Serverless, Deployment, TypeScript
  Astro sites can be built with the Deno runtime and hosted on Deno Deploy in two modes.
- [How to add Monaco to a Next.js app and securely run untrusted user code](https://swe.quest/articles/how-to-add-monaco-to-a-next-js-app-and-securely-run-untrusted-user-code-1a2e3adbb0c82f79.md): Deno · 2024-02-29 · Medium · 9 min read · React, Sandboxing & isolation, Serverless, Frontend, JavaScript
  A Next.js 14 app can host a browser IDE by embedding the Monaco editor via @monaco-editor/react, then sending the editor contents to server-side API routes that call the Deno Deploy Subhosting API.
- [Static Files on Deno Deploy](https://swe.quest/articles/static-files-on-deno-deploy-c3e4ce7a78a60f71.md): Deno · 2022-02-10 · Medium · 6 min read · Serverless, CDN & edge, Deployment, JavaScript, CI/CD
  Deno Deploy now stores static files alongside deployed code and distributes them to edge locations, where edge code reads them via Deno file system APIs (readFile, readDir, open, stat, etc.) or fetch.
- [Supabase Edge Runtime: Self-hosted Deno Functions](https://swe.quest/articles/supabase-edge-runtime-self-hosted-deno-functions-55b12d1d5db96506.md): Supabase · 2023-04-11 · Medium · 7 min read · Serverless, Runtimes & VMs, JavaScript, Rust, Open source
  Supabase Edge Runtime is an MIT-licensed, Rust-based web server built on deno\_core that self-hosts Deno Edge Functions (TypeScript, JavaScript, WASM) without code changes.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
