https://github.com/janosh/matterviz
Interactive browser visualizations for materials science: periodic tables, 3d crystal structures, MD trajectories, heatmaps, scatter plots, histograms.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.0%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Interactive browser visualizations for materials science: periodic tables, 3d crystal structures, MD trajectories, heatmaps, scatter plots, histograms.
Basic Info
- Host: GitHub
- Owner: janosh
- License: mit
- Language: TypeScript
- Default Branch: main
- Homepage: https://janosh.github.io/matterviz
- Size: 14.4 MB
Statistics
- Stars: 264
- Watchers: 5
- Forks: 19
- Open Issues: 6
- Releases: 20
Topics
Metadata Files
readme.md
MatterViz
[](https://github.com/janosh/matterviz/actions/workflows/test.yml) [](https://github.com/janosh/matterviz/actions/workflows/gh-pages.yml) [](https://marketplace.visualstudio.com/items?itemName=janosh.matterviz) [](https://matterviz.janosh.dev) [](https://stackblitz.com/github/janosh/matterviz)
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! 🙏
🔌 MatterViz VSCode Extension
Visualize crystal structures, molecules, and molecular dynamics trajectories directly 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 - see Configuration Guide for examples
🗺️ Roadmap
- ✅ MatterViz Web: matterviz.janosh.dev (works but under active development)
- ✅ MatterViz VSCode: marketplace.visualstudio.com/items?itemName=janosh.matterviz (works but under active development)
- ✅ pymatviz: Jupyter/Marimo extension for Python notebooks. Read about widgets in
pymatvizreadme for details.

📦 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.

⚛️ 3D Structure Viewer
⚛️ Element Details Pages
The details page for gold.
🔨 Installation
sh
npm install --dev matterviz
📙 Usage
Periodic Table
```svelte
Structure
```svelte
Composition
```svelte
Trajectory
```svelte
🧪 Coverage
| Statements | Branches | Lines |
| ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| |
|
|
🙏 Acknowledgements
- Element properties in
src/lib/element-data.tswere combined fromBowserinator/Periodic-Table-JSONunder Creative Commons license androbertwb/Periodic Table of Elements.csv(unlicensed). - Thanks to Images of Elements for providing photos of elemental crystals and glowing excited gases.
- Thanks to @kadinzhang and their Periodicity project [code] for the idea to display animated Bohr model atoms and inset a scatter plot into the periodic table to visualize the periodic nature of elemental properties.
- Big thanks to all sources of element images. See
fetch-elem-images.tsandstatic/elements. - Thanks to @ixxie (shenhav.fyi) for a lot of great suggestions, UX ideas, helping me learn
threlteand contributing theBond.sveltecomponent.
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 graphics | 2D graphics | Docs | Bundler | Testing | | :-----------------------------: | :--------------------------------------: | :------------------------------------------: | :---------------------------------: | :----------------------------------: | | three.js | d3 | mdsvex | vite | playwright | | threlte | sharp | rehype | sveltekit | vitest |
Owner
- Name: Janosh Riebesell
- Login: janosh
- Kind: user
- Location: GitHub
- Website: https://janosh.dev
- Repositories: 62
- Profile: https://github.com/janosh
Working on computational chemistry with pre-trained ML force fields
GitHub Events
Total
- Create event: 38
- Release event: 5
- Issues event: 24
- Watch event: 51
- Delete event: 50
- Issue comment event: 63
- Push event: 167
- Pull request review event: 143
- Pull request review comment event: 206
- Pull request event: 54
Last Year
- Create event: 38
- Release event: 5
- Issues event: 24
- Watch event: 51
- Delete event: 50
- Issue comment event: 63
- Push event: 167
- Pull request review event: 143
- Pull request review comment event: 206
- Pull request event: 54
Committers
Last synced: 8 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Janosh Riebesell | j****l@g****m | 244 |
| pre-commit-ci[bot] | 6****] | 3 |
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 23
- Total pull requests: 97
- Average time to close issues: 26 days
- Average time to close pull requests: 5 days
- Total issue authors: 10
- Total pull request authors: 3
- Average comments per issue: 0.91
- Average comments per pull request: 0.57
- Merged pull requests: 77
- Bot issues: 0
- Bot pull requests: 10
Past Year
- Issues: 17
- Pull requests: 56
- Average time to close issues: 4 days
- Average time to close pull requests: about 10 hours
- Issue authors: 8
- Pull request authors: 3
- Average comments per issue: 1.18
- Average comments per pull request: 0.75
- Merged pull requests: 42
- Bot issues: 0
- Bot pull requests: 1
Top Authors
Issue Authors
- janosh (11)
- Hello-QM (4)
- wakamiya0315 (1)
- ml-evs (1)
- cunzaizhuyi (1)
- hspark1212 (1)
- lan496 (1)
- riziles (1)
- inuyasha1031 (1)
- Andrew-S-Rosen (1)
Pull Request Authors
- janosh (86)
- pre-commit-ci[bot] (10)
- ml-evs (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- npm 677 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 12
- Total maintainers: 1
npmjs.org: matterviz
Interactive visualizations for materials science: periodic tables, 3D structures, MD trajectories, heatmaps, scatter plots.
- Homepage: https://janosh.github.io/matterviz
- License: MIT
-
Latest release: 0.1.10
published 6 months ago
Rankings
Maintainers (1)
Dependencies
- @playwright/test ^1.24.2 development
- @sveltejs/adapter-static ^1.0.0-next.39 development
- @sveltejs/kit ^1.0.0-next.405 development
- @types/d3-array ^3.0.3 development
- @types/d3-interpolate-path ^2.0.0 development
- @types/d3-scale ^4.0.2 development
- @types/d3-shape ^3.1.0 development
- @typescript-eslint/eslint-plugin ^5.33.0 development
- @typescript-eslint/parser ^5.33.0 development
- d3-array ^3.2.0 development
- d3-interpolate-path ^2.2.3 development
- d3-scale ^4.0.2 development
- d3-shape ^3.1.0 development
- eslint ^8.21.0 development
- eslint-plugin-svelte3 ^4.0.0 development
- hastscript ^7.0.2 development
- mdsvex ^0.10.6 development
- prettier ^2.7.1 development
- prettier-plugin-svelte ^2.7.0 development
- rehype-autolink-headings ^6.1.1 development
- rehype-slug ^5.0.1 development
- svelte ^3.49.0 development
- svelte-check ^2.8.0 development
- svelte-github-corner ^0.1.0 development
- svelte-multiselect ^5.0.6 development
- svelte-preprocess ^4.10.7 development
- svelte2tsx ^0.5.13 development
- typescript ^4.7.4 development
- vite ^3.0.5 development