A fast static web server with TLS (HTTPS), routing, hot reloading, caching, templating, and security in a single binary you can set up with zero code. Binserve is designed to be performant, this is thanks to Actix-Web - one of the fastest web frameworks out there and DashMap for handling routes and cache storage. Binserve is cross-platform and portable to any major operating system, like it can run on your Android phone! Routing is simply matching a URI path to a file or a directory in a JSON file. You can reload your configuration (routes) and static files with no downtime. Binserve's performance is achieved due to minimization of Disk I/O operations at runtime (with fast_mem_cache enabled) and serving static files from memory. On the client-side, Cache-Control, Etag, and Last-Modified are utilized. Prevents common attack vectors like Directory Traversal and Symlink Attacks.
Features
- Binserve is designed to be performant
- Binserve is cross-platform and portable to any major operating system
- Routing is simply matching a URI path to a file or a directory in a JSON file
- You can write templates and partials using Handlebars
- You can reload your configuration (routes) and static files with no downtime
- Binserve's performance is achieved due to minimization of Disk I/O operations at runtime