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

@apstal/analytics

v1.0.5

Published

Official tracking library for Apstal — the conversational AI Web Analyst.

Readme

@apstal/analytics

Official open-source tracking library for Apstal — the autonomous conversational AI Web Analyst that helps you find and explain user drop-offs, rage clicks, and conversion leaks in plain language.


🚀 Quick Start Guide (Step-by-Step)

Follow these steps to integrate Apstal AI Web Analytics into your website:

Step 1: Sign Up & Log In

  1. Go to apstal.com/chat.
  2. Log in using your Google account or email.

Step 2: Enter Your Website URL

On the onboarding screen, enter your website's URL (e.g., yoursite.com) and click "Continue". Apstal will automatically create your project, detect your website's tech stack, and generate your unique Project ID (looks like xxxx-xxxx-xxxx).

Step 3: Install the Package

Run the following command in your website project's root folder:

npm install @apstal/analytics

Step 4: Initialize Apstal in Your Code

For Single Page Applications (React, Next.js, Vue, Nuxt)

Import the initialization function in your main entry file (e.g., layout.tsx, App.js, or index.js) and run it:

import { initApstal } from '@apstal/analytics';

// Initialize the tracker
initApstal('YOUR_PROJECT_ID'); // Replace with the Project ID from Step 2

For Classic HTML Pages

If you are building a static landing page or a WordPress site, add this code block before the closing </body> tag of your HTML:

<script 
  defer 
  data-project="YOUR_PROJECT_ID" 
  src="/node_modules/@apstal/analytics/src/apstal.js">
</script>

Step 5: Start Talking to Your AI Analyst

Deploy your website, open a few pages, and click a few buttons. Go back to apstal.com/chat. The system will automatically detect the installation, and you can start asking the AI assistant conversational questions about your visitors' behavior (e.g., "why did mobile users drop off today?").


🛡️ Privacy & Compliance

Apstal processes data in compliance with applicable data protection laws, including the GDPR and CCPA:

  • 🇪🇺 GDPR & CCPA Compliant: Apstal processes data strictly as a Data Processor on behalf of the Customer (the Data Controller), ensuring full compliance with GDPR and CCPA under our Data Processing Addendum (DPA).
  • 🕵️‍♂️ Cookieless Telemetry: Does not use cookies, LocalStorage, or SessionStorage to track users across domains, minimizing legal compliance overhead.
  • 🧼 Client-Side PII Masking: Forcefully replaces all Personally Identifiable Information (PII), passwords, and form inputs with asterisks (***) directly inside the visitor's browser before any transmission to the servers.
  • 🌍 IP Anonymization: Momentarily processes IP addresses for geolocation and network classification. The raw IP address string is never stored in the database and is discarded immediately.
  • ⚙️ Consent & CMP Support: Fully supports external Consent Management Platforms (CMPs). The implementation of appropriate cookie banners and consent mechanisms remains the sole responsibility of the site owner (Data Controller).

For more details, please review our official legal documents:

License

AGPL-3.0. Copyright (c) 2025-2026 Apstal.