New:Socket for Asana Is Now Available.Learn more
Get Started

@kpanks/scrape

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

@kpanks/scrape

Praetor scrape pack — native HTTP client (no third-party fetch lib), JSON-LD extractor, sitemap walker, X.com syndication endpoint, robots-aware. Crawl4AI / Playwright / Firecrawl are optional opt-in adapters.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@kpanks/scrape

Native scraping for Praetor charters. SSRF-safe HTTP client by default (blocks RFC1918, 169.254.x cloud metadata, link-local, IPv4-mapped loopback), JSON-LD extractor, sitemap walker, X.com syndication path, robots.txt-aware. Crawl4AI / Playwright / Firecrawl ship as opt-in adapters; the native fetch path is the default.

Install

npm install @kpanks/scrape

Usage

import { Scraper, FetchAdapter } from "@kpanks/scrape";

const scraper = new Scraper();
const r = await scraper.scrape({ url: "https://example.com" });
// r.body, r.text (readable extraction), r.jsonLd, r.evidence, r.warnings

SSRF guard

nativeHttpFetch denies internal targets by default. Each redirect's Location is re-validated; Cookie / Authorization / x-csrf-token are stripped on cross-origin redirects. Set allowInternal: true on the request to opt in for legitimate localhost dev work.

Backends

BackendWhen
fetchDefault. Static HTML, JSON, sitemaps, robots, llms.txt.
crawl4aiJS-rendered pages via self-hosted Crawl4AI service.
playwrightWhen you bring your own Playwright launcher.
playwright-mcpBridge to a running playwright-mcp server.
firecrawlPaid escape hatch; charges through MnemoPay.

License

Apache 2.0.

Keywords

scrape

FAQs

Package last updated on 05 May 2026

Related posts