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

rg-life-wheel-chart

v0.1.6

Published

A dynamic, customizable Life Wheel Chart component for React and Next.js

Readme

rg-life-wheel-chart

A dynamic, zero-dependency Life Wheel Chart component for React and Next.js. Built with pure SVG — no canvas, no third-party chart libraries.

Features

  • Supports 1 to 50 life areas dynamically
  • Auto-generated chromatic color palette — override per area as needed
  • Fully responsive via SVG viewBox
  • Clean, typed API with full TypeScript support
  • Compatible with React 17+ and Next.js (App Router & Pages Router)

Installation

npm install rg-life-wheel-chart
# or
yarn add rg-life-wheel-chart
# or
pnpm add rg-life-wheel-chart

Basic Usage

import { LifeWheel } from "rg-life-wheel-chart";

const areas = [
  { label: "Health", value: 8 },
  { label: "Career", value: 6 },
  { label: "Love", value: 7 },
  { label: "Family", value: 5 },
  { label: "Spirituality", value: 4 },
  { label: "Money", value: 6 },
  { label: "Fun", value: 9 },
  { label: "Friends", value: 7 },
];

export default function App() {
  return <LifeWheel areas={areas} />;
}

Custom Colors

const areas = [
  { label: "Health", value: 8, color: "#f43f5e" },
  { label: "Career", value: 6, color: "#6366f1" },
  { label: "Love", value: 7 }, // auto-colored
];

<LifeWheel areas={areas} />;

Props

| Prop | Type | Default | Description | | --------------- | ----------------------- | ----------- | ----------------------------------- | | areas | LifeArea[] | required | Array of life areas (1–50) | | gridLevels | number | 10 | Number of concentric rings | | gridColor | string | "#d1d5db" | Grid line color | | gridOpacity | number | 0.6 | Grid line opacity | | strokeColor | string | "white" | Segment border color | | strokeWidth | number | 1.5 | Segment border width | | labelFontSize | number | 9 | Label font size (SVG units) | | labelColor | string | "#374151" | Label text color | | labelPadding | number | 12 | Space between wheel edge and labels | | className | string | — | CSS class for the wrapper div | | style | CSSProperties | — | Inline styles for the wrapper div | | onAreaClick | (area, index) => void | — | Click handler for segments |

LifeArea Interface

interface LifeArea {
  label: string; // display name
  value: number; // score from 0 to 10
  color?: string; // any valid CSS color (hex, hsl, rgb...)
}

Next.js (App Router)

If using the App Router, add "use client" to the file that imports the component since it uses React hooks internally.

"use client";
import { LifeWheel } from "rg-life-wheel-chart";

License

MIT