Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Interactive browser visualizations for materials science: periodic tables, 3d crystal structures, MD trajectories, heatmaps, scatter plots, histograms.

License

NotificationsYou must be signed in to change notification settings

janosh/matterviz

Repository files navigation

Logo MatterViz

TestsGH PagesVSCode ExtensionDocsOpen in StackBlitzZenodo DOI

matterviz is a toolkit for building interactive web UIs for materials science: periodic tables, 3d crystal structures (and molecules, though needs some improvements!), Bohr atoms, nuclei, heatmaps, scatter plots. It's under active development and not yet ready for production use but we appreciate any feedback from beta testers! 🙏

Visualize crystal structures, molecules, and molecular dynamics trajectoriesdirectly in VSCode. Features include:

  • Native support for common file formats (CIF, POSCAR, XYZ, TRAJ, HDF5, etc.)
  • Context menu (right click > "Render with MatterViz") and keyboard shortcuts (ctrl+shift+v on Windows,cmd+shift+v on Mac) for quick access
  • Custom viewer for MD trajectories/geometry optimizations
  • Extensive customization options via VSCode settings - seeConfiguration Guide for examples

🗺️   Roadmap

Screenshot of landing page

📦   Heatmap

This screenshot demonstrates the periodicity of elemental properties (i.e. why it's called periodic table). In this case, you're seeing recurring bumps and valleys in the first ionization energy as a function of atomic number.

Screenshot of periodic table heatmap

⚛️   3D Structure Viewer

3D Structure Viewer

⚛️   Element Details Pages

The details page for gold.

2022-08-26-element-detail-page-screen-recording.mp4

🔨   Installation

npm install --dev matterviz

📙   Usage

Periodic Table

<script>import {PeriodicTable }from'matterviz'constheatmap_values= {H:10, He:4, Li:8, Fe:3,O:24 }</script><PeriodicTable {heatmap_values} />

Structure

<script>import {Structure }from'matterviz'constdata_url='/structures/TiO2.cif'// supports .cif, .poscar, .xyz/.extxyz, pymatgen JSON, OPTIMADE JSON, .gz</script><Structure {data_url}style="width: 500px; aspect-ratio: 1" />

Composition

<script>import {Composition }from'matterviz'// modes can be 'pie' (default) | 'bubble' | 'bar'</script><Compositioncomposition="LiFePO4"mode="pie" />

Trajectory

<script>import {Trajectory }from'matterviz'// supports .xyz/.extxyz, .traj, .hdf5, .npz, .pkl, .dat, .gz, .zip, .bz2, .xz</script><Trajectorydata_url="/traj/ase-md.xyz"auto_playfps={10}style="max-height: 700px" />

🧪   Coverage

StatementsBranchesLines
StatementsBranchesLines

🙏   Acknowledgements

This project would not have been possible as a one-person side project without many fine open-source projects. 🙏 To name just a few:

3D graphics2D graphicsDocsBundlerTesting
three.jsd3mdsvexviteplaywright
threltesharprehypesveltekitvitest

How to citematterviz

Usecitation.cff or cite theZenodo record using the following BibTeX entry:

@software{riebesell_matterviz_2022,title ={matterviz: visualization toolkit for materials informatics},author ={Riebesell, Janosh and Evans, Matthew},date ={2025-09-10},year ={2025},doi ={10.5281/zenodo.17094509},url ={https://github.com/janosh/matterviz},note ={10.5281/zenodo.17094509 - https://github.com/janosh/matterviz},urldate ={2025-09-10}, % optional, replace with your date of accessversion ={0.1.9}, % replace with the version you use}

About

Interactive browser visualizations for materials science: periodic tables, 3d crystal structures, MD trajectories, heatmaps, scatter plots, histograms.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp