{"id":42169256,"url":"https://github.com/fingerprintjs/flow-cloudflare-worker","last_synced_at":"2026-01-26T21:23:11.103Z","repository":{"id":329329966,"uuid":"1062519546","full_name":"fingerprintjs/flow-cloudflare-worker","owner":"fingerprintjs","description":"Cloudflare Worker for Flow.","archived":false,"fork":false,"pushed_at":"2026-01-22T11:55:32.000Z","size":1488,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-22T17:17:15.499Z","etag":null,"topics":["audio-fingerprinting","browser","browser-fingerprint","browser-fingerprinting","detection","device-intelligence","fingerprint","fingerprinting","fingerprintjs","fingerprintjs-pro","fraud","fraud-detection","identification","visitor-identifier"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fingerprintjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-23T11:12:27.000Z","updated_at":"2026-01-22T11:54:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fingerprintjs/flow-cloudflare-worker","commit_stats":null,"previous_names":["fingerprintjs/flow-cloudflare-worker"],"tags_count":10,"template":false,"template_full_name":"fingerprintjs/library-template-typescript","purl":"pkg:github/fingerprintjs/flow-cloudflare-worker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fingerprintjs%2Fflow-cloudflare-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fingerprintjs%2Fflow-cloudflare-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fingerprintjs%2Fflow-cloudflare-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fingerprintjs%2Fflow-cloudflare-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fingerprintjs","download_url":"https://codeload.github.com/fingerprintjs/flow-cloudflare-worker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fingerprintjs%2Fflow-cloudflare-worker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28788369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:13:08.818Z","status":"ssl_error","status_checked_at":"2026-01-26T21:13:08.448Z","response_time":59,"last_error":"SSL_read: 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":["audio-fingerprinting","browser","browser-fingerprint","browser-fingerprinting","detection","device-intelligence","fingerprint","fingerprinting","fingerprintjs","fingerprintjs-pro","fraud","fraud-detection","identification","visitor-identifier"],"created_at":"2026-01-26T21:23:08.617Z","updated_at":"2026-01-26T21:23:11.086Z","avatar_url":"https://github.com/fingerprintjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://fingerprint.com\"\u003e\n    \u003cpicture\u003e\n     \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://fingerprintjs.github.io/home/resources/logo_light.svg\" /\u003e\n     \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://fingerprintjs.github.io/home/resources/logo_dark.svg\" /\u003e\n     \u003cimg src=\"https://fingerprintjs.github.io/home/resources/logo_dark.svg\" alt=\"Fingerprint logo\" width=\"312px\" /\u003e\n   \u003c/picture\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/fingerprintjs/flow-cloudflare-worker/actions/workflows/build.yml\"\u003e\u003cimg src=\"https://github.com/fingerprintjs/flow-cloudflare-worker/actions/workflows/build.yml/badge.svg\" alt=\"Build status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://fingerprintjs.github.io/flow-cloudflare-worker/coverage/\"\u003e\u003cimg src=\"https://fingerprintjs.github.io/flow-cloudflare-worker/coverage/badges.svg\" alt=\"coverage\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/fingerprintjs/flow-cloudflare-worker/actions/workflows/release.yml\"\u003e\u003cimg src=\"https://github.com/fingerprintjs/flow-cloudflare-worker/actions/workflows/release.yml/badge.svg\" alt=\"Release status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/:license-mit-blue.svg\" alt=\"MIT license\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://fingerprintjs.github.io/flow-cloudflare-worker/docs/\"\u003e\u003cimg src=\"https://img.shields.io/badge/-Documentation-green\" alt=\"Documentation\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Flow Cloudflare Worker\n\nCloudflare Worker for Fingerprint Flow.\n\n\u003e ⚠️ **Work in progress**: This is a beta version of the Flow Cloudflare Worker.\n\n## Requirements\n\n* [Fingerprint account](https://dashboard.fingerprint.com/signup) with the _Editor_ role assigned (or any role with _Edit configuration_ permission).\n* A website served by Cloudflare. For maximum accuracy benefits, your website should be [proxied by Cloudflare](https://developers.cloudflare.com/dns/manage-dns-records/reference/proxied-dns-records/) (not DNS-only).\n\n## Deploying\n\nTo use Fingerprint Flow, please deploy an instance of this worker [using the Fingerprint dashboard](https://dev.fingerprint.com/docs/rules-engine-and-flow-deployments-beta).\n\n## Configuration\n\nThe worker is configured using a `wrangler.jsonc` file. An example file `wrangler.example.jsonc` is provided in the repository.\n\n### Variables\n\n-   `FP_REGION`: The Fingerprint region to use. Can be `us`, `eu`, or `ap`.\n-   `WORKER_ROUTE_PREFIX`: A prefix for specific routes handled by the worker. This is used to avoid conflicts with other routes on the same domain.\n-   `FP_PUBLIC_KEY`: Your Fingerprint public key.\n-   `FP_SECRET_KEY`: Your Fingerprint secret key.\n-   `FP_RULESET_ID`: Your Fingerprint ruleset ID.\n    -   If not provided, the worker will default to a \"monitor mode\" where it still identifies the visitor for any request to `PROTECTED_APIS` but does not evaluate a ruleset for those requests.\n-   `PROTECTED_APIS`: An array of APIs to protect with Fingerprint. Each object in the array should have a `method` and `url` property. The `url` pattern cannot be relative but it can contain wildcards.\n    - Example: `[ { method: 'POST', url: 'https://example.com/sign-up/*' }]`\n-   `IDENTIFICATION_PAGE_URLS`: An array of url patterns that cannot be relative but can contain wildcards where the Fingerprint identification script should be injected. \n    - Example: `[ 'https://example.com/login', 'https://example.com/signup/*' ]` \n\n## Architecture\n\n### Worker\n\nThe Worker is a Cloudflare Worker that acts as a reverse proxy. Its main responsibilities are:\n- Injecting the instrumentor and agent loader scripts on pages matching `IDENTIFICATION_PAGE_URLS`.\n- Proxying Fingerprint API requests made by the JavaScript agent.\n- When a request to `PROTECTED_APIS` are made, the worker reads signals injected by the instrumentor and sends a request to the Fingerprint Identification API. The API returns a specific action (e.g., allow/block) for the worker to take to with the protected API request.\n\nThe entry point for the worker is `src/worker/index.ts`.\n\n### Instrumentor\n\nThe Instrumentor is a script that is injected into the page by the worker. It patches the `fetch` function to automatically add Fingerprint headers to protected API requests. The entry point for the instrumentor is `src/scripts/instrumentor/index.ts`.\n\nThe Instrumentor code is bundled and included in the Worker binary during the build process.\n\n### Agent data processor\n\nLocated in `src/scripts/agent-data-processor/index.ts`, the Agent data processor is responsible for processing the data returned by the Fingerprint Identification API.\nIt is used for the HTML forms that are not sent via `fetch` or `XMLHttpRequest`. After the form is submitted, if it's `action` is listed in protected APIs, the agent processor script will be injected into the response to process agent data received from the initial identification request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffingerprintjs%2Fflow-cloudflare-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffingerprintjs%2Fflow-cloudflare-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffingerprintjs%2Fflow-cloudflare-worker/lists"}