What Is @nivo/core and Why Do Nivo charts Need It?
Learn what @nivo/core does in Nivo charts: theming, containers, motion configuration and shared utilities, plus how to install and use it correctly.
Read guide
Nivo charts GitHub repository, hosted at plouc/nivo, is where the library is developed, discussed and released. It holds the source for every chart package, the documentation website, Storybook stories and the history of changes. Knowing your way around it helps when you need to check behaviour, follow updates or contribute a fix.
The repository is organised as a monorepo, meaning many related packages live in one place and are versioned together. This structure explains why all @nivo packages share matching version numbers and why updating them together is recommended.
The project is published under the MIT licence, and the licence file sits at the root of the repository. The README introduces the library, lists available packages and links to the documentation website.
A handful of top-level folders contain most of what developers look for. Each chart package has its own directory inside packages, with source code, tests and package configuration kept together.
| Folder | Contents |
|---|---|
| packages | Every published package, such as core, bar, line, pie and sunburst |
| website | Source for the nivo.rocks documentation site |
| storybook | Stories demonstrating chart variations and edge cases |
| Root files | README, licence, workspace and tooling configuration |
Reading a chart package is a good way to understand how props become shapes. The component files show how data is computed with D3 helpers and passed to rendering layers.
Cloning gives you a local copy of the full source, which is useful for reading code, running the documentation site or preparing a contribution. Git is the only requirement for the initial step.
git clone https://github.com/plouc/nivo/archive/refs/heads/master.zip
cd nivo
Installing dependencies and running the website or Storybook locally uses the workspace tooling described in the repository. Follow the README and contributing notes for the current commands, since tooling can change between releases.
Applications do not need the cloned source. For everyday projects, install published packages from npm, as described in the npm installation article, and keep the repository for reference.
Published packages are built, versioned and ready to use, whereas the raw source requires the project tooling to compile. Relying on npm keeps your application builds fast and reproducible.
Issues are the place to report bugs and track known problems. Before opening a new issue, search existing ones, because many questions about sizing, data formats or upgrades have already been answered.
The releases section and changelog notes summarise what each version adds, fixes or changes. Reading them before upgrading helps you spot breaking changes, renamed props or new peer dependency requirements.
Watching the repository for releases is a simple way to stay informed. Combined with updating all @nivo packages together, this keeps upgrades predictable.
Contributions range from documentation fixes to new chart features. Small improvements, such as clarifying a prop description or adding a Storybook story, are a friendly way to start and help other developers directly.
Larger changes are best discussed in an issue first, so maintainers can confirm the approach. Pull requests should follow the repository conventions, include tests where appropriate and keep the change focused.
| Contribution type | Good first step |
|---|---|
| Typo or documentation fix | Open a small pull request |
| Bug fix | Link to or open an issue with a reproduction |
| New feature or prop | Discuss the idea in an issue before coding |
| New example | Add a Storybook story |
When choosing any open-source library, the repository reveals useful signals. Recent commits, release frequency, issue response patterns and documentation quality all indicate how actively a project is maintained.
Review these signals yourself at the time you adopt Nivo rather than relying on old summaries, since activity naturally changes over time.
Source code is often the fastest answer to detailed questions, such as how a default value is calculated or which data fields a tooltip receives. Each chart package keeps its components, prop definitions and defaults together, so searching within one package rarely takes long.
GitHub's search and the file finder make navigation quick. Searching for a prop name across the packages folder shows every chart that supports it and how each one uses it.
Contributing follows the standard GitHub workflow. Fork the repository, create a focused branch, make the change with tests or stories as needed, and open a pull request that explains the motivation and links any related issue.
Keeping pull requests small makes review easier and increases the chance of a quick merge. Clear descriptions, screenshots of visual changes and reproduction steps for fixes are always appreciated by maintainers.
Running the existing tests and linting locally before opening a pull request catches most problems early. Following the commands documented in the repository ensures your change matches the checks maintainers run.
Yes. The Nivo project is developed in the plouc/nivo repository on GitHub, which is linked from the nivo.rocks website.
The MIT licence permits commercial use, provided the licence notice is preserved. Review the licence file for details.
Use npm packages for applications. The GitHub source is best for reading, local documentation and contributions.
Nivo charts GitHub repository is the central home of the project, containing every package, the documentation site, Storybook, issues and release notes. Understanding its monorepo structure explains why packages share versions and where to look when behaviour needs checking.
Use npm for day-to-day installation, the repository for deeper research, and the documentation site for prop references and live demos.