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

@codeserk/forge-stats-app

v0.7.0

Published

App performance plugin for Forge Stats. Tracks frames, freezes, interactions, load times and memory of browser apps.

Readme

@codeserk/forge-stats-app

App performance plugin for @codeserk/forge-stats, for browser apps (dashboards, single page apps). It re-exports the whole core client, so an app imports this package alone. Public websites that only need the web vitals use @codeserk/forge-stats-web-vitals instead; an app can use both, they send separate web and app events.

Installation

npm install @codeserk/forge-stats-app

Usage

import { appPerformance, init } from '@codeserk/forge-stats-app'

const appMetrics = appPerformance({ getRoute: () => router.currentRoute.pattern })
init({ sdk: 'YOUR_SDK_KEY', plugins: [appMetrics] })

A route is measured once every 5 h, across reloads (kept in localStorage): the visit is one Performance sample with context: app, named after the route pattern (getRoute returns the pattern, not the raw pathname), sent when the route changes or the page is hidden. Later visits within the 5 h send no sample and no spikes:

| Group | What | Browsers | |---|---|---| | frames | frame times (min, max, avg, count, hitches), from requestAnimationFrame | all | | startMs | first sample only: navigation to the first quiet page | all | | loadMs | first sample of a route: route change to the quiet page | all | | interactions | count (pointer and key downs) and slow (over 200 ms) | all; slow with Event Timing (Chromium, Firefox, Safari 26.2+) | | memory | used heap in MB | Chromium |

A load ends at its last request or DOM change, once nothing happened for 100 ms with no fetch or XMLHttpRequest in flight; one still busy after 30 s is dropped. Apps that know better call appMetrics.ready() when the content is shown, and pass waitForReady: true so only ready() ends a load.

Frames over 200 ms are freezes, sent as spike events with what the Long Animation Frames API saw in them as frames.causes: each script by file name, forced-layout and style-layout (Chromium only; other browsers send spikes without causes).

Every group can be turned off: samples, spikes, loads, interactions, memory, all on by default.