Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@trap_stevo/linkscope

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trap_stevo/linkscope

Unleash legendary link intelligence—instantly extract Open Graph, Twitter Card, and metadata from any URL using adaptive scraping logic and real browser simulation. Feed raw text, batch URLs, or scoped domains—parse, adapt, and reveal the hidden web behin

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

🔍 LinkScope

Reveal the Web Behind the Link.

Unleash legendary link intelligence—instantly extract Open Graph, Twitter Card, and metadata from any URL using adaptive scraping logic and real browser simulation. Feed raw text, batch URLs, or scoped domains—parse, adapt, and reveal the hidden web behind any link. Designed for creators, analysts, bots, and platforms seeking total control over link understanding at scale.

✨ Features

  • Instant Metadata Extraction – Pull Open Graph, Twitter Card, favicon, charset, and raw meta tags
  • 🌐 Multi-Link Support – Scope many URLs or raw text blocks with concurrency
  • 🕵️‍♂️ Stealth Mode – Built-in browser fingerprint obfuscation
  • 🌍 Proxy Support – Route requests through your own proxy server
  • 🔧 Protocol Filtering – Support for custom protocol allowlists
  • 🧠 Raw Text Extraction – Automatically detect links in unstructured messages
  • 🔄 Fallback Precision – Automatically fall back to full-page render scraping when blocked
  • 🧩 Modular Logic – Integrate with any pipeline or platform needing metadata insights

⚙️ System Requirements

RequirementVersion
Node.js≥ 19.x
npm≥ 9.x (recommended)
OSWindows, macOS, Linux

⚙️ Configurations

OptionTypeDefaultDescription
allowedProtocolsstring[][ "http:", "https:" ]Protocol allowlist (e.g., support for ipfs: etc.)
proxystringundefinedProxy server URL
concurrencynumber5Max parallel requests (used in scopeMany)

📘 API Specifications

MethodDescriptionAsync
scopeLink(url, options?)Extracts metadata from a single URL, with fallback browser scraping logic
scopeMany(urls, options?)Scopes multiple URLs concurrently with retry and normalization support
scopeText(rawText, options?)Extracts URLs from raw text and runs them through scopeMany

Options

All methods accept the following optional configuration:

OptionTypeDescription
proxystringRoute all scraping and browser requests through a proxy
allowedProtocolsstring[]Whitelist specific protocols (defaults to http: and https:)
concurrencynumberMax number of concurrent scrapes in scopeMany or scopeText

Return Types

scopeLink(url, options?) → MetadataResultObject

Returns a rich object with Open Graph, Twitter Card, favicon, charset, raw meta tags, and request metadata.

scopeMany(urls, options?) → Array<{ url, status, data | error }>

Returns an array of results, preserving the input order:

  • status: "fulfilled" or "rejected"
  • data: MetadataResultObject (on success)
  • error: Error string (on failure)

scopeText(rawText, options?) → Same as scopeMany

Extracts all valid URLs from a block of text and delegates to scopeMany.

🧪 MetadataResultObject

Each fulfilled result includes:

FieldDescription
scopeTargetFinal resolved URL after redirects
ogTitleOpen Graph title
ogDescriptionOpen Graph description
ogTypeOpen Graph type
ogUrlOpen Graph canonical URL
ogImageArray of Open Graph image URLs
ogVideoOpen Graph video URL
ogAudioOpen Graph audio URL
twitterCardTwitter Card type
twitterTitleTwitter title
twitterDescriptionTwitter description
twitterImageTwitter image URL
twitterPlayerTwitter video player URL
faviconPage favicon URL
charsetPage character set
requestHeadersHeaders used in successful fetch
allRawMetaTagsKey-value map of all detected meta tags
successWhether the scrape succeeded
errorError message if failed

🚀 Getting Started

📦 Installation

npm install @trap_stevo/linkscope

🔗 Single URL

const LinkScope = require("@sclpowerful/linkscope");

const data = await LinkScope.scopeLink("https://example.com");
console.log(data);

📄 Raw Text with Multiple URLs

const rawText = `
     Check these: https://openai.com and https://instagram.com
`;

const results = await LinkScope.scopeText(rawText);

🌐 Multiple URLs with Concurrency + Proxy

const urls = ["https://example.com", "https://another.com"];

const results = await LinkScope.scopeMany(urls, {
     concurrency: 5,
     proxy: "http://your-proxy:8080"
});

📜 License

See License in LICENSE.md

Keywords

Legendary

FAQs

Package last updated on 09 Jul 2025

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