Rattice

crates.io crates.io

A media viewer for web browsers with lattice pattern written in Rust.
Images and videos are supported.

screencap

Above capture is Rattice running with MIT-67 Indoor Scene Recognition Dataset images for example.

Installation

sh cargo install rattice

or download prebuilt binary from Releases.

Usage

Quick start

  1. Run rattice in arbitrary directory.
  2. Access http://localhost:3000/

More options

```shellsession $ rattice --help Rattice 0.0.1

USAGE: rattice [FLAGS] [OPTIONS] [PORT]

FLAGS: -e, --eager Disable lazy image loading [env: RATTICE_EAGER] -v, --verbose Increase log level (-v, -vv, -vvv, -vvvv) -h, --help Prints help information -V, --version Prints version information

OPTIONS: -b, --bind-address

Bind address [env: RATTICEBINDADDR=] [default: ::] -d, --docroot Specify document root directory [env: RATTICEDOCROOT=] -u, --username Username for Basic Authentication [env: RATTICEUSER] -p, --password Password for Basic Authentication [env: RATTICEPASS] -r, --random-credencial Generate random username and/or password with given length -s, --server-cert Server certificate file for HTTPS [env: RATTICESERVERCERT=] -k, --server-key Server key file for HTTPS [env: RATTICESERVER_KEY=]

ARGS: Listen port [env: RATTICE_PORT=] [default: 3000] ```