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

It's a liver


Denoliver is a small, simple, no config static file server with live reloading written in TypeScript for Deno intended for prototyping and quick projects.

This project can not be run on Node.js

Prerequisites

To run this you need to have Deno 1.0 or later installed.

Read about Deno and get it here: Deno

Key Features

  • Dependency free! No third party dependencies. Only Deno Std Lib
  • Live reload of modified files.
  • Supports client side routing

Getting started

Install Denoliver as an executable

Install as a Deno executable

$ deno install --allow-net --allow-read https://deno.land/x/denoliver/mod.ts

or if you’re not happy with the name:

$ deno install -n whateverNameYouWant --allow-net --allow-read https://deno.land/x/denoliver/mod.ts

Running

From your project root / directory you want to serve

$ denoliver

/* or */

$ denoliver ./path/to/project

// Serving on localhost:8080

Options

Denoliver comes with a couple of options to customize your experience.

-n       # Disable live reload - Defaults to true
-s       # Disable all logging - Defaults to false
-p       # Specify desired port - Defaults to 8080
-d       # Debug for more verbose logging - Defaults to false

Disclaimer

This project is not intended for production use. It started out as a way for me personally to learn Deno, and is merely a tool to quickly get a file server up and running.

Acknowledgements

This project was heavily inspired by lukejacksonns fantastic Servor