Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
elementari
Advanced tools
Interactive visualizations for materials science: periodic tables, Bohr atoms, nuclei, heatmaps, scatter plots.
elementari
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! 🙏
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.
The details page for gold.
npm install --dev elementari
Import the PeriodicTable
component and pass it some heatmap values:
<script>
import PeriodicTable from 'elementari'
const heatmap_values = { H: 10, He: 4, Li: 8, Fe: 3, O: 24 }
</script>
<PeriodicTable {heatmap_values} />
PeriodicTable.svelte
forwards the following events from each ElementTile
:
click
mouseenter
mouseleave
keyup
keydown
Each event is a Svelte dispatch
event with the following detail
payload:
detail: {
element: ChemicalElement
active: boolean // whether the event target tile is currently active
dom_event: Event // the DOM event that triggered the Svelte dispatch
}
See DispatchPayload
and PeriodicTableEvents
in src/lib/index.ts
Statements | Branches | Lines |
---|---|---|
src/lib/element-data.ts
were combined from Bowserinator/Periodic-Table-JSON
under Creative Commons license and robertwb/Periodic Table of Elements.csv
(unlicensed).fetch-elem-images.ts
and static/elements
.threlte
and contributing the Bond.svelte
component.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 |
15 January 2024
Structure
#45
SymmetryCard.svelte
#42
71ce70b
9138582
f707cf2
58cf060
bda2e5f
3ace071
e4bcc92
83bc866
d4dce4b
cd32144
14027e3
770ffbf
ff0336a
1b0bc6d
45e3dc2
be68b6a
f46cee0
FAQs
Interactive visualizations for materials science: periodic tables, Bohr atoms, nuclei, heatmaps, scatter plots.
The npm package elementari receives a total of 69 weekly downloads. As such, elementari popularity was classified as not popular.
We found that elementari demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.