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

fingerprint-sdk

v5.0.3

Published

A high-entropy, professional-grade browser fingerprinting library for JS/TS (WebGPU/WebGL/Canvas/Audio/Fonts) with basic bot/tamper signals.

Readme

fingerprint-sdk

License: MIT TypeScript

English | 中文

面向 JavaScript/TypeScript 的高熵值浏览器指纹库。它会采集多种相对稳定的信号(WebGPU/WebGL/Canvas/Audio/字体/屏幕/硬件等),生成确定性的 visitorId,并提供一个轻量的 bot/篡改风险指示(基于常见自动化特征)。

特性

  • 多信号指纹:WebGPU、WebGL、Canvas、Audio、字体、屏幕/视口、硬件并发与内存等。
  • Iframe 隔离采样:部分采集逻辑在隐藏 iframe 中运行,降低简单全局 Hook 的影响。
  • 基础 bot/篡改信号:汇总常见自动化指标(如 navigator.webdriver、插件缺失、可疑窗口尺寸等)。
  • TypeScript 友好:类型完备,支持 ESM/CJS 构建产物。

安装

npm install fingerprint-sdk
# 或
yarn add fingerprint-sdk
# 或
pnpm add fingerprint-sdk
# 或
bun add fingerprint-sdk

使用

import FingerprintSDK, { FingerprintResult } from "fingerprint-sdk";

async function main() {
  const result: FingerprintResult = await FingerprintSDK.get({
    debug: true,  // 返回 components 详细信息
    timeout: 5000 //(目前采集器内部有各自超时;该字段保留用于兼容)
  });

  console.log("visitorId:", result.visitorId);
  console.log("confidence:", result.confidence);
  console.log("isBot:", result.isBot);
  console.log("meta:", result.meta);

  if (result.components) {
    console.log("components:", result.components);
  }
}

main();

API

FingerprintSDK.get(options?)

参数

  • debug?: boolean:为 true 时返回原始采集结果 components
  • timeout?: number:保留字段;采集器内部会对单项信号设置超时

返回:Promise<FingerprintResult>

| 字段 | 类型 | 说明 | | --- | --- | --- | | visitorId | string | 基于熵值计算的确定性访客 ID(hash)。 | | confidence | number | 粗略置信度(目前主要由 security 信号推导)。 | | isBot | boolean | 检测到基础自动化/篡改信号时为 true。 | | components | Record<string, any> \| null | 原始信号(仅 debug: true 返回)。 | | meta | { version: string; duration: string } | SDK 版本与耗时。 |

注意事项与合规建议

  • 仅浏览器环境:依赖 window/document 及相关 Web API,不适用于服务端执行。
  • 隐私合规:指纹识别可能受到法律/政策约束,请确保合规告知与授权。
  • 不保证对抗结果:风控对抗是动态的,请将信号作为整体风控体系的输入之一。

开发

npm install
npm run build
npm run dev

许可证

MIT。