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

xeno-sdk-web

v1.1.0

Published

Xeno Web SDK for user analytics and device fingerprinting

Downloads

1,971

Readme

📦 Xeno SDK Web

A lightweight TypeScript SDK for Xeno from the browser (and Node): user identity, event capture, and on-site web messaging (modals, banners, fullscreen pop-ups).


Install

npm install xeno-sdk-web

Ships ES module, CommonJS, and IIFE builds with type declarations.


Quick usage

import XenoSDK from 'xeno-sdk-web';

// 1. Configure (apiKey starting with `dev@` targets the dev environment).
//    Returns the SDK instance.
const sdk = XenoSDK.configure({ apiKey: 'YOUR_API_KEY' });

// 2. Identify the user (instance method)
await sdk.setUser({ phone: '+91...' /* or email / customerId */ });

// 3. Capture events (instance method)
sdk.captureEvent('added_to_cart', { sku: 'ABC', qty: 1 });

// 4. Activate on-site messaging — web pop-ups (static)
XenoSDK.showOnSite();

// optional: route CTA deeplinks yourself (static)
XenoSDK.listenDeeplink((url, ctx) => router.push(url));

Via CDN / <script>: the IIFE build exposes window.XenoSDK.


On-site messaging

Renders campaigns fetched from Xeno as Shadow-DOM overlays. Triggers: page_load, scroll_depth, exit_intent, custom_event. CTA actions include deeplink, open-url, copy-code, push-primer, and FORM capture. Session-scoped dedup (one show per campaign per browser session; survives reload + tab duplication).

Docs: docs/INAPP_WEB_CONTEXT.md, docs/ONSITE_DESIGN.md, campaign + HTML examples in docs/onsite-campaign-examples.md and docs/onsite-popup-html.md.


🛠 Local development

Prerequisites: Node.js >= 20 (Vite 7), npm.

git clone https://github.com/xenolab007/xeno-sdk-web.git
cd xeno-sdk-web
npm install

npm run dev          # dev server → http://localhost:5173 (test at /test/index.html)
npm run playground   # React on-site QA harness → http://localhost:5174
npm run build        # emit dist/ (run before publishing)

No automated test suite — manual QA via the browser.