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

creative-charts

v0.0.6

Published

A sophisticated collection of creative chart components with Material-UI theming support, featuring protected/obfuscated builds for commercial use.

Readme

creative-charts

A sophisticated collection of creative chart components with Material-UI theming support, featuring protected/obfuscated builds for commercial use.

Features

  • 🎨 Material-UI Integration: Seamless integration with MUI themes
  • 🔒 Smart Protection: Conditional debugger protection (production only)
  • 📊 Interactive Components: Rich hover effects and tooltips
  • 🎯 TypeScript Support: Full type safety and IntelliSense
  • 🌙 Dark Mode Ready: Built-in dark theme support
  • 📱 Responsive Design: Adapts to different screen sizes
  • 🛠️ Development Friendly: Debug protection disabled in dev mode

Installation

npm install creative-charts

Quick Start

import React from "react";
import { Heatmap, darkTheme } from "creative-charts";
import { ThemeProvider } from "@mui/material/styles";

const data = [
  { row: 0, col: 0, value: 10, category: "Sales", avgScore: 85, gap: 5 },
  { row: 0, col: 1, value: 20, category: "Marketing", avgScore: 75, gap: -2 },
  // ... more data
];

function App() {
  return (
    <ThemeProvider theme={darkTheme}>
      <Heatmap data={data} rows={5} cols={5} cellSize={60} cellSpacing={4} />
    </ThemeProvider>
  );
}

Components

Heatmap

Interactive heatmap component with customizable styling and hover effects.

Props

| Prop | Type | Default | Description | | ------------- | ------------------------------------------ | ------- | --------------------------- | | data | HeatmapDataPoint[] | - | Array of data points | | rows | number | - | Number of rows | | cols | number | - | Number of columns | | cellSize | number | 60 | Size of each cell in pixels | | cellSpacing | number | 4 | Spacing between cells | | colorScale | (value: number) => string | - | Custom color scale function | | onCellHover | (data: HeatmapDataPoint \| null) => void | - | Hover callback |

Data Format

interface HeatmapDataPoint {
  row: number;
  col: number;
  value: number;
  category?: string;
  avgScore?: number;
  gap?: number;
}

Theming

The package includes a sophisticated dark theme with purple accents:

import { darkTheme } from "creative-charts";
import { ThemeProvider } from "@mui/material/styles";

// Use the included theme
<ThemeProvider theme={darkTheme}>{/* Your components */}</ThemeProvider>;

Custom Theming

Components automatically adapt to your MUI theme's primary color:

import { createTheme } from "@mui/material/styles";

const customTheme = createTheme({
  palette: {
    primary: {
      main: "#your-color",
    },
  },
});

Environment Utilities

The package includes utilities for environment detection and development-friendly logging:

import { isProduction, isDevelopment, devLog } from "creative-charts";

// Check environment
if (isProduction()) {
  // Production-specific code
  // Debugger protection is active
}

if (isDevelopment()) {
  // Development-specific code
  // Full debugging capabilities
}

// Development-only logging
devLog("This only appears in development");

Debug Protection

The protected build includes smart debugger protection that:

  • Only activates in production (NODE_ENV === 'production')
  • SSR/Hydration Safe: No server-side interference
  • Allows normal debugging in development
  • Detects DevTools and debugging attempts
  • Includes console output protection
  • Post-hydration initialization: Starts after React hydration completes

Preventing Hydration Mismatches

For Next.js applications, use the included ClientOnly component to prevent hydration issues:

import { ClientOnly, Heatmap } from "creative-charts";

function MyPage() {
  return (
    <ClientOnly fallback={<div>Loading chart...</div>}>
      <Heatmap data={data} rows={5} cols={5} />
    </ClientOnly>
  );
}

Development

# Install dependencies
npm install

# Start development playground
npm run dev:playground

# Build for development (with source maps)
npm run build:dev

# Build for production
npm run build

# Build protected version (with anti-debug)
npm run build:protected

License

ISC License

Support