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

numcast

v1.0.7

Published

Live visitors widget for NumCast - display real-time visitor counts on your website

Readme

numcast

A React component to display live viewer counts on your website in real-time. Show real-time online users to create urgency, build trust, and boost conversions.

Website: numcast.io

NumCast helps you add social proof to your product pages by displaying live viewer counts. When customers see others viewing your products, they're more likely to buy.

Get Started

  1. Sign up at numcast.io to get your tracking ID
  2. Install the package:
    npm install numcast
    or
    yarn add numcast
    or
    pnpm add numcast
  3. Add the widget to your product pages (see usage below)

Usage

Basic Usage

import { LiveVisitorsWidget } from "numcast";

function MyPage() {
  return (
    <div>
      <h1>My Product Page</h1>
      <LiveVisitorsWidget trackingId="your-tracking-id" />
    </div>
  );
}

Custom Styling

You can customize the appearance using className or style props:

<LiveVisitorsWidget
  trackingId="your-tracking-id"
  className="my-custom-class"
  style={{
    backgroundColor: "#f0f0f0",
    border: "2px solid #000",
  }}
/>

Props

| Prop | Type | Default | Description | | ------------ | --------------------- | ---------------------- | --------------------------------------------- | | trackingId | string | required | Your NumCast tracking ID | | page | string | Current page path | Custom page path to track | | readOnly | boolean | false | If true, only displays stats without tracking | | apiUrl | string | 'https://www.numcast.io' | API base URL | | className | string | - | Custom CSS class name | | style | React.CSSProperties | - | Custom inline styles |

How It Works

  1. Viewer Tracking: When a viewer visits a page, the widget sends a ping to NumCast (default every 30 minutes) to keep their session alive. Use pingIntervalMs to customize.
  2. Live Updates: The widget fetches viewer counts (default every 1 minute). Use fetchIntervalMs to customize.
  3. Session Management: Each viewer gets a unique session ID stored in localStorage, which persists across page navigations.
  4. Automatic Cleanup: Viewers are automatically removed after the active window (e.g. 30 minutes) of inactivity on the server.

Getting Your Tracking ID

  1. Visit numcast.io and sign up
  2. Create a website in your dashboard
  3. Copy your tracking ID from the dashboard
  4. Use it in the trackingId prop

Pricing

NumCast offers flexible pricing plans:

  • Starter: $9/month - Up to 10,000 visitors/month
  • Growth: $19/month - Up to 50,000 visitors/month
  • Business: $29/month - Up to 100,000 visitors/month
  • Scale: $99/month - Up to 1,000,000 visitors/month

Visit numcast.io to see all plans and features.

Support

Requirements

  • React 16.8.0 or higher
  • React DOM 16.8.0 or higher

Example Use Cases

  • E-commerce: Show live viewer counts on product pages to create urgency
  • SaaS Landing Pages: Display real-time interest on feature pages
  • Event Pages: Show how many people are viewing an event
  • Course Pages: Display live interest in educational content

License

MIT


Made with ❤️ by NumCast