molvis-0.9.0 is not a library.
molvis
A minimal web viewer for molecular trajectory/output text.
- Rust backend reads and parses output text into
energy + coordinatesJSON - JavaScript frontend uses
3Dmol.jsto render molecular structures and switch frames with a slider
Current parser support: ORCA .out only.
Future formats (for example Gaussian / XYZ batches) can be added later.
Install
From crates.io (published package):
From local source (not published yet):
Installed binary run
Server config (TOML)
molvis can read host/port defaults from config files:
~/.config/molvis/config.toml/etc/molvis/config.toml
Supported keys:
= "127.0.0.1"
= 3000
Priority is:
- CLI flags (
-H,-p) - highest - User config (
~/.config/molvis/config.toml) - System config (
/etc/molvis/config.toml) - Built-in defaults (
127.0.0.1:3000)
Initialize user config template:
Develop (run from source)
Open http://127.0.0.1:3000
Frontend JS loading
The frontend loads two browser libraries:
3Dmol-min.jsfor 3D molecular renderingplotly.min.jsfor interactive energy trend chart
Default behavior: local first, CDN fallback.
- If
web/3Dmol-min.js/web/plotly.min.jsexist, local files are used. - If local files are absent, it automatically falls back to CDN.
Optional offline mode: place these files under web/ and they will be used first:
web/3Dmol-min.jsweb/plotly.min.js
You can fetch them with:
Use --force to re-download:
Note for intranet / no-internet environments
- If external CDN access is blocked, 3D viewer or trend chart may fail to load.
- In that case, provide local files under
web/(recommended), or allowlist the CDN domains in your network policy. - If only one library fails to load, the other feature can still work (for example, 3D works but chart fails, or vice versa).