Deno logoDeno

API Reference

Deno Deploy Runtime helps you write web servers in TypeScript/JavaScript using the Web APIs. It's different from Deno but aims to have similar APIs where applicable.

The following Web and Deno APIs are supported on Deno Deploy Runtime.

Web APIs

Deno APIs

Note: only stable APIs of Deno are made available in Deploy.

  • Deno.env - Interact with environment variables (secrets).
    • get(key: string): string | undefined - get the value of an environment variable.
    • toObject(): { [key: string]: string } - get all environment variables as an object.
  • Deno.connect - Connect to TCP sockets.
  • Deno.connectTls - Connect to TCP sockets using TLS.
  • Deno.startTls - Start TLS handshake from an existing TCP connection.
  • Deno.resolveDns - Make DNS queries
  • File system API

Future support

In the future, these APIs will also be added:

  • Cache API
  • UDP API:
    • Deno.connectDatagram for outbound UDP sockets
  • Customizable fetch options using Deno.createHttpClient

Limitations

Just like the Deno CLI, we do not implement the __proto__ object field as specified in ECMA Script Annex B.