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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ken-research/charts

v0.1.5

Published

React chart components for Ken Research. Built on Highcharts with Ken branding. Simple props, zero config, SSR-ready.

Readme

@ken-research/charts

React chart components for Ken Research—built on Highcharts, styled for your brand. Simple props, zero config, SSR-ready.

Quick Start

import { LineChart } from "@ken-research/charts";

<LineChart
  title="Monthly Sales"
  labels={["Jan", "Feb", "Mar"]}
  data={[120, 180, 240]}
/>

Render a Ken-styled chart in minutes—no Highcharts knowledge required.

Installation

pnpm add @ken-research/charts
# or
npm install @ken-research/charts

Peer dependencies: React 18+, React DOM 18+

Supported Charts

| Component | Props | Description | |-----------|-------|-------------| | LineChart | labels, data, title?, subtitle? | Single-series line | | BarChart | labels, data, title?, subtitle? | Horizontal bar | | ColumnChart | labels, data, title?, subtitle? | Vertical column | | AreaChart | labels, data, title?, subtitle? | Area under line | | PieChart | data, title?, donut? | Pie or donut | | StackedBarChart | labels, series, title?, horizontal? | Stacked columns/bars | | MultiSeriesLineChart | labels, series, title? | Multiple lines, same axis | | HistoricalProjectedAreaChart | labels, series, title?, yAxisTitle? | Historical (solid) + projected (dashed) area | | MultiAxisLineChart | labels, leftSeries, rightSeries, title? | Dual Y-axis line |

API Examples

Line Chart

<LineChart
  title="Revenue"
  labels={["Jan", "Feb", "Mar", "Apr"]}
  data={[100, 200, 150, 280]}
/>

Pie / Donut

<PieChart
  title="Market Segments"
  data={[
    { name: "Tech", value: 35 },
    { name: "Healthcare", value: 28 },
  ]}
  donut={true}
/>

Historical & Projected Area (Market Size)

import { HistoricalProjectedAreaChart } from "@ken-research/charts";

<HistoricalProjectedAreaChart
  title="Historical & Projected Market Size ($ Million)"
  labels={["2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030"]}
  series={[
    { name: "Historical (2019-2024)", data: [120, 135, 142, 155, 168, 178, null, null, null, null, null, null] },
    { name: "Projected (2025-2030)", data: [null, null, null, null, null, 178, 186, 195, 202, 212, 220], isProjected: true },
  ]}
  yAxisTitle="$ Million"
/>

Stacked Bar

<StackedBarChart
  title="Quarterly Revenue"
  labels={["Q1", "Q2", "Q3", "Q4"]}
  series={[
    { name: "Product A", data: [120, 140, 130, 160] },
    { name: "Product B", data: [80, 90, 95, 110] },
  ]}
/>

Architecture

@ken-research/charts
├── core/
│   ├── theme.ts       # Ken Research theme tokens
│   ├── baseOptions.ts # Shared Highcharts defaults
│   └── factory.ts     # Option builder (internal)
├── charts/
│   ├── LineChart.tsx
│   ├── BarChart.tsx
│   └── ...
├── types/
│   └── chart-props.ts # Strict TS interfaces
└── index.ts
  • SSR-safe: Components use "use client" and lazy-load Highcharts
  • Tree-shakable: Import only the charts you use
  • No raw config: options={{}} and inline Highcharts config are not allowed
  • Theme from core: All styling comes from core/theme.ts

Development

# Install
pnpm install

# Build
pnpm build

# Storybook
pnpm storybook

# Demo app (build first, then run from examples/next-demo)
pnpm build
cd examples/next-demo && pnpm dev

Storybook

Preview all charts at http://localhost:6006:

pnpm storybook

Demo App

Next.js integration example:

cd examples/next-demo && pnpm dev

Open http://localhost:3000.

Engineering Rules

  • All components are "use client" for SSR safety
  • Highcharts is lazy-loaded via useEffect
  • Strict TypeScript; minimal props only
  • No styling via props—theming from core/theme.ts
  • Components wrapped in memo—no dynamic re-renders from parent

License

UNLICENSED — Internal use only.