Browser Fingerprinting on GitHub: Tools and Demos
In this article
Searching GitHub for browser fingerprinting turns up open-source libraries that collect the signals websites use to identify a device, plus demo pages that show your own fingerprint. The most direct way in is to search GitHub for the term, then run a library's live demo in your browser to see what data leaks.
Time 8 min · Steps 7 · Level Medium
Most people assume browser fingerprinting needs cookies or some hidden file planted on your machine. In reality it works from the ordinary details your browser hands to every site it visits, which is exactly why the open-source code on GitHub is so useful: you can read, run and test it yourself instead of taking anyone's word for what is collected.
What the Main Projects Do
GitHub hosts a small set of well-known fingerprinting projects, and knowing which is which saves you an hour of confused browsing. FingerprintJS is the most starred open-source library in this space; it gathers dozens of browser attributes and hashes them into a visitor identifier. Its source code and an older open version are on GitHub, and the company behind it also runs a commercial product. Beyond that, you will find smaller libraries that collect individual signals, such as canvas-drawing tests, audio-context probes, font enumeration and WebGL renderer strings, plus research repositories that publish fingerprinting datasets and detection papers.
Each repository usually splits into three parts: the collection code that reads browser properties, the hashing step that turns them into a stable identifier, and a demo page or test suite showing the output. Reading the collection code first is the fastest way to understand the technique, because every signal it uses is something your browser already exposes through standard JavaScript APIs.
How to Explore It Yourself
- Search GitHub directly. Go to github.com and search for "browser fingerprinting", then filter by language (JavaScript and TypeScript dominate) and sort by stars to surface the maintained projects first.
- Read the collection module. Open the source file that lists the signals, such as user agent, screen dimensions, timezone, installed fonts, canvas hash and audio fingerprint. Every entry maps to a standard browser API.
- Run the live demo. Most projects link a hosted demo page. Load it in your normal browser and note the identifier it produces.
- Compare across browsers. Open the same demo in a second browser on the same machine; a different identifier means the signals differ enough to separate them.
- Test a privacy browser. Repeat in a browser or profile with anti-fingerprinting protections enabled and see whether the identifier changes between sessions.
- Check the licence. Open-source fingerprinting libraries range from permissive licences to ones restricting commercial use; the licence file in each repository states what you may build with the code.
- Clone and modify. Download the repository, remove or add individual signals, and re-run the tests to see how each one changes the resulting identifier.
The Numbers Behind a Fingerprint
A fingerprint is built from many small signals, and the strength of it comes from combining them. A single attribute like screen resolution has only a handful of common values, but stack it with timezone, language, installed fonts, canvas rendering differences and hardware details, and the combination becomes distinctive on a machine with an ordinary setup. A typical open-source library collects on the order of 30 to 70 signals, and the whole fingerprinting check usually completes in well under a second on a normal connection, since it is mostly reading local browser properties rather than downloading anything large.
Here is a worked example of how the combination works. Suppose your browser reports a screen resolution shared by many users, a timezone shared by millions, and a language shared by hundreds of millions. Individually none of these identifies you. But the canvas test is subtler: the same graphics code renders slightly differently across GPU and driver combinations, so its hash splits the population into much smaller groups. When the library hashes all signals together, one changed input, such as switching your system timezone, produces a completely different identifier, because the hash mixes every input at once. That is also why fingerprints are fragile in one sense and sticky in another: they change when your setup changes, but they survive cookie clearing entirely.
What Changes Your Fingerprint
Anything that alters the values your browser reports changes the identifier. Updating your operating system or GPU drivers can shift the canvas and WebGL hashes. Changing screen resolution, system language or timezone alters those signals directly. A browser with fingerprinting protections works differently: instead of changing your values, it tries to make many users report identical values, so the whole group shares one bland fingerprint. The trade-off is that a maximally generic configuration can itself stand out if few people run it, which is why these protections aim for consistency across their user base rather than uniqueness per user.
One Misconception Worth Correcting
The common belief is that clearing cookies, using private browsing mode or switching to a fresh profile defeats fingerprinting. The accurate fact is that none of those touch the underlying signals, because fingerprinting never stores anything on your device; it reads what your browser volunteers on each visit. Private mode mainly stops local history and cookies, while the fingerprint persists across it. The practical countermeasures are browsers that normalise reported values, blocking or limiting JavaScript on sites you do not trust, and separating your browsing into different browser applications rather than different profiles of the same one.
Using the Code Responsibly
If you plan to build with a fingerprinting library rather than just study it, two things matter. First, in many jurisdictions collecting device identifiers for tracking falls under data-protection rules, so check how the rules in your region treat visitor identification before deploying it on a public site. Second, respect the licence: the popular open-source versions often permit personal and evaluation use while placing conditions on commercial identification services, and the repository's licence file is the authoritative statement. For learning purposes, running the demos and reading the source is unrestricted and is the best way to see the technique clearly.
Labels and file names in these repositories change between versions, so treat the file paths above as approximate and use the repository's own documentation as your map. If a demo page will not load, the repository's README usually links an alternative hosted version.
Official source: GitHub Docs