Globally Distributed JavaScript

Instant deployments
Located in 28 regions worldwide
Zero config, zero maintenance
TypeScript, WASM, ES Modules
Sign up

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

import { serve } from "https://deno.land/std@0.114.0/http/server.ts";

function handler(req: Request): Response {
  return new Response("Hello world");
}

console.log("Listening on http://localhost:8000");
await serve(handler);
import { serve } from "https://deno.land/std@0.114.0/http/server.ts";
import { h, ssr, tw } from "https://crux.land/nanossr@0.0.1";

const Hello = (props) => (
  <div class={tw`bg-white flex h-screen`}>
    <h1 class={tw`text-5xl text-gray-600 m-auto mt-20`}>
      Hello {props.name}!
    </h1>
  </div>
);

console.log("Listening on http://localhost:8000");
await serve((req) => {
  const url = new URL(req.url);
  const name = url.searchParams.get("name") ?? "world";
  return ssr(() => <Hello name={name} />);
});
import { serve } from "https://deno.land/std@0.114.0/http/server.ts";
const messages = [];
const channel = new BroadcastChannel("chat");
channel.onmessage = (event) => {
  messages.push(event.data);
};
function handler(req: Request): Response {
  const { searchParams } = new URL(req.url);
  const msg = searchParams.get("msg");
  if (msg) channel.postMessage(msg);
  return new Response(JSON.stringify(messages), {
    headers: { "content-type": "application/json" }
  });
}
console.log("Listening on http://localhost:8000");
await serve(handler);

Deno Deploy is a distributed system that runs JavaScript, TypeScript, and WebAssembly at the edge, worldwide.

The service deeply integrates the V8 JavaScript runtime with a high performance asynchronous web server to provide optimal performance without unnecessary intermediate abstractions.

Why Deno Deploy?

Develop Locally, Deploy Globally

Deno Deploy is built on the same underlying infrastructure as the Deno CLI, allowing you to develop locally without internet access.

No Vendor Lock In

The service deeply integrates the V8 JavaScript runtime with a high performance asynchronous web server to provide optimal performance without unnecessary intermediate abstractions.

Built For Performance

Deno is built on the fastest server technologies available: Rust, V8, Hyper, and Tokio. Never miss a beat.

At a glance

HTTP/2 Support
fetch()
WebSockets
Out of the box TypeScript and JSX
WebAssembly
ES modules with HTTP imports
Playground Editor
Deploy via GitHub