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

instastack

v1.0.0

Published

Social media metrics counter with smooth animations for React applications

Readme

InstaStack

license

InstaStack is a flexible React component for displaying metrics with animated, auto-formatting counters - perfect for dashboards, social media interfaces, and analytics displays.

InstaStack Demo

Features

  • Animated Counters - Smooth rolling digit animations when values change
  • 🔢 Auto Formatting - Automatically formats large numbers (e.g., 1.5K, 2.4M)
  • 🎨 Highly Customizable - Style every aspect of the component
  • 🧩 Flexible Layout - Works with any icons and custom styling
  • 📱 Responsive - Adapts to any screen size
  • 🚀 Lightweight - Minimal dependencies

Installation

npm install instastack
# or
yarn add instastack

Quick Start

import React from "react";
import { InstaStack } from "instastack";
import { Heart, MessageCircle, Share } from "lucide-react";

const MyComponent = () => {
  const items = [
    {
      id: "likes",
      count: 15400, // Will automatically format as 15.4K
      icon: <Heart size={18} className="text-red-500" />,
    },
    {
      id: "comments",
      count: 2300,
      icon: <MessageCircle size={18} className="text-blue-500" />,
    },
    {
      id: "shares",
      count: 850,
      icon: <Share size={18} className="text-green-500" />,
    },
  ];

  return <InstaStack items={items} />;
};

Props

| Prop | Type | Description | | -------------------- | ------ | ------------------------------------------- | | items | Array | Array of metric items to display (required) | | containerStyle | Object | Style object for the main container | | itemContainerStyle | Object | Style applied to each item container | | iconStyle | Object | Style applied to each icon container | | countStyle | Object | Style applied to each counter value | | font | String | Font family to use for all text |

Item Structure

Each item in the items array should have the following structure:

{
  id: "uniqueId",       // Required unique identifier
  count: 12345,         // Number value to display
  icon: <Icon />,       // React element to display
  containerStyle: {},   // Optional individual container style
  iconStyle: {},        // Optional individual icon style
  countStyle: {}        // Optional individual count style
}

Advanced Customization Examples

Custom Container Styling

<InstaStack
  items={analyticsItems}
  containerStyle={{
    justifyContent: "space-between",
    maxWidth: "600px",
  }}
  itemContainerStyle={{ height: "36px" }}
  iconStyle={{ marginRight: "10px" }}
  countStyle={{
    fontSize: "22px",
    fontWeight: "600",
    color: "white",
  }}
/>

Custom Fonts

<InstaStack items={leaderboardItems} font="'Courier New', monospace" />

Individual Item Styling

const items = [
  {
    id: "followers",
    count: 8750,
    icon: <User size={16} />,
    // Individual styling for this item only
    containerStyle: {
      backgroundColor: "#F3F4F6",
      borderRadius: "4px",
      padding: "0 8px",
    },
    iconStyle: { marginRight: "8px" },
    countStyle: { fontWeight: "bold" },
  },
  // More items...
];

<InstaStack items={items} />;

Examples

Check out the examples folder for more usage examples.

License

MIT © Parth Chawla

Author

PARTH CHAWLA - @polo15s