#periodic #elements #dioxus #periodic-table #chemistry-elements

bin+lib inperiod

Modern fancy interactive online periodic table of chemistry elements

1 unstable release

0.1.2 Nov 18, 2024

#128 in Science

Download history 107/week @ 2024-11-13 35/week @ 2024-11-20

142 downloads per month

MIT/Apache

315KB
2.5K SLoC

Build status Crates.io dependency status License: MIT

There are plenty of periodic tables available online, including web pages, spreadsheet, JPEG/PNG/SVG images, mobile APP, Python-generated, and even those can be purchased from various e-commerce platforms, but none of them fully meet my expectations.

What I want is a periodic table that could comprehensively showcase all aspects of the periodic trends of chemical elements, provide rich and layered information, synchronize with the latest authoritative data in real-time, and include interactive features as a WebAPP or native/mobile APP. Moreover, it had to feature Chinese names and pinyin and be printable on A4/A3 paper for use by sixth and ninth-grade students as an educational and memorization aid. Thus, this project was born.

https://mhfan.github.io/inperiod

Elements Periodic Table Show electron configuration diagram Show crystal structure

Additionally, this project also targets to provide a set of API in Rust for accessing all kinds of information and data about the elements.

Instructions

  1. Install npm: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
  2. Install the tailwind css cli: https://tailwindcss.com/docs/installation
  3. Run the following command in the root of the project to start the tailwind CSS compiler:
npx tailwindcss -i ./tailwind_base.css -o ./assets/tailwind.css --watch

Launch the Dioxus Web/Desktop app:

dx serve #--verbose
dx serve --platform web

dx serve --platform desktop #rm -rf dist
cd dist && cargo r --features desktop

Note: Recommended to print as PDF on Chrome browser.

References

Dependencies

~0–41MB
~582K SLoC