Go Live

screenshot of Go Live

go-live is an ultra-light server utility that serves files, HTML or anything else, over HTTP.

Overview

Go Live is a fast and portable Go command line utility that serves a file directory over HTTP. It can be used for local web development, production static-site serving, or as a network file host. By default, Go Live serves the directory it is executed in. It is based on JavaScript's famous live-server utility and supports Linux, Windows, and Mac, as well as ARM.

Features

  • Local development of an HTML/JS project: Go Live can serve any frontend code, making it ideal for local development of web projects.
  • Production static site hosting: It can be used as an alternative to GitHub Pages to self-host a production static site.
  • Network file hosting: Go Live can serve as a lightweight network file host, allowing files to be shared over a LAN or the Internet.
  • Support for ARM and embedded systems: It can be run on ARM-based systems or Kubernetes clusters for sharing files and hosting static websites on a network.
  • Small binary size: The full binary of Go Live is less than 5MB in size.

macOS (with Brew)

brew tap antsankov/go-live && brew install go-live

macOS (without Brew)

curl -LJO https://github.com/antsankov/go-live/releases/download/v1.0.0/go-live-mac.zip && unzip go-live-mac.zip && mv go-live-mac-x64 /usr/local/bin/go-live && chmod +x /usr/local/bin/go-live && go-live

Linux (using Snapcraft)

snap install go-live

Linux 32-Bit

wget https://github.com/antsankov/go-live/releases/download/v1.0.0/go-live-linux-x32 -O /usr/bin/go-live && chmod +x /usr/bin/go-live

Linux 64-Bit

wget https://github.com/antsankov/go-live/releases/download/v1.0.0/go-live-linux-x64 -O /usr/bin/go-live && chmod +x /usr/bin/go-live

Docker

docker pull antsankov/go-live

Windows

Download the binary here and execute. Note that Chocolatey support is coming soon.

Summary

Go Live is a versatile and lightweight Go command line utility that allows developers to easily serve file directories over HTTP. With features such as support for various operating systems, small binary size, and the ability to serve frontend code and static sites, it is a useful tool for local development, production static site hosting, and network file sharing. The installation process is straightforward, and Go Live can be easily integrated into existing workflows.