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

sciter-analytics

v1.0.0

Published

This is a [sciter.js](https://sciter.com/) package for in-app analytics.

Readme

sciter analytics

latest version downloads

This is a sciter.js package designed for in-app analytics.

The primary goal is to track user interactions within the application to gain insights that help enhance the overall user experience. By analyzing user behavior, we can optimize the app's functionality and design to better meet user needs.

Two types of events are recorded:

  • events that are triggered by user actions (e.g. clicking a button)
  • events that are triggered by the application (e.g. a page is loaded)

The following application analytics providers have been implemented:

demo

  • git clone the repository
  • install packages npm install
  • install the latest sciter sdk npm run install-sdk
  • update the mixpanel project token or amplitude api key in main.htm
  • start the demo npm run scapp

demo requirements

  • A recent version of Node.js node (tested with 22 LTS) and its package manager npm.

add to your project

You can either add it to your project using npm or by copying the src directory.

using npm

  • install package npm install sciter-analytics

copy source

  • add the src dir to your project

add to <script type="module">

// using npm
import Mixpanel from "node_modules/sciter-analytics/src/mixpanel.js";
import Amplitude from "node_modules/sciter-analytics/src/amplitude.js";

// copying src
import Mixpanel from "src/mixpanel.js";
import Amplitude from "src/amplitude.js";

Mixpanel example

const mixpanel = new Mixpanel({
    // project token
    token: "c557e826f1a76aaa4ed02e4681f95ae4",
    // user unique id
    userId: Utils.uuid(),
    debug: true,
});

// add user properties
mixpanel.properties({
    // reserved properties
    $name: "John Doe",
    $email: "[email protected]",

    // custom properties
    address: "Some street",
    birthday: "1987-02-11",
});

// log event
mixpanel.event("App started");

// watch for event
mixpanel.watch("focus", "plaintext", "plaintext focused");

// send data
mixpanel.send();

Amplitude example

const amplitude = new Amplitude({
    apikey: "0fad02b65a75f270c199db6b920fbf92",
    userId: Utils.randomStr(10),
    debug: true,
    eventProperties: {
        appName: "Sciter analytics",
        appRelease: "debug",
    },
});

amplitude.event("Start app");

// watch app close
amplitude.watch("closerequest", undefined, "App close request");

// watch app install click
amplitude.watch("click", "#installApp1", "Install app", {
    appName: "app 1",
});

amplitude.watch("click", "#installApp2", "Install app", {
    appName: "app 2",
});

amplitude.watch("click", "#installApp3", "Install app", {
    appName: "app 3",
});

other providers to consider

  • https://segment.com/
  • https://docs.smartlook.com/

todo

  • implement generic tracking class? and make conversion on server to mixpanel specific?
  • implement proxy because we will be stuck if we plan to stop using mixpanel
  • distinguish between users using the same ip - user account, computer name is not possible
  • what to do when we have no user id? ask mixpanel to create it or we create it? if yes, how do we get it from mixpanel?
  • mixpanel - what happens if id is not passed in constructor?
  • add auto-send option