Skip to main content
Deno is a modern, secure JavaScript/TypeScript runtime built on V8. Zerops provides a powerful hosting environment for Deno applications with automatic scaling, built-in CI/CD, and seamless database connectivity.

Why Choose Deno on Zerops

Zerops makes deploying Deno applications effortless:
  • Native TypeScript - Run TypeScript without compilation
  • Automatic Scaling - Horizontal and vertical auto-scaling
  • Secure by Default - Explicit permissions for file, network, and env access
  • Built-in CI/CD - Automatic builds from Git
  • Database Integration - Easy connections to PostgreSQL, MySQL, and more

Supported Deno Versions

Zerops supports:
  • deno@1
  • deno@latest

Quick Start

Deploy a Deno application in minutes:
1

Create a project

Log in to the Zerops GUI and create a new project.
2

Import the recipe

Use our ready-made recipe:
project:
  name: my-deno-app

services:
  - hostname: api
    type: deno@1
    buildFromGit: https://github.com/zeropsio/recipe-deno
    enableSubdomainAccess: true

  - hostname: db
    type: postgresql@16
    mode: NON_HA
    priority: 1
3

Access your app

Once deployed, access via the generated subdomain.

Key Features

Quick Setup

Get started in minutes with our quickstart guide.

Build Pipeline

Configure your build process with zerops.yaml.

Example Deno Application

Here’s a simple Deno server:
server.ts
import { serve } from "https://deno.land/std@0.208.0/http/server.ts";
import { Client } from "https://deno.land/x/postgres@v0.17.0/mod.ts";

const client = new Client({
  hostname: "db",
  port: 5432,
  user: "db",
  password: Deno.env.get("DB_PASSWORD"),
  database: "db",
});

await client.connect();

const handler = async (req: Request): Promise<Response> => {
  const result = await client.queryObject(
    "SELECT COUNT(*) as count FROM requests"
  );
  
  return new Response(
    JSON.stringify({ count: result.rows[0].count }),
    { headers: { "content-type": "application/json" } }
  );
};

serve(handler, { port: 8000 });
With zerops.yaml:
zerops:
  - setup: api
    build:
      base: deno@1
      buildCommands:
        - deno cache server.ts
      deployFiles:
        - server.ts
    
    run:
      base: deno@1
      ports:
        - port: 8000
      start: deno run --allow-net --allow-env server.ts

Need Help?

Join our Discord community for support.

Build docs developers (and LLMs) love