Private pre-release
This project is under active development and will be made public soon. Release timing may change, and repository links will not work until then.
workers-fingerprint
Zero-prompt device identity for Cloudflare Workers: passive edge signals, silent browser fingerprinting, Drizzle/D1 matching, cross-browser hardware linking, and an opt-in Rust/WASM hardware addon merged into one visitor ID. Vite demo, consent gate, research, experiments.
Show 5 more
Zero-prompt device identity for Cloudflare Workers: passive edge signals, silent browser fingerprinting, a first-party anchor, and calibrated fuzzy matching. Research, a publishable TypeScript SDK, a live demo, and every experiment behind it.
Live demo · SDK · Research · Experiments
What this is
Most fingerprinting projects fall into one of two traps: a client-side hash that breaks on the next browser update, or an edge-only heuristic that never sees the device. This project is the hybrid:
- Passive edge signals on every request: TLS/HTTP, header order, Client Hints, ASN/geo/RTT.
- Silent browser signals on a normal page load: canvas, WebGL, audio, fonts, media/supports, screen, optional behavior.
- First-party anchor: cookie, ETag, and a stateless HMAC nonce.
- Decision layer: hard bucket + weighted Jaccard + confidence bands + Drizzle/D1 identity store.
The core SDK does not use hardware timing side channels. The opt-in @yasogan/fingerprint/hardware entry is separate and consent-gated in the demo. No permission prompts, no WebAuthn dialog, no CAPTCHA.
Try it
The landing page explains the architecture and asks for consent before unlocking one combined demo at /. A run collects passive edge signals, silent browser signals, the cookie anchor, and the opt-in hardware addon, then returns one visitor ID, confidence, and decision. The hardware addon is not a second fingerprint; its features are merged into the same match. A reload should return the same visitor via the anchor.
Domain: https://fingerprint.yasogan.dev
API: GET /api/challenge, GET /api/etag, POST /api/identify
Consent: the core and hardware demos are combined at / and locked until the visitor opts in.
The SDK
packages/fingerprint is @yasogan/fingerprint, built from YasogaN/ts-starter and adapted for Workers + browsers.
import { D1IdentityStore, extractEdge, identify } from '@yasogan/fingerprint';
const edge = extractEdge(request);
const result = await identify(new D1IdentityStore(env.DB), {
edge,
client: body.client,
anchorId: cookieValue,
});
import { collectClientSignals } from '@yasogan/fingerprint/client';
const client = await collectClientSignals({ behaviorMs: 800 });
await fetch('/api/identify', { method: 'POST', body: JSON.stringify({ nonce, client }) });
Drizzle owns all database access: schema.ts, the D1 store, drizzle-kit generate, and generated migrations. The browser collector is a separate entry point, so the client bundle does not pull in Drizzle or server code.
Architecture
| Layer | Runs in | What it contributes |
|---|---|---|
| Passive edge | Cloudflare Worker | TLS/HTTP stack, header order, high-entropy Client Hints, ASN/geo/RTT/QUIC/delivery rate |
| Browser collector | Browser | Canvas, WebGL, audio, fonts, media queries, CSS supports, screen, locale/timezone/touch/storage, behavior |
| Anchor | Worker + browser | Cookie, local anchor, signed ETag, HMAC nonce |
| Identity engine | Worker | Hard bucket, all-feature weighted similarity, confidence/decision, cross-browser link |
| Hardware addon (opt-in) | Browser + Rust/WASM | WebGL/WebGPU adapter, cache/SIMD/scalar timing, audio, timer; merged into the same identity |
| Storage | D1 via Drizzle | Visitors, anchors, observations |
| Demo | Worker + Vite | Landing page, consent gate, /api/challenge, /api/identify |
Research highlights
| Finding | Result | Report |
|---|---|---|
| No-JS CSS/HTML probe | 138 signals per page view; 5/5 synthetic profiles unique; free-tier request budget is the real limit | server-side-free.md |
| Calibration | Hard bucket + IDF × stability: no-fleet F1 0.727 @ 0.84 (TPR 0.80, FPR 3.17%) vs uniform 0.684 @ 0.97 | calibration.md |
| Identical fleet twins | Static schemes 100% false merge; cookie anchor 0% | calibration.md |
| Real Chrome Android | SM-A528B, Adreno 642L, WebGPU qualcomm/adreno-6xx, 4 GB RAM, clean cache curve | hardware-fingerprinting.md |
| LibreWolf RFP | WebGL removed, 16.667 ms timer, cache curve quantized; hardware class collapses to a cohort | hardware-fingerprinting.md |
| Rust/WASM stateless token | Same key → same device ID; new context → new ID; float bits identical across engines | wasm-stateless-device-id.md |
| Zero-prompt literature | 81.3% unique / 91% stable attributes; FP-STALKER 54.48-day average tracking; cross-browser 83.24% uniqueness / 91.44% stability | peak-identity.md |
| Two real LibreWolf devices | OS difference showed up as fonts, UA, height, HTTP/2 vs HTTP/3; same engine core | librewolf-live-test.md |
packages/fingerprint/ @yasogan/fingerprint SDK
examples/demo-worker/ live Cloudflare Worker demo
docs/
README.md report index
reports/ seven research reports
experiments/
edge-probe/ first edge probe
server-side-probe/ no-JS probe, calibration, privacy matrix
wasm-device-token/ Rust/WASM + ECDSA stateless token
wasm-hardware-probe/ Rust/WASM hardware-class probe
hardware-live/ live real-device hardware probe
librewolf-live/ live LibreWolf join/compare harness
pnpm install
pnpm --filter @yasogan/fingerprint preflight
pnpm --filter @yasogan/fingerprint test:coverage
pnpm typecheck
pnpm --filter @yasogan/fingerprint-demo build
pnpm --filter @yasogan/fingerprint build:wasm
preflight runs the formatter, typecheck, unit tests, and build. CI additionally runs test:coverage (100% of every source file), pubcheck, knip, and audit.
The demo deploys with:
pnpm --filter @yasogan/fingerprint-demo drizzle:generate
pnpm --filter @yasogan/fingerprint-demo d1:migrate
pnpm --filter @yasogan/fingerprint-demo deploy
Status and limits
- The SDK covers the server-side, silent browser JS, anchor, Drizzle/D1, matching, and demo layers.
- The core SDK excludes hardware timing side channels. The opt-in
@yasogan/fingerprint/hardwareaddon returns extra features thatidentify()merges into the same bucket/score and the same visitor ID; the measurements live inexperiments/. - Cross-browser linking is supported through a hardware-class
linkHashand an all-feature weighted score. It returnscrossBrowser: truewith decisionprobable, and keeps both anchors infp_anchors. - The no-JS CSS/HTML probe is a research experiment in
experiments/server-side-probe/, not yet wired into the SDK. - Per-unit hardware identity is not available from browser APIs. Identical models collide; a device-bound key or account is required for unit-level identity.
- Fingerprinting is regulated. Use a lawful basis, disclosure, minimization, retention limits, and a DPIA where required. The demo is a demonstration, not a compliance template.
License
Apache-2.0. See LICENSE.