{"id":20728960,"url":"https://github.com/hellojwilde/node-safebrowsing","last_synced_at":"2025-08-19T01:09:59.019Z","repository":{"id":22955116,"uuid":"26304772","full_name":"hellojwilde/node-safebrowsing","owner":"hellojwilde","description":"Client for the Google Safe Browsing API v3.","archived":false,"fork":false,"pushed_at":"2023-06-12T14:59:39.000Z","size":91,"stargazers_count":9,"open_issues_count":3,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-09T12:01:49.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/hellojwilde.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2014-11-07T05:08:24.000Z","updated_at":"2023-06-12T14:59:28.000Z","dependencies_parsed_at":"2024-10-23T08:28:35.487Z","dependency_job_id":null,"html_url":"https://github.com/hellojwilde/node-safebrowsing","commit_stats":{"total_commits":100,"total_committers":1,"mean_commits":100.0,"dds":0.0,"last_synced_commit":"7ffc5231164e07a7f24442b71897c809f04b3f8a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hellojwilde/node-safebrowsing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojwilde%2Fnode-safebrowsing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojwilde%2Fnode-safebrowsing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojwilde%2Fnode-safebrowsing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojwilde%2Fnode-safebrowsing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellojwilde","download_url":"https://codeload.github.com/hellojwilde/node-safebrowsing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojwilde%2Fnode-safebrowsing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271083942,"owners_count":24696411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"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-17T04:40:45.492Z","updated_at":"2025-08-19T01:09:58.996Z","avatar_url":"https://github.com/hellojwilde.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"node-safebrowsing\n=================\n\n[![Build Status](https://travis-ci.org/hellojwilde/node-safebrowsing.svg?branch=master)](https://travis-ci.org/hellojwilde/node-safebrowsing) [![Coverage Status](https://img.shields.io/coveralls/hellojwilde/node-safebrowsing.svg)](https://coveralls.io/r/hellojwilde/node-safebrowsing?branch=master)\n\nThis module is a client for Google Safe Browsing API v3. It aims to be able to synchronize an *offline, encrypted database* of URLs pointing to potentially malicious content, and perform fast lookups against that database.\n\nExample\n-------\n\nFor a taste what the target API is going to look like, check out the very well-commented [example app](https://github.com/hellojwilde/node-safebrowsing/blob/master/example/app.js).\n\nImplementation Progress\n-----------------------\n\n- [x] Swappable persistence [layer](https://github.com/hellojwilde/node-safebrowsing/blob/master/src/caches/RedisCache.js) implemented on top of Redis.\n- [x] Request serializers and response parsers for the API's endpoints for:\n    - [x] [data](https://github.com/hellojwilde/node-safebrowsing/blob/master/src/io/DataRequestType.js),\n    - [x] [data redirects](https://github.com/hellojwilde/node-safebrowsing/blob/master/src/io/DataRedirectRequestType.js), and \n    - [x] [full-length hashes](https://github.com/hellojwilde/node-safebrowsing/blob/master/src/io/FullHashRequestType.js).\n- [x] Fetch methods wrapping the above and the persistence layer to perform synchronization operations.\n- [x] URL canonicalizer, with proper support for encoding IDNs. *Need further tests.*\n- [x] Lookup expression generator, to create the different variants of canonicalized URLs to hash and match against hash prefixes and full-length hashes.\n- [x] `Fetcher` class to schedule data fetches from the API. It should automatically fetch data at specified intervals, obey backoff constraints, and where possible batch full-length hash requests. *Need further tests.*\n- [x] `Matcher` and `MatchResults` classes, to wrap the URL canonicalizer, lookup expression generator, and persistence layer to cleanly perform lookups. *Need further tests.*\n\nLicense\n-------\n\n[MIT](https://github.com/hellojwilde/node-safebrowsing/blob/master/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellojwilde%2Fnode-safebrowsing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellojwilde%2Fnode-safebrowsing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellojwilde%2Fnode-safebrowsing/lists"}