
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
mc-react-bands
Advanced tools
[](https://www.npmjs.com/package/mc-react-bands)
A React component to visualize band structures and density of states (dos) on the Materials Cloud platform.
The BandsVisualizer component (only the folder src/lib) is published as a npm package, which can be installed via npm install mc-react-bands.
In order to use the library, the peer dependencies (see package.json) need to be installed separately in the consuming application. Additionally, the chart.js plugins need to be registered.
Basic usage is the following:
import BandsVisualizer from "mc-react-bands";
import si_bands from "./exampleData/si_bands.json";
import si_dos from "./exampleData/si_dos.json";
// Chart.js plugins need to be registered outside the library
import Chart from "chart.js/auto";
import zoomPlugin from "chartjs-plugin-zoom";
import annotationPlugin from "chartjs-plugin-annotation";
Chart.register(zoomPlugin);
Chart.register(annotationPlugin);
function App() {
return (
<BandsVisualizer
bandsDataList={[si_bands]}
dosData={si_dos}
/>
);
}
export default App;
This repository also contains example usage in the src/App.jsx file. src/data contains the data format of the band and dos files.
The core of this app is based on jquery and chart.js.
Related repositories:
For local development, and running the example, just install and run this repository:
npm install
npm run dev
To make a new version and publish to npm via GitHub Actions:
npm version major/minor/patch
git push --follow-tags
FAQs
[](https://www.npmjs.com/package/mc-react-bands)
We found that mc-react-bands demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.