{"id":20118403,"url":"https://github.com/hckhanh/google-safe-browsing","last_synced_at":"2026-06-05T18:31:50.382Z","repository":{"id":225300940,"uuid":"765611068","full_name":"hckhanh/google-safe-browsing","owner":"hckhanh","description":"A JavaScript client for Google Safe Browsing API","archived":false,"fork":false,"pushed_at":"2026-05-23T04:12:26.000Z","size":248,"stargazers_count":1,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-23T06:26:11.947Z","etag":null,"topics":["api","browser","browsing","cloud","google","safe","safe-browsing","safety","server","web","website"],"latest_commit_sha":null,"homepage":"https://jsr.io/@hckhanh/google-safe-browsing","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/hckhanh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-01T09:10:47.000Z","updated_at":"2025-11-12T16:07:07.000Z","dependencies_parsed_at":"2024-03-01T10:20:22.710Z","dependency_job_id":"c494dfa5-dfa9-4244-821b-e69f6619d2d5","html_url":"https://github.com/hckhanh/google-safe-browsing","commit_stats":null,"previous_names":["hckhanh/google-safe-browsing"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/hckhanh/google-safe-browsing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hckhanh%2Fgoogle-safe-browsing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hckhanh%2Fgoogle-safe-browsing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hckhanh%2Fgoogle-safe-browsing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hckhanh%2Fgoogle-safe-browsing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hckhanh","download_url":"https://codeload.github.com/hckhanh/google-safe-browsing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hckhanh%2Fgoogle-safe-browsing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33953676,"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-05T02:00:06.157Z","response_time":120,"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":["api","browser","browsing","cloud","google","safe","safe-browsing","safety","server","web","website"],"created_at":"2024-11-13T19:10:41.080Z","updated_at":"2026-06-05T18:31:50.360Z","avatar_url":"https://github.com/hckhanh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# google-safe-browsing [![JSR](https://jsr.io/badges/@hckhanh/google-safe-browsing)](https://jsr.io/@hckhanh/google-safe-browsing)\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=hckhanh_google-safe-browsing\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=hckhanh_google-safe-browsing)\n\nA JavaScript client for [Google Safe Browsing](https://safebrowsing.google.com) [API](https://developers.google.com/safe-browsing)\n\n## Features\n\n- [Zero dependencies](https://jsr.io/@hckhanh/google-safe-browsing/dependencies)\n- Built-in support for Edge runtime\n- Typesafe with TypeScript\n- Supports some common cases\n- Fully documented\n\n## APIs\n\n### threatMatches.find\n\nFinds the threat entries that match the Safe Browsing lists.\n\n```ts\nimport { GoogleSafeBrowsing } from '@hckhanh/google-safe-browsing'\n\nconst client = new GoogleSafeBrowsing('apiKey')\n\nconst result = await client.findThreatMatches({\n  client: {\n    clientId: 'uniqueClientId',\n    clientVersion: '1.0.0',\n  },\n  threatInfo: {\n    threatTypes: ['MALWARE', 'SOCIAL_ENGINEERING'],\n    platformTypes: ['ALL_PLATFORMS'],\n    threatEntryTypes: ['URL'],\n    threatEntries: [\n      { url: 'http://malware.testing.google.test/testing/malware/' },\n    ],\n  },\n})\n\nconst hasRisk = result.matches !== undefined \u0026\u0026 result.matches.length \u003e 0\n```\n\n## Release Notes\n\nYou can go to the [Releases](https://github.com/hckhanh/google-safe-browsing/releases) page to see the release notes.\n\n\u003e [!NOTE]\n\u003e Enables client applications to check web resources (most commonly URLs)\n\u003e against Google-generated lists of unsafe web resources.\n\u003e The Safe Browsing APIs are for non-commercial use only.\n\u003e If you need to use APIs to detect malicious URLs for commercial purposes –\n\u003e meaning “for sale or revenue-generating purposes” –\n\u003e please refer to the [Web Risk API](https://github.com/hckhanh/google-web-risk).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhckhanh%2Fgoogle-safe-browsing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhckhanh%2Fgoogle-safe-browsing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhckhanh%2Fgoogle-safe-browsing/lists"}