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

doorman-auth

v1.0.3

Published

JavaScript browser fingerprinting helpers packaged as an npm module. Provides configurable, testable, and Node.js-compatible functions for authentication and identification.

Readme

Doorman: JavaScript Fingerprinting Library

Overview

Doorman is a JavaScript library for browser fingerprinting. It works like a virtual doorman for your web application—recognizing returning users ("tenants") by their unique browser characteristics and letting recognized users in automatically, just as a doorman recognizes tenants and opens the door for them.

The Doorman Analogy

Imagine a doorman at a building:

  • The doorman observes people as they approach, noting their appearance, voice, and habits.
  • When a tenant arrives, the doorman recognizes them and lets them in automatically, without needing to check their ID every time.
  • Similarly, Doorman collects browser traits and generates a fingerprint. When a recognized user returns, Doorman can identify them and grant access or personalize their experience.

Features

  • Multiple fingerprinting helpers (canvas, fonts, plugins, etc.)
  • Easy-to-use API for generating and checking fingerprints
  • Configurable and extensible
  • Works in modern browsers
  • Tested and linted for reliability

Installation

npm install doorman

Usage Example

import { recognizedPerson } from 'doorman';

// Get a unique identifier for the current visitor
const personId = recognizedPerson();

// Store personId in your database for future visits
savePersonIdToDatabase(personId);

// Later, when the user returns:
if (isPersonRecognized(personId)) {
  // Let the user in automatically
  console.log('Welcome back!');
} else {
  // Ask for login or show onboarding
  console.log('Please sign in.');
}

API

Exports:

  • Doorman: Main class for advanced usage and configuration
  • recognizedPerson(): Returns a unique identifier for the current visitor even with cookies disabled and incognito mode!
  • Other functions are used for displaying the individual strings used when generating the unique number for each user

Why Use Doorman?

  • Improve user experience by recognizing returning users
  • Enhance security and fraud detection
  • Identify trolls with multiple accounts
  • Reduce friction for trusted tenants

Disclaimer

Browser fingerprinting is a powerful tool, but it isn't always accurate. It should always be used in addition to other forms of authentication which are more reliable. It should also be used responsibly and in compliance with privacy regulations. Always inform users and obtain consent where required.