#web-server #static #web #cli #server

app localserve

A simple static folder web server with start/stop support

2 unstable releases

Uses new Rust 2024

0.2.0 Aug 21, 2025
0.1.0 Jul 15, 2025

#1162 in HTTP server

MIT license

13KB
87 lines

localserve

A simple CLI tool to serve a static folder as a website on localhost:{port} — with support for daemon mode (start/stop style control).

Features

  • Serve any folder as a static website
  • Launch as a background daemon
  • Stop the server via command
  • Cross-platform support (Unix + Windows)

Installation

To install from source:

cargo install --git https://github.com/TeenCoder159/localserve

Or build from source:

git clone https://github.com/TeenCoder159/localserve
cd localserve
cargo build --release

Usage:

localserve start webproject 3000

Serves the directory webproject at localhost:3000

localserve stop 

Stops the server

Contributing:

All pull requests are welcome!

License:

See license for more info

Dependencies

~11–25MB
~313K SLoC