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

@ebitex/visitors-sdk

v0.1.347

Published

Recognise a returning visitor with their consent, honour Global Privacy Control and your own consent tool, and let them forget their device, from any site. No forms needed.

Downloads

469

Readme

@ebitex/visitors-sdk

Recognise a returning visitor with their consent, honour Global Privacy Control and your own consent tool, and let them forget their device, from any site. You do not need forms, or any other ebitex product beyond Audience.

  • Zero runtime dependencies. Works with a plain <script> tag, with a bundler, and with React.
  • The visitor's token is kept in a first-party cookie only while ebitex says that device may be recognised, and removed when recognition is denied, withdrawn, or the device is forgotten.
  • "Forget this device" is one operation with several doors: a footer link, a function, a React button, or a plain request from your own server.
  • interaction('pricing-viewed', { ... }) puts an interaction on the timeline of the person a recognised device belongs to. It is not a page-view tracker: nothing is stored for an anonymous visitor.
  • event({ kind: 'content.viewed', subject: { categories } }) records a high-volume event, such as a page viewed, that audiences count ("viewed three pages about espresso this week"). An event is not an interaction: it appears on nobody's timeline and is kept only briefly. pageViewed({ categories }) is the shorthand, and the drop-in script can record a view on load when you add data-ebitex-page-views and a <meta name="ebitex:categories" content="id,id"> tag (off unless you ask). Nothing is stored for an anonymous visitor.

Install

npm install @ebitex/visitors-sdk

Or, on a page with no build step:

<script type="module"
  src="https://cdn.jsdelivr.net/npm/@ebitex/visitors-sdk@0/dist/script.js"
  data-ebitex-key="ebx_your_browser_key"></script>
<footer><a href="#" data-ebitex-forget>Forget this device</a></footer>

Quick start

import { createVisitors } from '@ebitex/visitors-sdk'

const visitors = createVisitors({ key: 'ebx_your_browser_key' })
const { consent } = await visitors.refresh()

You need an Audience delivery key that is restricted to your site's origins (Audience, Connections, Delivery keys). The key is visible to anyone who views your page, which is safe only because of that restriction. Never put an unrestricted key in a page.

Full guide: https://developers.ebitex.io/getting-started/visitors/

Entry points

| Import | For | |---|---| | @ebitex/visitors-sdk | createVisitors, cookieStorage, the types | | @ebitex/visitors-sdk/react | VisitorsProvider, useVisitors, ForgetDeviceButton (React is an optional peer) | | @ebitex/visitors-sdk/script | The drop-in script for pages with no build step |

Licence

Apache-2.0