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

@molecule/app-progress-rings-react

v3.0.0

Published

Apple-Health-style SVG progress rings (single + concentric triad) — health summaries, onboarding, OKR

Readme

@molecule/app-progress-rings-react

Apple-Health-style concentric SVG progress rings — single + triad.

Exports <ProgressRings> for one or more rings rendered as a single SVG. Designed to replace the per-app duplicates in healthcare flagships (HealthSummaryTriad, WellnessRingsTriad, RecoveryRingsTriad, AdherenceTriad) and the single-ring usage in business apps (employee-onboarding, okr-goal-tracking).

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

Quick Start

import { ProgressRings } from '@molecule/app-progress-rings-react'

;<ProgressRings
  rings={[
    { value: 8200, max: 10000, color: 'var(--color-success)', label: 'Steps' },
    { value: 7, max: 8, color: 'var(--color-info)', label: 'Sleep (hrs)' },
    { value: 35, max: 60, color: 'var(--color-warning)', label: 'Active (min)' },
  ]}
  size={160}
  strokeWidth={12}
/>

Type

feature

Installation

npm install @molecule/app-progress-rings-react @molecule/app-react @molecule/app-ui react
npm install -D @types/react

API

Interfaces

ProgressRing

Single ring entry — value/max plus the colored accent and an optional label.

interface ProgressRing {
  /** Current progress value. Clamped against `max` at render time. */
  value: number
  /** Maximum / goal value. Must be > 0; values <= 0 fall back to 1. */
  max: number
  /**
   * SVG stroke color for this ring. Pass a CSS color (token-resolved by the
   * caller against the active theme) — the component never hardcodes color.
   */
  color: string
  /** Optional accessible label for this ring (e.g. "Steps", "Sleep"). */
  label?: string
}

ProgressRingsProps

Props for <ProgressRings> — the unified single + concentric-triad component.

interface ProgressRingsProps {
  /** One or more rings. 1 ring = single circle; 2+ = concentric Apple-Health-style stack. */
  rings: ProgressRing[]
  /** Outer SVG diameter in px. Defaults to 160. */
  size?: number
  /** Stroke thickness for each ring in px. Defaults to 12. */
  strokeWidth?: number
  /** Gap between concentric rings in px (ignored when only one ring). Defaults to 4. */
  gap?: number
  /**
   * Stroke linecap rounding. `'round'` produces the iOS-Health pill caps;
   * `'butt'` is flat. Defaults to `'round'`.
   */
  cornerRadius?: 'round' | 'butt'
  /** Override the outer wrapper classes. */
  className?: string
  /** `data-mol-id` for AI-agent selectors. */
  dataMolId?: string
  /** Optional aria-label for the whole graphic. Falls back to translated summary. */
  ariaLabel?: string
}

Functions

ProgressRings(props)

Apple-Health-style concentric SVG progress rings. Renders a single circular ring when rings.length === 1, or a nested stack of rings (outermost first) for 2+ entries. Pure SVG — no canvas, no chart-library dep. Layout and typography resolve via the wired ClassMap; ring colors come from props (typically resolved from theme tokens by the caller).

function ProgressRings({
  rings,
  size = 160,
  strokeWidth = 12,
  gap = 4,
  cornerRadius = 'round',
  className,
  dataMolId,
  ariaLabel,
}: ProgressRingsProps): JSX.Element
  • props — Component props (see {@link ProgressRingsProps}).

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-react ^3.0.0
  • @molecule/app-ui ^1.0.1
  • react ^18.0.0 || ^19.0.0

Runtime Dependencies

  • @molecule/app-react
  • @molecule/app-ui
  • react

Companion locale bond: @molecule/app-locales-progress-rings (aria summary

  • per-ring labels). Ring color is any CSS color — pass theme tokens like var(--color-success) so rings follow the active theme. Requires the app-react i18n provider and a wired ClassMap bond. Rings nest outside-in: rings[0] is the outermost.

Translations

Translation strings are provided by @molecule/app-locales-progress-rings.