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

ngx-monitoring

v19.2.30

Published

<!-- Language selection links --> <p align="center"> <a href="#shqip">Shqip</a> | <a href="#english">English</a> </p>

Readme

ngx-monitoring


English

ngx-monitoring is a lightweight Angular HTTP interceptor that logs the response time of all outgoing HTTP requests made with Angular's HttpClient. Ideal for performance monitoring, diagnostics, and debugging.

npm License Angular


🚀 Features

  • 📡 Tracks all HTTP requests made with HttpClient
  • ⏱️ Logs response time in milliseconds
  • 🧩 Plug-and-play interceptor
  • 🔧 Easily customizable for advanced use cases
  • 📝 Form submission analytics and step tracking

⚡ Usage & Compatibility

Compatibility:

  • Use v18.3.3 of ngx-monitoring for Angular 18 projects
  • Use v19.2.20 of ngx-monitoring for Angular 19 projects

Installation

Install the library using npm or yarn:

npm install ngx-monitoring
# or
yarn add ngx-monitoring

Importing the Module

Import the MonitoringModule in your Angular app (usually in AppModule):

import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { AppComponent } from "./app.component";
import { MonitoringModule } from "ngx-monitoring";

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    MonitoringModule.forRoot({
      baseUrl: "localhost:3000",
      serviceId: SERVICE_ID, // replace with your actual service ID
      pageLoadApiPath: "/Analytics/page-load",
      apiResponseApiPath: "/Analytics/api-response",
      formSubmissionPath: "/Analytics/form-submission", // api to post steps of a form
      filterWith: "your_filter", // optional filter
    }),
  ],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

Configuration Table

| Option | Type | Description | | -------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | baseUrl | string | Base URL for your monitoring API | | serviceId | string | Unique identifier for your service | | pageLoadApiPath | string | API endpoint to track page load times | | apiResponseApiPath | string | API endpoint to track response times | | formSubmissionPath | string | API endpoint to track form submission steps and analytics. Used by MonitoringApiService.postFormStep() | | filterWith | string | Optional string used to filter tracked requests. Requests whose URL contains this string will be excluded from being sent to the monitoring API. |

Form Submission Tracking

Use the MonitoringApiService to track form submission steps:

import { MonitoringApiService, FormSubmissionAnalyticsDto } from "ngx-monitoring";

export class YourComponent {
  constructor(private monitoringApi: MonitoringApiService) {}

  trackFormStep() {
    const formData: FormSubmissionAnalyticsDto = {
      timestamp: new Date(),
      serviceId: "your-service-id",
      stepSubmitted: 1,
      totalSteps: 5,
      stepName: "stepName",
      sessionId: "sessionId",
      formId: "formId",
      formName: "formName",
      formType: "formType",
      formUrl: "formUrl",
      errorMessage: undefined,
      infoMessage: "infoMessage",
    };

    this.monitoringApi.postFormStep(formData).subscribe();
  }
}

FormSubmissionAnalyticsDto Interface

export type FormSubmissionAnalyticsDto = {
  timestamp: Date;
  serviceId: string;
  stepSubmitted: number;
  totalSteps: number;
  stepName?: string;
  sessionId?: string;
  formId?: string;
  formName?: string;
  formType?: string;
  formUrl?: string;
  errorMessage?: string;
  infoMessage?: string;
};

Shqip

ngx-monitoring është një librari për Angular që regjistron kohën e përgjigjes për të gjitha kërkesat HTTP që bëhen me HttpClient të Angular dhe kohën e ngarkimit të faqeve.

npm License Angular


🚀 Tiparet

  • 📡 Regjistron të gjitha kërkesat HTTP të bëra me HttpClient
  • ⏱️ Regjistron kohën e përgjigjes në milisekonda
  • 🔧 Lehtësisht i personalizueshëm për përdorime të avancuara
  • 📝 Analitikë dhe ndjekje të hapave të formave

⚡ Përdorimi & Versionet

Versionet:

  • Përdorni v18.3.3ngx-monitoring për projekte Angular 18
  • Përdorni v19.2.20ngx-monitoring për projekte Angular 19

Instalimi

Instaloni librarinë duke përdorur npm ose yarn:

npm install ngx-monitoring
# ose
yarn add ngx-monitoring

Importimi i Modulit

Importoni MonitoringModule në aplikacionin tuaj Angular (zakonisht në AppModule):

import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { AppComponent } from "./app.component";
import { MonitoringModule } from "ngx-monitoring";

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    MonitoringModule.forRoot({
      baseUrl: "localhost:3000",
      serviceId: SERVICE_ID, // zëvendësoni me ID-në tuaj të shërbimit
      pageLoadApiPath: "/Analytics/page-load",
      apiResponseApiPath: "/Analytics/api-response",
      formSubmissionPath: "/Analytics/form-submission", // api për të postuar hapat e një forme
      filterWith: "your_filter", // filtër opsional
    }),
  ],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

Tabela e Konfigurimit

| Opsioni | Lloji | Përshkrimi | | -------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------- | | baseUrl | string | URL bazë për API-në tuaj të monitorimit | | serviceId | string | Identifikues unik për shërbimin tuaj | | pageLoadApiPath | string | Endpoint API për të regjistruar kohët e ngarkimit të faqeve | | apiResponseApiPath | string | Endpoint API për të regjistruar kohët e përgjigjes | | formSubmissionPath | string | Endpoint API për të regjistruar hapat dhe analitikat e formave. Përdoret nga MonitoringApiService.postFormStep() | | filterWith | string | String opsional për të filtruar kërkesat e regjistruara. Kërkesat që përmbajnë këtë string do të përjashtohen nga dërgimi te API i monitorimit. |

Ndjekja e Hapave të Formës

Përdorni MonitoringApiService për të ndjekur hapat e dorëzimit të formave:

import { MonitoringApiService, FormSubmissionAnalyticsDto } from "ngx-monitoring";

export class YourComponent {
  constructor(private monitoringApi: MonitoringApiService) {}

  trackFormStep() {
    const formData: FormSubmissionAnalyticsDto = {
      timestamp: new Date(),
      serviceId: "your-service-id",
      stepSubmitted: 1,
      totalSteps: 5,
      stepName: "stepName",
      sessionId: "sessionId",
      formId: "formId",
      formName: "formName",
      formType: "formType",
      formUrl: "formUrl",
      errorMessage: undefined, // mesazh gabimi opsional
      infoMessage: "infoMessage", // mesazh informativ opsional
    };

    this.monitoringApi.postFormStep(formData).subscribe();
  }
}

Interface FormSubmissionAnalyticsDto

export type FormSubmissionAnalyticsDto = {
  timestamp: Date;
  serviceId: string;
  stepSubmitted: number;
  totalSteps: number;
  stepName?: string;
  sessionId?: string;
  formId?: string;
  formName?: string;
  formType?: string;
  formUrl?: string;
  errorMessage?: string;
  infoMessage?: string;
};