Binserve

screenshot of Binserve

A fast production-ready static web server with TLS (HTTPS), routing, hot reloading, caching, templating, and security in a single-binary you can set up with zero code.

Overview

Binserve is a fast static web server that offers TLS (HTTPS), Routing, Hot Reloading, Caching, Templating, and Security in a single-binary package. It is designed for self-hosting purposes and focuses on performance, ease of use, and portability. Binserve is built on Actix-Web, one of the fastest web frameworks, and DashMap for efficient handling of routes and cache storage.

Features

  • Fast: Binserve is designed for performance, utilizing Actix-Web and DashMap for fast routing and cache storage.
  • Portability: Binserve is cross-platform and can be run on any major operating system, including Android.
  • Routing: Routing is achieved by matching a URI path to a file or directory in a JSON file.
  • Templating: Binserve supports writing templates and partials using Handlebars.
  • Hot Reload: Configuration (routes) and static files can be reloaded without any downtime.
  • Caching: Binserve achieves high performance by minimizing disk I/O operations at runtime and serving static files from memory. Cache-Control, Etag, and Last-Modified headers are utilized on the client-side.
  • Security: Binserve prevents common attack vectors such as Directory Traversal and Symlink Attacks.

Summary

Binserve is a powerful static web server that offers multiple features such as routing, templating, hot reloading, caching, and security. It is designed to be fast and portable, supporting cross-platform operations. Binserve can be easily installed and configured, making it an excellent choice for self-hosters looking for a high-performance web server solution.