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

@ultron-dev/tracker

v0.2.4

Published

Lightweight browser error tracking SDK — zero dependencies, under 5kb gzipped

Readme

@ultron-dev/tracker

Lightweight browser error tracking SDK for Ultron — zero dependencies, under 5kb gzipped.

Installation

npm install @ultron-dev/tracker

Quick start

import { initTracker } from '@ultron-dev/tracker'

initTracker({
  apiKey: 'ultrn_your_project_api_key',
})

Get your API key from your project settings at ultron.live.

What it captures automatically

  • JavaScript errors — uncaught exceptions and unhandled promise rejections
  • Network failures — failed or slow fetch / XHR requests
  • Web vitals — LCP, CLS, INP, FCP, TTFB, FID
  • Resource errors — failed <script>, <img>, <link> loads
  • Session replays — rrweb recordings buffered around errors (opt-in)

Configuration

initTracker({
  apiKey: string              // Required. Your project API key.
  reportAllVitals?: boolean   // Report all web vitals, not just poor ones. Default: false
  slowRequestThreshold?: number // ms above which a network request is flagged as slow. Default: 3000
  sessionReplay?: boolean | SessionReplayConfig // Enable session replay. Default: false
})

Session replay

Pass true to use defaults, or an object to customise:

initTracker({
  apiKey: 'ultrn_...',
  sessionReplay: {
    bufferSeconds: 30, // Seconds of activity to buffer before an error. Default: 30
  },
})

Manual capture

Use captureError to report errors outside of the automatic listeners (e.g. inside a React error boundary):

import { captureError } from '@ultron-dev/tracker'

captureError(new Error('Something went wrong'), {
  component: 'CheckoutForm',
  userId: '123',
})

Framework examples

React

// app/layout.tsx or index.tsx
import { useEffect } from 'react'
import { initTracker } from '@ultron-dev/tracker'

useEffect(() => {
  initTracker({ apiKey: process.env.NEXT_PUBLIC_ULTRON_API_KEY! })
}, [])

Next.js App Router

// components/ultron-provider.tsx
'use client'
import { useEffect } from 'react'

export function UltronProvider() {
  useEffect(() => {
    import('@ultron-dev/tracker').then(({ initTracker }) => {
      initTracker({ apiKey: process.env.NEXT_PUBLIC_ULTRON_API_KEY! })
    })
  }, [])
  return null
}

Vanilla JS / CDN

<script type="module">
  import { initTracker } from 'https://esm.sh/@ultron-dev/tracker'
  initTracker({ apiKey: 'ultrn_...' })
</script>

TypeScript

All types are exported:

import type { TrackerConfig, SessionReplayConfig } from '@ultron-dev/tracker'

Best practices

Enable debug logging in development

Set debug: true when initializing in non-production environments to get console output for queued errors, flush results, and initialization state. Remove it (or gate it behind an env check) before shipping to production.

initTracker({
  apiKey: process.env.NEXT_PUBLIC_ULTRON_API_KEY!,
  debug: process.env.NODE_ENV !== 'production',
})

License

MIT