Skip to main content
Deno 2 is finally here 🎉️
Learn more

Downtime

A CLI tool to mesure the downtime of multiples websites in realtime.

Any response status code is considered as a uptime. If the request fails, it’s considered as a downtime.

Published on deno.land/x/downtime and JSR @garn/downtime

Prerequisites

To install the CLI tool, you need to have Deno installed in your machine.

Usage

Install and run

Install the CLI tool globally.

deno install --allow-read --allow-net --allow-env -fn downtime jsr:@garn/downtime

or using deno.land/x

deno install --allow-read --allow-net --allow-env -fn downtime https://deno.land/x/downtime/cli.ts

Run:

downtime https://garn.dev http://faker.deno.dev --sleep 2000 --timeout 3000

Run remotely

deno run -A jsr:@garn/downtime https://garn.dev

Options

  • --sleep: in milliseconds. Sleep between each request (default: 1000)
  • --timeout: in milliseconds. Timeout for each request (default: 5000)
  • --maxTime: in seconds. How long the tool should run. 0 to be always running (default: 0)
  • --help: display help

Example

downtime https://garn.dev https://faker.deno.dev https://faker.deno.dev?status=400 https://faker.deno.dev?status=500 --sleep 2000 --timeout 3000

https://deno.land/x/downtime