React component to display and process nuclear magnetic resonance (NMR) spectra.
Visit https://www.nmrium.org for examples of usage.
npm install nmrium
This module makes use of openchemlib/full
.
If you use OpenChemLib somewhere else in your project, make sure to also import
from openchemlib/full
to avoid having multiple OCL versions in your bundle.
import NMRium from 'nmrium';
function MyComponent() {
return <NMRium />;
}
See General information for NMRium development.
There is an automatic build on each commit. You can test the latest build from main
at:
Want to play ? You can do some 1D NMR exercises ;)
https://www.nmrium.org/teaching#?toc=https://cheminfo.github.io/nmr-dataset2/toc.json
Also you can do some 2D NMR exercises ;)
https://www.nmrium.org/teaching#?toc=https://cheminfo.github.io/nmr-dataset1/data/2d.json
https://dev.nmrium.org?sampleURL=https%3A//cheminfo.github.io/nmr-dataset1/data/2d.json
You can do some 1D NMR tests/ exams ;)
https://dev.nmrium.org?sampleURL=https%3A//cheminfo.github.io/nmr-dataset2/exam.json
If you have jcamps accessible from an URL and that your server allow cross-origin you can directly open your file in the demo application:
https://dev.nmrium.org?sampleURL=https%3A//cheminfo.github.io/nmr-dataset2/100-86-7/1h.dx
Link loading the default samples test cases
https://dev.nmrium.org/?sampleURL=samples.json
You can debug Data and onDataChange callback ;)
git clone https://github.com/cheminfo/nmrium.git
cd nmrium
npm i
npm start