{"id":19247291,"url":"https://github.com/murtuzaalisurti/browser-fingerprint-react","last_synced_at":"2026-06-13T06:33:08.374Z","repository":{"id":218345076,"uuid":"743631300","full_name":"murtuzaalisurti/browser-fingerprint-react","owner":"murtuzaalisurti","description":"using fingerprintjs","archived":false,"fork":false,"pushed_at":"2024-03-18T04:26:38.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-14T06:31:49.001Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/murtuzaalisurti.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":"2024-01-15T16:42:22.000Z","updated_at":"2024-01-21T09:40:31.000Z","dependencies_parsed_at":"2024-02-03T18:26:57.651Z","dependency_job_id":"99b12ab0-d5fb-4b0b-8788-9a2c77bafa63","html_url":"https://github.com/murtuzaalisurti/browser-fingerprint-react","commit_stats":null,"previous_names":["murtuzaalisurti/browser-fingerprint-react"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/murtuzaalisurti/browser-fingerprint-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murtuzaalisurti%2Fbrowser-fingerprint-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murtuzaalisurti%2Fbrowser-fingerprint-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murtuzaalisurti%2Fbrowser-fingerprint-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murtuzaalisurti%2Fbrowser-fingerprint-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murtuzaalisurti","download_url":"https://codeload.github.com/murtuzaalisurti/browser-fingerprint-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murtuzaalisurti%2Fbrowser-fingerprint-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34275068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-09T17:37:03.622Z","updated_at":"2026-06-13T06:33:08.357Z","avatar_url":"https://github.com/murtuzaalisurti.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Browser fingerprint generation in React\n\n\u003e using [fingerprintJS](https://fingerprint.com/)\n\n## Clone the project\n\n- Fork the repo\n- Clone this repo using HTTPS by doing `git clone https://github.com/\u003cyour_github_username\u003e/browser-fingerprint-react.git`.\n\n## Environment Variables\n\nThis project uses Vite. Vite requires you to prefix your environment variables with `VITE_` to be able to expose to the frontend. Variables which are only to be used at the backend, don't need a prefix.\n\nCreate a `.env` file at the root of the project where you can set your environment variables. An example env file has already been created for you (`.env.example`).\n\n### Getting env variables\n\nThere are four env variables you need:\n\n```env\nVITE_FPJS_API_KEY=your_public_api_key\nSERVER_FPJS_API_KEY=your_secret_server_key\nVITE_FPJS_REGION=your_fpjs_region\nFPJS_REGION=your_fpjs_region\n```\n\n1. You can get the public API key for your application from the Fingerprint dashboard by navigating to **App Settings**, selecting the **API Keys** tab, and locating it under the **Public Keys** section. Set it against `VITE_FPJS_API_KEY`.\n\n![Fingerprint dashboard](https://i.imgur.com/BGuAwH7.png)\n\n2. To get the server API secret key, go to `Dashboard \u003e App Settings \u003e API Keys \u003e Secret Keys`. Set it against `SERVER_FPJS_API_KEY`.\n\n![Server API key](https://i.imgur.com/HEIdxX3.png)\n\n3. For `VITE_FPJS_REGION` and `FPJS_REGION`, specify the region you selected during registration. For example, `eu` or `ap`.\n\n## What is it about\n\nThis repo contains a simple authentication project using fingerprinting provided by FingerprintJS. It shows you how you can generate a unique fingerprint in the browser using React and also, it has examples to some common server side validations which you can perform when using fingerprinting.\n\n## Run it locally\n\nStart the server\n\n\u003e npm run app:server\n\nIt will be live at port `5000`.\n\n---\n\nRun React\n\n\u003e npm run app:client\n\nThe app should start at port `3000`.\n\nNavigate to the **Sign Up** page and try to register as a user:\n\n![Sign-up](https://i.imgur.com/EC84RI9.png)\n\nOn successful sign-up, you will be redirected to the dashboard page:\n\n![Dashboard](https://i.imgur.com/iyRRA6n.png)\n\nIf you try to sign up again with the same username, you won't be able to because of the `visitorId` validation on the server. Log in to go to the dashboard again.\n\n![Sign-up failed](https://i.imgur.com/cApx6TV.png)\n\nYou can also try this in an incognito window. The sign-up would still fail because fingerprinting isn't affected by incognito mode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurtuzaalisurti%2Fbrowser-fingerprint-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurtuzaalisurti%2Fbrowser-fingerprint-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurtuzaalisurti%2Fbrowser-fingerprint-react/lists"}