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

@calimero-network/mero-charts

v0.0.17

Published

Chart components for Calimero design system

Downloads

44

Readme

@calimero/charts

A React chart library for the Calimero design system, featuring three main chart types designed for monitoring and analytics dashboards.

Installation

pnpm add @calimero/charts recharts

Chart Types

1. Gauge Chart

A circular gauge component perfect for displaying metrics like CPU usage, memory usage, or any percentage-based values.

import { Gauge, GaugeCard } from '@calimero/charts';

// Basic gauge
<Gauge value={75} label="CPU" />

// Gauge with custom thresholds
<Gauge
  value={85}
  min={0}
  max={100}
  thresholds={{ good: 60, warning: 80, max: 100 }}
  decimals={1}
/>

// Gauge in a card
<GaugeCard
  title="CPU Usage"
  value={73.4}
  suffix="%"
/>

Props

  • value (number): The current value to display
  • min (number, optional): Minimum value (default: 0)
  • max (number, optional): Maximum value (default: 100)
  • label (string, optional): Label displayed below the value
  • decimals (number, optional): Number of decimal places (default: 1)
  • thresholds (object, optional): Color thresholds for good/warning/max states

2. Time Series Chart

A line chart component for displaying time-series data using Recharts.

import { SeriesCard, Series } from "@calimero/charts";

const data: Series[] = [
  {
    name: "Requests per second",
    data: [
      { t: Date.now() - 60000, y: 12.5 },
      { t: Date.now() - 30000, y: 15.2 },
      { t: Date.now(), y: 13.8 },
    ],
  },
];

<SeriesCard title="API Requests" series={data} yLabel="req/s" />;

Props

  • title (string): Chart title
  • series (Series[]): Array of data series
  • yLabel (string, optional): Y-axis label

3. Vector Table

A table component for displaying Prometheus-style instant vector data.

import { VectorTable, PromVectorResult } from "@calimero/charts";

const vector: PromVectorResult = {
  status: "success",
  data: {
    resultType: "vector",
    result: [
      {
        metric: {
          instance: "10.0.99.165:8429",
          container: "vmsingle",
          reason: "unsupported",
          path: "*",
        },
        value: [1756235265, "0"],
      },
    ],
  },
};

<VectorTable title="HTTP Request Errors" vector={vector} />;

Props

  • vector (PromVectorResult): The vector data to display
  • title (string, optional): Table title

Demo Component

Use the ChartsDemo component to see all chart types in action:

import { ChartsDemo } from "@calimero/charts";

<ChartsDemo />;

Card Primitives

The package also exports card primitives that can be used independently:

import { Card, CardHeader, CardTitle, CardContent } from "@calimero/charts";

<Card>
  <CardHeader>
    <CardTitle>Custom Content</CardTitle>
  </CardHeader>
  <CardContent>Your content here</CardContent>
</Card>;

Styling

The charts use Calimero design tokens for consistent theming:

Colors

  • Success: #16a34a (green) - Good zone
  • Warning: #f59e0b (orange) - Warning zone
  • Error: #ef4444 (red) - Critical zone
  • Info: #3b82f6 (blue) - Informational
  • Background: #1A1A1A (dark)
  • Border: #404040 (medium gray)
  • Text: white and #8E8E8E (light gray)

The components are built with Tailwind CSS classes and can be customized by passing additional className props.

Dependencies

  • React 18+
  • Recharts 2.12.0+

Development

# Build the package
pnpm build

# Type checking
pnpm typecheck