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

bg-tracking-module

v1.0.0

Published

Tracking application as a Web Component - A complete tracking solution that can be embedded in any web application

Readme

bg-tracking-module

A complete tracking application packaged as a Web Component. Built with React 19 and designed to be embedded in any web application, regardless of the framework.

Features

  • Framework Agnostic: Works with vanilla HTML, React, Vue, Angular, or any other framework
  • Self-Contained: All dependencies bundled (React, Firebase, Leaflet, etc.)
  • Easy Integration: Just include 2 files (JS + CSS) and use the custom element
  • Real-time Tracking: Live shipment and order tracking
  • Interactive Maps: Powered by Leaflet for route visualization
  • Responsive Design: Works on desktop and mobile devices

Installation

npm install bg-tracking-module

Or use via CDN:

<link rel="stylesheet" href="https://unpkg.com/[email protected]/tracking-app.css">
<script type="module" src="https://unpkg.com/[email protected]/tracking-app.js"></script>

Usage

Basic HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tracking App</title>

    <!-- Include the CSS -->
    <link rel="stylesheet" href="node_modules/bg-tracking-module/tracking-app.css">
</head>
<body>
    <!-- Use the web component -->
    <tracking-app></tracking-app>

    <!-- Include the JS -->
    <script type="module" src="node_modules/bg-tracking-module/tracking-app.js"></script>
</body>
</html>

With Props

<tracking-app
    base-url="/tracking"
    client="bigsmart">
</tracking-app>

React

import 'bg-tracking-module/tracking-app.css';
import 'bg-tracking-module/tracking-app.js';

function App() {
    return (
        <div>
            <h1>My Application</h1>
            <tracking-app base-url="/tracking" client="bigsmart"></tracking-app>
        </div>
    );
}

Vue

<template>
    <div>
        <h1>My Application</h1>
        <tracking-app base-url="/tracking" client="bigsmart"></tracking-app>
    </div>
</template>

<script>
import 'bg-tracking-module/tracking-app.css';
import 'bg-tracking-module/tracking-app.js';

export default {
    name: 'App'
}
</script>

Angular

// app.component.ts
import 'bg-tracking-module/tracking-app.css';
import 'bg-tracking-module/tracking-app.js';
<!-- app.component.html -->
<tracking-app base-url="/tracking" client="bigsmart"></tracking-app>

Available Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | base-url | string | / | Base URL for routing | | client | string | auto-detected | Client identifier (bigsmart, coppel, walmart) |

Browser Support

  • Chrome/Edge 88+
  • Firefox 85+
  • Safari 14+
  • Opera 74+

Size

  • JavaScript: ~1.8 MB (532 KB gzipped)
  • CSS: ~12.5 MB (6.3 MB gzipped)

The large size is due to all dependencies being bundled for standalone use.

Development

Built with:

  • React 19
  • Vite
  • react-to-webcomponent
  • Leaflet (Maps)
  • Firebase (Real-time updates)
  • Bootstrap (UI)
  • Zustand (State management)

License

MIT

Support

For issues and questions, please visit GitHub Issues

Changelog

1.0.0 (2025-10-31)

  • Initial release
  • Complete tracking application as web component
  • Support for real-time tracking
  • Interactive maps
  • Multi-client support