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

@angularai/analytics

v0.0.3

Published

<div align="center"> <h1>@angularai/analytics</h1> <p>πŸ“Š AI-powered analytics and insights for Angular applications</p>

Downloads

337

Readme

Overview

@angularai/analytics provides AI-powered analytics components and services for Angular applications. Track user behavior, analyze patterns, and gain insights with intelligent data visualization.

✨ Features

  • πŸ“ˆ Smart Analytics: AI-powered data analysis and pattern recognition
  • πŸ“Š Interactive Dashboards: Beautiful, responsive analytics dashboards
  • πŸ” Trend Detection: Automatic trend and anomaly detection
  • πŸ“± Real-time Updates: Live data streaming with RxJS
  • 🎨 Customizable Charts: Flexible chart components with theming support
  • πŸ”§ Fully Typed: Complete TypeScript support

πŸ“¦ Installation

npm install @angularai/analytics @angularai/core

πŸš€ Quick Start

1. Import the Module

import { Component } from '@angular/core';
import { AnalyticsDashboardComponent } from '@angularai/analytics';

@Component({
  selector: 'app-analytics',
  standalone: true,
  imports: [AnalyticsDashboardComponent],
  template: `
    <analytics-dashboard
      [data]="analyticsData"
      [config]="dashboardConfig"
    />
  `
})
export class AnalyticsComponent {
  analyticsData = {
    pageViews: 15420,
    uniqueVisitors: 8234,
    bounceRate: 42.5,
    avgSessionDuration: 185
  };

  dashboardConfig = {
    theme: 'light',
    refreshInterval: 30000
  };
}

2. Use the Analytics Service

import { Component, inject } from '@angular/core';
import { AnalyticsService } from '@angularai/analytics';

@Component({ ... })
export class TrackingComponent {
  private analytics = inject(AnalyticsService);

  trackEvent(eventName: string, data: any) {
    this.analytics.track(eventName, data);
  }

  getInsights() {
    this.analytics.getInsights().subscribe(insights => {
      console.log('AI Insights:', insights);
    });
  }
}

πŸ“– API Reference

AnalyticsService

@Injectable({ providedIn: 'root' })
export class AnalyticsService {
  // Track an event
  track(eventName: string, data?: any): void;

  // Get AI-powered insights
  getInsights(): Observable<Insight[]>;

  // Get trend analysis
  analyzeTrends(data: DataPoint[]): Observable<TrendAnalysis>;

  // Detect anomalies
  detectAnomalies(data: DataPoint[]): Observable<Anomaly[]>;
}

AnalyticsDashboardComponent

Inputs

| Input | Type | Default | Description | |-------|------|---------|-------------| | data | AnalyticsData | {} | Analytics data to display | | config | DashboardConfig | {} | Dashboard configuration | | theme | 'light' \| 'dark' | 'light' | Color theme | | refreshInterval | number | 0 | Auto-refresh interval (ms) |

πŸ“¦ Related Packages

| Package | Description | |---------|-------------| | @angularai/core | Core AI functionality | | @angularai/chatbot | AI chat components | | @angularai/smart-datatable | AI data tables |

πŸ”— Related Projects

| Framework | Repository | Status | |-----------|-----------|--------| | Vue.js | @aivue | βœ… Available | | React | @anthropic-ai/react | βœ… Available | | Angular | @angularai | βœ… Available | | Svelte | @svelteai | πŸ’‘ Planned |

πŸ“„ License

MIT Β© AngularAI