Overview
NGL (WebGL viewer for molecular structures) is a JavaScript library for displaying and analyzing molecular structures in the browser. The repository is maintained under the nglviewer organization, the package is published on npm as ngl, and a project site with examples is hosted at nglviewer.org.
The LICENSE file is the MIT license (Copyright (c) 2014-2017, Alexander S Rose). NGL renders with WebGL, so no browser plugins are required, and it can load structures from URLs or local files for embedding in custom frontends.
NGL is a separate viewer library from Mol*. Mol* was initiated jointly by PDBe and RCSB PDB to combine strengths of LiteMol and NGL. Data displayed through NGL remains subject to the terms of its source.
Key Features
- WebGL-based molecular visualization that runs in modern browsers without plugins.
- npm package (ngl) for embedding structure views into custom web applications.
- Project site with examples at nglviewer.org.
Use Cases
- Add lightweight interactive molecule views to web tools, notebooks and documentation pages.
- Display structures fetched from public or internal services inside a custom frontend.
How to Use
Add the ngl npm package to a web application and follow the examples on the project site for stage setup and representations. The MIT license covers the library; data displayed through it keeps its own terms. See: https://github.com/nglviewer/ngl
Sources and verification
This entry describes capabilities documented by the linked project sources. Catalog edits are not evidence of a successful run, compatibility test or scientific performance evaluation.
Repository source reviewed for this catalog version:
Read the editorial and verification policy