Single-binary file preview server
Find a file
2026-03-09 14:07:21 +03:00
src added README.md 2026-03-09 13:56:05 +03:00
.gitignore barebone server 2025-03-07 20:57:28 +03:00
Cargo.lock cleanup 2026-03-09 11:26:38 +03:00
Cargo.toml cleanup 2026-03-09 11:26:38 +03:00
README.md added screenshot to the readme 2026-03-09 14:07:21 +03:00
screenshot.png added screenshot to the readme 2026-03-09 14:07:21 +03:00

Mollie

Single-binary file preview server.

Screenshot of the app serving src/ directory from this repository

It was created as a solution to the problem: display a PDF file, generated by typst watch, in real time as it changes on the disk. Now it's capable of displaying arbitrary files or directories on a web page in real time.

Usage

The server listens on http://<addr>:<port>/. When serving a regular file, this file is located at the root URL. When serving a directory, its contents are located at the root URL with each entry at the corresponding path after the root URL.

--help

Single binary file preview server

Usage: mollie [OPTIONS]

Options:
  -a, --addr <addr>  IPv4 or IPv6 address [default: 127.0.0.1]
  -p, --port <port>  TCP port [default: 0]
  -f, --file <file>  Path to the document(s) [default: ./]
  -h, --help         Print help
  -V, --version      Print version

Changelog

Releases follow Semantic Versioning 2.0.0 standard.

0.1.0

Basic functionality to serve a regular file or a directory.