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

@trackpaw/dashboard

v0.1.1

Published

Embeddable React analytics dashboard for Trackpaw

Readme

@trackpaw/dashboard

Embeddable React analytics dashboard for Trackpaw. One component to mount a full analytics UI.

Installation

npm install @trackpaw/dashboard

Peer dependencies: react >= 18, react-dom >= 18

Quick Start

import { AnalyticsDashboard } from '@trackpaw/dashboard';

function AdminPage() {
  return (
    <AnalyticsDashboard
      endpoint="https://myapp.com/analytics"
      apiKey="your-read-key"
      theme="light"
    />
  );
}

Props

interface AnalyticsDashboardProps {
  endpoint: string;              // Server URL
  apiKey: string;                // Read API key
  theme?: 'light' | 'dark' | 'system';
  accentColor?: string;          // Primary color (default: '#6366f1')
  borderRadius?: string;         // Card radius (default: '8px')
  fontFamily?: string;
  features?: {
    trends?: boolean;            // default: true
    funnels?: boolean;           // default: true
    retention?: boolean;         // default: true
    eventStream?: boolean;       // default: true
    userProfiles?: boolean;      // default: true
  };
  defaultDateRange?: '24h' | '7d' | '14d' | '30d' | '90d';
  embedded?: boolean;            // Hide sidebar (default: false)
  onError?: (error: Error) => void;
}

Individual Components

For custom dashboard layouts, use individual views with AnalyticsProvider:

import {
  AnalyticsProvider,
  TrendsView,
  FunnelView,
  RetentionView,
  LineChart,
  MetricCard,
} from '@trackpaw/dashboard';

function CustomDashboard() {
  return (
    <AnalyticsProvider endpoint="/analytics" apiKey="read-key">
      <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 16 }}>
        <MetricCard label="Total Events" value={1234} />
        <MetricCard label="Active Users" value={567} />
      </div>
      <TrendsView />
    </AnalyticsProvider>
  );
}

Available Views

| Component | Description | |-----------|-------------| | OverviewView | Key metrics, event trend chart, top events | | TrendsView | Interactive trend analysis with event picker | | FunnelView | Funnel builder with conversion visualization | | RetentionView | Cohort retention heatmap grid | | EventStreamView | Live event feed with auto-refresh | | UserListView | Searchable user list with CSV export | | UserProfileView | Individual user detail with activity timeline |

Chart Components

| Component | Description | |-----------|-------------| | LineChart | Time-series line chart (Recharts) | | BarChart | Horizontal bar chart | | FunnelChart | Funnel bars with conversion % | | RetentionGrid | Cohort retention heatmap table | | MetricCard | Single KPI card with trend indicator |

Theming

The dashboard supports light, dark, and system-auto themes with customizable accent color:

<AnalyticsDashboard
  theme="dark"
  accentColor="#ec4899"
  borderRadius="12px"
  fontFamily="'JetBrains Mono', monospace"
/>