npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

graphicus-charts

v2.4.0

Published

![Graphicus](https://fishesofaustralia.net.au/Images/Image/ChoerodonGraphicusJER.jpg)

Downloads

7

Readme

Graphicus (Charts Library)

Graphicus

The Graphic Tuskfish (Choerodon graphicus) is found in the Western Pacific between Australia and New Caledonia. Their preferred habitat is over rubble and sandy bottoms of lagoons and seaward reefs. Very shy!

They have been seen using rocks and coral heads as anvils to break open bivalves to obtain food.

Before you start

We use a number of packages in private repositories. To support these you'll need to add two environment variables to your shell config (e.g. .bashrc, .zshrc, .bash_profile):

# Fishbrain package registry tokens
export FISHBRAIN_PACKAGE_REGISTRY_TOKEN=XXXXX
export FONT_AWESOME_PACKAGE_REGISTRY_TOKEN=XXXXX

For FISHBRAIN_PACKAGE_REGISTRY_TOKEN the token can be generated by creating a personal access token in your Github account. Make sure to provide repo, write:packages and read:packages scopes for your token. Copy your token and Enable SSO. The token can now be used as the value for FISHBRAIN_PACKAGE_REGISTRY_TOKEN.

Getting started

Runs yarn start to run the app in the development mode. This will start a Storybook instance which you can use for development.

Run tests with yarn test and linting with yarn lint.

There is a live version of Graphicus Storybook (develop branch) available at http://graphicus.surge.sh/.

Adding a new component

In order to enable individual bundling of components you will need to use a specific format for new components. Create a directory src/NewComponent with a file named index.tsx. Your component should be exported from this file. You also need to specify the component in three files: src/index.tsx, config/rollup.config.module.js and config/rollup-shared.js (in the array EXPORTED_COMPONENTS).

Releasing

Run yarn release to go through the release process. If sucessful, this will result in a new version of Graphicus being published to NPM.

You will need to create a file .env.deploy and add a GITHUB_TOKEN to allow the release script to run. The token will need to have "repo" access; no "admin" or other scopes.

Usage

Individual components can be imported like so: import { Weather } from 'graphicus-charts/dist/Weather. Styles can be applied with import styles from 'graphicus-charts/dist/browser/styles.css' (currently only needed for the Calendar component).

A single package for use inline in the browser is also available at ./dist/browser/index.js