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

pulsex

v2.0.1

Published

A lightweight and powerful JavaScript library for tracking user activity on websites. Easily monitor user interactions, including page visits, clicks, time spent, and engagement patterns. Designed for flexibility and performance, PulseX integrates seamles

Readme

PulseX

PulseX is a lightweight and powerful JavaScript library designed to help developers track user activity on websites. With PulseX, you can seamlessly monitor interactions like page visits, clicks, time spent, and engagement patterns, enabling you to make data-driven decisions to improve your application.

🌟 Features

  • Effortless Integration: Easily set up PulseX in your project with minimal configuration.
  • Real-Time Tracking: Track user interactions as they happen.
  • Customizable Events: Monitor specific actions like button clicks, form submissions, or custom-defined events.
  • Lightweight: Built with performance in mind, ensuring minimal impact on your website's load time.
  • Flexible Reporting: Collect data in the format you prefer for easy integration with analytics tools.

🚀 Getting Started

Follow these steps to integrate PulseX into your project:

1. Installation

Install PulseX via npm:

npm install pulsex

Or using Yarn:

yarn add pulsex

2. Usage

Start tracking user activity with a few lines of code:

import PulseX from "pulsex";

// Initialize PulseX
const tracker = new PulseX({
  trackingId: "YOUR_TRACKING_ID", // Optional unique identifier
  debug: true, // Enable console logs for debugging
});

// Track page views
tracker.trackPageView();

// Track custom events
tracker.trackEvent("button_click", {
  buttonId: "subscribe-btn",
  label: "Subscribe Button",
});

// Track user time on a specific section
tracker.trackTimeOnSection("homepage");

⚙️ Configuration Options

You can customize PulseX to suit your project needs. Here are the available options:

| Option | Type | Default | Description | | ---------------- | ------- | ------- | ---------------------------------------------- | | trackingId | String | null | A unique identifier for your tracking session. | | debug | Boolean | false | Enables debug mode for console logs. | | captureClicks | Boolean | true | Automatically tracks all button clicks. | | sessionTimeout | Number | 30 | Session timeout in minutes. |


📈 Available Methods

1. trackPageView()

Tracks when a user visits a new page.

2. trackEvent(eventName, eventData)

Tracks a specific event.

  • eventName: Name of the event (e.g., button_click).
  • eventData: Additional data about the event (e.g., buttonId, label).

3. trackTimeOnSection(sectionName)

Tracks how much time a user spends on a specific section.

  • sectionName: Name of the section (e.g., homepage).

🌐 Browser Compatibility

PulseX is compatible with all modern browsers, including:

  • Chrome
  • Firefox
  • Edge
  • Safari

📦 Contributing

We welcome contributions from the community! If you'd like to contribute:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Submit a pull request.

🛡️ License

PulseX is open-source and available under the MIT License.


💬 Support

If you have any questions, feature requests, or feedback, feel free to open an issue or reach out to us at [email protected].


Keep your finger on the pulse of your users with PulseX!