Nano-web, a low latency one binary webserver designed for serving SPAs

nano-web is an ultra-minimal low-latency webserver using fasthttp. It pre-caches, compresses, and templates resources into memory for reduced latency. It supports Brotli and gzip compression, designed for Docker or nanovm unikernel use. It has runtime templating for environment variables, supporting configurable prefixes. The SPA mode serves 404s as indexes to enable client-side routing. It includes a Docker quick start and Nanos/OPS quick start guides. Notably, it allows for runtime configuration of SPAs using environment variables for dynamic API URLs and client IDs, without storing secrets. Unique feature includes injecting environment variables into the client-side environment at runtime for dynamic scaling environments like Kubernetes.

https://github.com/radiosilence/nano-web

To top