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

safe-link-checker

v1.1.0

Published

Enterprise-grade URL Intelligence Engine

Readme

Safe Link Checker 🛡️

npm version License: MIT

An enterprise-grade, lightning-fast Universal URL Intelligence SDK. SafeLinkChecker protects against phishing, malware, SSRF bypasses, DNS rebinding, and malicious payloads. It works seamlessly across Node.js, React Native, Browser, Next.js, Electron, Bun, and Deno with a unified API.

Features ✨

  • Write Once, Run Anywhere: Automatically detects the runtime environment to serve the best implementation.
  • Frontend Verification: React Native, Expo, and Web Apps execute fast local checks (URL extraction, punycode, homographs, regex rules) in <10ms.
  • Backend Verification: Node.js/Bun servers enrich analysis with deep network checks (DNS rebinding, HTTPS certificates, redirect tracing) and Threat Intelligence Providers (URLHaus, OpenPhish).
  • Consensus & Policy Engine: Configurable policies calculate trust scores and decide actions (allow, warn, block).

Installation 📦

npm install safe-link-checker

One package. Installs the correct bundle for your platform automatically.

Compatibility Matrix 📊

| Feature \ Platform | Node.js / Bun | React Native / Expo | Browser / Web | |:---|:---:|:---:|:---:| | URL Normalization | ✅ | ✅ | ✅ | | URL Extraction | ✅ | ✅ | ✅ | | Regex / Heuristics | ✅ | ✅ | ✅ | | Homograph / Punycode| ✅ | ✅ | ✅ | | Private IP / SSRF | ✅ | ✅ | ✅ | | Explainable Scoring | ✅ | ✅ | ✅ | | Cache Engine | ✅ | ✅ | ✅ | | DNS Lookup | ✅ | ❌ | ❌ | | HTTPS Certificate | ✅ | ❌ | ❌ | | Redirect Tracing | ✅ | ❌ | ❌ | | Threat Providers | ✅ | ❌ | ❌ |

Quick Start 🚀

In Node.js / Backend

import { SafeLinkChecker, verifyLink } from 'safe-link-checker';

// Uses Node.js networking, DNS, and Threat Intelligence automatically
const checker = new SafeLinkChecker({
  providers: ['urlhaus', 'openphish'],
  cache: true,
  checkHttps: true,
});

const result = await checker.verify('https://example.com');
console.log(result.runtime); // 'node'
console.log(result.decision); // 'allow'
console.log(result.capabilities.performed); // ['UrlValidation', 'HttpsValidation', ...]

In React Native / Browser (e.g. Chat Composer)

import { SafeLinkChecker, extractUrls } from 'safe-link-checker';

// Fast local execution - blocks obvious threats before they are sent
const checker = new SafeLinkChecker();

const text = "Check this out: http://google.com and http://evil.com/exe";
const urls = extractUrls(text);

const results = await checker.verifyLinks(urls);
const blockedUrls = results.filter(r => r.decision === 'block');

if (blockedUrls.length > 0) {
    alert('Malicious link detected! Please remove before sending.');
}

Result Model

Both runtimes return the exact same structured result format:

{
    url: 'https://evil.com',
    safe: false,
    decision: 'block',
    score: 100,
    confidence: 90,
    riskLevel: 'DANGEROUS',
    summary: 'Detected suspicious patterns.',
    action: 'block',
    runtime: 'react-native',
    capabilities: {
      performed: ['UrlValidation', 'Punycode', 'Heuristics'],
      skipped: ['dns', 'certificate', 'redirect_trace']
    }
}

Security 🔒

Please review our Security Policy for reporting vulnerabilities.

License 📄

MIT © 2026 Rajeev Choudhary