Thanks to visit codestin.com
Credit goes to lib.rs

#web-server #cli #static #web

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

#1209 in HTTP server

Codestin Search App Codestin Search App Codestin Search App

84 downloads per month

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

~16–31MB
~361K SLoC