Platform Support
megane ships in five distributions. They share the same Rust parser core (compiled to WASM and PyO3), but the host UI and the set of registered file types differ. This page is the single reference for what works on which platform, and it is descriptive of the current state — including known gaps.
Platforms
| Platform | Entry | What it is |
|---|---|---|
| Standalone web app | src/index.tsx, served by megane serve | Full-featured viewer with pipeline editor, drag-and-drop, file dialogs, and WebSocket trajectory streaming. |
| Jupyter widget (anywidget) | src/widget.ts + python/megane/widget.py | Embedded viewer in a notebook cell, driven by Python (MolecularViewer). |
| JupyterLab labextension | jupyterlab-megane/src/index.ts | Document-style viewer launched from the JupyterLab file browser. |
| VSCode extension | vscode-megane/webview/main.tsx | Custom editor activated when a registered file type is opened in VS Code. |
| Python package (PyO3) | python/megane/parsers/ | Programmatic API for parsing files into Python objects. No viewer. |
File-format support
Legend:
- ✓ — openable directly from the platform's native UI (file browser, drag-drop, customEditor,
LoadStructure/LoadTrajectorynode, etc.) - API — parser exists and is reachable programmatically, but the platform does not expose a UI opener for this format
- — — not supported
Structure formats
| Format | Extensions | Standalone | Jupyter widget | JupyterLab | VSCode | Python |
|---|---|---|---|---|---|---|
| PDB | .pdb | ✓ | API | ✓ | ✓ | ✓ |
| GRO | .gro | ✓ | API | ✓ | ✓ | ✓ |
| XYZ | .xyz | ✓ | API | ✓ | ✓ | ✓ |
| MOL | .mol | ✓ | API | ✓ | ✓ | ✓ |
| SDF | .sdf | ✓ | API | ✓ | ✓ | ✓ |
| MOL2 | .mol2 |