{"id":42000961,"url":"https://github.com/yusukeshib/express-fingerprint","last_synced_at":"2026-01-26T01:16:50.307Z","repository":{"id":57231817,"uuid":"59668657","full_name":"yusukeshib/express-fingerprint","owner":"yusukeshib","description":"Server-side fingerprinting","archived":false,"fork":false,"pushed_at":"2024-01-10T12:48:38.000Z","size":337,"stargazers_count":137,"open_issues_count":6,"forks_count":28,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-05T10:44:18.478Z","etag":null,"topics":["device","express","fingerprint","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yusukeshib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-25T14:10:03.000Z","updated_at":"2025-10-02T10:25:02.000Z","dependencies_parsed_at":"2024-06-18T13:57:09.977Z","dependency_job_id":"9bdaf5fb-18ce-4288-8e78-db0de11c66c5","html_url":"https://github.com/yusukeshib/express-fingerprint","commit_stats":null,"previous_names":["yusukeshibata/express-fingerprint"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/yusukeshib/express-fingerprint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukeshib%2Fexpress-fingerprint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukeshib%2Fexpress-fingerprint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukeshib%2Fexpress-fingerprint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukeshib%2Fexpress-fingerprint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yusukeshib","download_url":"https://codeload.github.com/yusukeshib/express-fingerprint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukeshib%2Fexpress-fingerprint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28763354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T00:37:26.264Z","status":"ssl_error","status_checked_at":"2026-01-26T00:37:25.959Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["device","express","fingerprint","nodejs"],"created_at":"2026-01-26T01:16:50.235Z","updated_at":"2026-01-26T01:16:50.287Z","avatar_url":"https://github.com/yusukeshib.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fingerprint express middleware\n\nhttps://w3c.github.io/fingerprinting-guidance/#bib-NDSS-FINGERPRINTING\n\u003e Passive fingerprinting is browser fingerprinting based on characteristics observable in the contents of Web requests, without the use of any code executing on the client side.\n\u003e\n\u003e Passive fingerprinting would trivially include cookies (often unique identifiers sent in HTTP requests) and the set of HTTP request headers and the IP address and other network-level information. The User-Agent string, for example, is an HTTP request header that typically identifies the browser, renderer, version and operating system. For some populations, the user agent string and IP address will commonly uniquely identify a particular user's browser.\n\nDefault implementation is `Never trust clients`, So collect only server-side information.\nBut you can push additional parameter with initialization config.\n\n### TODO\nImplement this:\nhttp://research.microsoft.com/pubs/156901/ndss2012.pdf\n\n### Installation\n\n```\nnpm install express-fingerprint\n```\n### Usage\n\n#### As a Express middleware\n\n```javascript\nvar Fingerprint = require('express-fingerprint')\n\napp.use(Fingerprint({\n\tparameters:[\n\t\t// Defaults\n\t\tFingerprint.useragent,\n\t\tFingerprint.acceptHeaders,\n\t\tFingerprint.geoip,\n\n\t\t// Additional parameters\n\t\tfunction(next) {\n\t\t\t// ...do something...\n\t\t\tnext(null,{\n\t\t\t'param1':'value1'\n\t\t\t})\n\t\t},\n\t\tfunction(next) {\n\t\t\t// ...do something...\n\t\t\tnext(null,{\n\t\t\t'param2':'value2'\n\t\t\t})\n\t\t},\n\t]\n}))\n\napp.get('*',function(req,res,next) {\n\t// Fingerprint object\n\tconsole.log(req.fingerprint)\n})\n```\n\nreq.fingerprint object is like below.\n```javascript\n{\n\t\"hash\": \"bd767932c289b92b4de510f4c4d48246\",\n\t\"components\": {\n\t\t\"useragent\": {\n\t\t\t\"browser\": {\n\t\t\t\t\"family\": \"Chrome\",\n\t\t\t\t\"version\": \"50\"\n\t\t\t},\n\t\t\t\"device\": {\n\t\t\t\t\"family\": \"Other\",\n\t\t\t\t\"version\": \"0\"\n\t\t\t},\n\t\t\t\"os\": {\n\t\t\t\t\"family\": \"Mac OS\",\n\t\t\t\t\"major\": \"10\",\n\t\t\t\t\"minor\":\"11\"\n\t\t},\n\t\t\"acceptHeaders\": {\n\t\t\t\"accept\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\",\n\t\t\t\"encoding\": \"gzip, deflate, sdch\",\n\t\t\t\"language\": \"en-US,en;q=0.8\"\n\t\t},\n\t\t\"geoip\": {\n\t\t\t\"country\": \"US\",\n\t\t\t\"resion\": \"CA\",\n\t\t\t\"city\": \"San Francisco\"\n\t\t},\n\t\t\"param1\": \"value1\",\n\t\t\"param2\": \"value2\"\n\t}\n}\n```\n\n\n### List of fingerprinting sources\n\n* User Agent\n* HTTP_ACCEPT Headers\n* GEO-ip\n\n#### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusukeshib%2Fexpress-fingerprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusukeshib%2Fexpress-fingerprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusukeshib%2Fexpress-fingerprint/lists"}