🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@glasswatch/collector

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glasswatch/collector

Outside-in client-side scan engine: scripts, third parties, headers, trackers, vulnerable libraries, tech stack, and a risk grade.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@glasswatch/collector

Outside-in client-side scan engine. Point it at a URL and get a structured report of what runs on the page and how risky it is — scripts and their origins, third-party network destinations, security headers, cookies and trackers, known-vulnerable libraries, tech stack, and an A–F risk grade.

Part of the Glasswatch project. Apache-2.0.

Requirements

  • Node.js ≥ 20.

  • Chromium for Playwright. The collector drives a headless Chromium browser, which is downloaded separately from the npm package. Run this once after installing (and on CI):

    npx playwright install chromium
    

    Without it, the first scan fails with a "browser not found" error.

CLI

npx @glasswatch/collector https://example.com

Prints a JSON ScanResult.

Library

import { scan } from "@glasswatch/collector";

const result = await scan("https://example.com", { enforceSsrfGuard: true });
console.log(result.grade.letter, result.trackers);

Security: when scanning untrusted, user-supplied URLs on shared infrastructure, always pass { enforceSsrfGuard: true } to refuse private/loopback/metadata targets.

Detection rules

The seed datasets in data/ (trackers.json, known-vulns.json, fingerprints.json) are intentionally small and community-maintainable. Contributions that expand coverage are welcome.

Keywords

security

FAQs

Package last updated on 02 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts