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

@athena-tracker/dashboard-react

v1.0.2

Published

Pre-built React dashboard components for ATHENA analytics - embed analytics directly in your app

Readme

@athena-tracker/dashboard-react

Pre-built React dashboard components for ATHENA analytics

npm version License: MIT

Features

  • Complete Dashboard - Drop-in analytics dashboard component
  • Modular Widgets - Use individual widgets or combine them
  • Theming Support - Customize colors, fonts, and styles
  • Real-time Updates - Auto-refresh and WebSocket live streams
  • TypeScript Support - Full type definitions included
  • Zero Config - Works out of the box with sensible defaults

Installation

npm install @athena-tracker/dashboard-react @athena-tracker/react-hooks

Quick Start

Complete Dashboard

import { AthenaDashboard } from '@athena-tracker/dashboard-react';

function App() {
  return (
    <AthenaDashboard
      appId="app_123"
      workspaceToken={process.env.ATHENA_WORKSPACE_JWT}
      theme={{
        primaryColor: '#FF6B35',
        secondaryColor: '#4ECDC4'
      }}
      views={['overview', 'journeys', 'live']}
      refreshInterval={60000}
    />
  );
}

Individual Widgets

import { OverviewWidget, LiveStreamWidget } from '@athena-tracker/dashboard-react';

function CustomDashboard() {
  return (
    <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '20px' }}>
      <OverviewWidget
        appId="app_123"
        workspaceToken={process.env.ATHENA_WORKSPACE_JWT}
        period="7d"
      />
      <LiveStreamWidget
        appId="app_123"
        workspaceToken={process.env.ATHENA_WORKSPACE_JWT}
      />
    </div>
  );
}

Components

AthenaDashboard

Main dashboard component with tabbed navigation.

<AthenaDashboard
  appId="app_123"
  workspaceToken={token}
  theme={{
    primaryColor: '#3B82F6',
    backgroundColor: '#FFFFFF',
    textColor: '#1F2937',
    borderRadius: '8px'
  }}
  views={['overview', 'journeys', 'friction', 'heatmap', 'predictions', 'live']}
  refreshInterval={60000}
  className="custom-dashboard"
  style={{ maxWidth: '1200px', margin: '0 auto' }}
/>

Props: | Prop | Type | Required | Description | |------|------|----------|-------------| | appId | string | ✅ | ATHENA app ID | | workspaceToken | string | ✅ | JWT workspace token | | apiUrl | string | ❌ | API base URL (default: https://tracker.pascal.cx) | | theme | DashboardTheme | ❌ | Customize colors and styles | | views | DashboardView[] | ❌ | Enabled views (default: all) | | refreshInterval | number | ❌ | Auto-refresh interval in ms | | className | string | ❌ | Additional CSS class | | style | CSSProperties | ❌ | Additional inline styles |


OverviewWidget

Key metrics widget showing sessions, events, and users.

<OverviewWidget
  appId="app_123"
  workspaceToken={token}
  period="7d"
  refreshInterval={30000}
/>

Props: | Prop | Type | Required | Description | |------|------|----------|-------------| | appId | string | ✅ | ATHENA app ID | | workspaceToken | string | ✅ | JWT workspace token | | apiUrl | string | ❌ | API base URL | | period | string | ❌ | '1h' | '24h' | '7d' | '30d' | '90d' (default: '7d') | | theme | DashboardTheme | ❌ | Customize colors | | refreshInterval | number | ❌ | Auto-refresh interval |


JourneysWidget

User flow visualization showing top navigation paths.

<JourneysWidget
  appId="app_123"
  workspaceToken={token}
  period="7d"
/>

LiveStreamWidget

Real-time event stream via WebSocket.

<LiveStreamWidget
  appId="app_123"
  workspaceToken={token}
/>

Theming

Customize the dashboard appearance:

const customTheme = {
  primaryColor: '#FF6B35',       // Primary accent color
  secondaryColor: '#4ECDC4',     // Secondary accent color
  backgroundColor: '#FFFFFF',     // Widget background
  textColor: '#1F2937',          // Text color
  borderColor: '#E5E7EB',        // Border color
  borderRadius: '8px',           // Border radius
  fontFamily: 'Inter, sans-serif' // Font family
};

<AthenaDashboard theme={customTheme} {...otherProps} />

Advanced Usage

Custom Layout

Combine widgets in your own layout:

import { OverviewWidget, JourneysWidget, LiveStreamWidget } from '@athena-tracker/dashboard-react';

function CustomLayout({ appId, workspaceToken }) {
  return (
    <div className="analytics-grid">
      <div className="main-content">
        <OverviewWidget appId={appId} workspaceToken={workspaceToken} period="7d" />
        <JourneysWidget appId={appId} workspaceToken={workspaceToken} period="7d" />
      </div>

      <aside className="sidebar">
        <LiveStreamWidget appId={appId} workspaceToken={workspaceToken} />
      </aside>
    </div>
  );
}

White-Label Integration

Remove branding and customize fully:

<AthenaDashboard
  appId="app_123"
  workspaceToken={token}
  theme={{
    primaryColor: '#YOUR_BRAND_COLOR',
    fontFamily: 'Your Brand Font'
  }}
  className="your-custom-class"
  style={{
    border: 'none',
    boxShadow: '0 4px 6px rgba(0,0,0,0.1)'
  }}
/>

Browser Support

  • Chrome/Edge 90+
  • Safari 14+
  • Firefox 88+
  • React 18+

TypeScript Support

Full TypeScript definitions included:

import type { DashboardConfig, DashboardTheme, WidgetProps } from '@athena-tracker/dashboard-react';

License

MIT

Documentation

  • Full documentation: https://docs.athena.ai/dashboard-react
  • Integration guide: See PARTNER_INTEGRATION_GUIDE.md
  • API reference: https://tracker.pascal.cx/docs

Support