Skip to content

What is spa-server?

spa-server is to provide a static web http server with cache and hot reload. It supports multiple config for different domain, and has a client tool(npm package, command line) to help upload static web files to server.

Need Feedback

sap-server features have been done, we are willing to get your feedback, fell free to open issues.

Motivation

In my company, every single page application needs a nginx docker image, as time long, there containers takes lots of resources of memory and storage, and these nginx don't have proper config.

So I tried to develop a static web server to solve above problem, and create a client tool spa-client to help users to release SPA.

Feature

  • Built with Hyper and Warp, fast and small!
  • SSL with Rustls.
  • Memory cache, client cache and compression(gzip).
  • Static web version control, you can regress or release new version easily.
  • Hot reload support(Mac and Linux, by reused port).
  • CORS support.
  • Http auto redirect to https.
  • Docker support(compressed size: 32M).
  • Provide command line/npm package to deploy spa.
  • Multiple configs for different domain and Multiple SPA in on domain.