A very tiny frontend server built with Rust and the vetis framework.
front is a lightweight static file server that serves files from a specified root directory. It provides a simple HTTP/1 server for development and testing purposes.
- Serve static files from a configurable root directory
- Configurable interface and port binding
- Support for common web file extensions (html, js, css, svg, png, ico, jsx, ts, tsx, json, mjs)
- Automatic index file serving (index.html)
- HTTP/1 protocol support
- Built with vetis framework for efficient HTTP handling
Install front:
cargo install frontRun the server with default settings:
frontThis will serve the current directory on port 4444.
-i, --interface <INTERFACE>- Interface to bind to (default: 0.0.0.0)-p, --port <PORT>- Port to bind to (default: 4444)-r, --root <ROOT>- Root directory to serve (default: .)-h, --help- Print help information-V, --version- Print version information
Serve a specific directory:
front -r /path/to/your/filesBind to a specific interface and port:
front -i 127.0.0.1 -p 8080Combine options:
front -r ./public -i 0.0.0.0 -p 3000This project is licensed under the same license as the vetis workspace.
Contributions are welcome. Please feel free to submit a Pull Request.