npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

google-transparency-report

v0.1.0

Published

TypeScript client for Google Transparency Report Safe Browsing status endpoint.

Readme

google-transparency-report

NPM

TypeScript client for the Google Transparency Report Safe Browsing status endpoint.

Install

npm install google-transparency-report

Usage

import { getSafeBrowsingStatus } from "google-transparency-report";

const result = await getSafeBrowsingStatus("google.com");
console.log(result);

getSafeBrowsingStatus(site) returns null when there is no data, or:

{
  status: "no_unsafe_content" | "unsafe" | "some_unsafe" | "too_large" | "hosts_uncommon_downloads" | "no_data" | "unknown",
  status_description: string,
  is_safe: boolean,
  flag_harmful_redirects: boolean,
  flag_installs_malicious_software: boolean,
  flag_phishing: boolean,
  flag_hosts_malicious_software: boolean,
  flag_uncommon_downloads: boolean,
  last_updated_ms: number,
  site: string
}

Google API details

Endpoint (undocumented):

GET https://transparencyreport.google.com/transparencyreport/api/v3/safebrowsing/status?site=example.com

The server responds with an XSSI prefix line ()]}') followed by JSON. The JSON is an array, typically with a single row shaped like:

[
  [
    "sb.ssr",
    1,                 // status_code
    false,             // harmful redirects
    false,             // installs malicious/unwanted software
    false,             // phishing / social engineering
    false,             // hosts malicious/unwanted software
    false,             // uncommon downloads
    1769421466644,     // last updated (ms since epoch)
    "example.com"      // scanned site
  ]
]

Status code meaning:

  • 1: No unsafe content found
  • 2: This site is unsafe
  • 3: Some pages on this site are unsafe
  • 4: Large site with mixed content
  • 5: Hosts files not commonly downloaded
  • 6: No available data

Notes

  • This endpoint is undocumented (see community notes here).
  • This module was built in response to Jesse Jacob Nickles harassing many domains and falsely reporting them as malware and phishing sites.
  • Unfortunately VirusTotal does not ingest Google Transparency Report data, so a reliable API client helps access this information.