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

@fast-scrape/node

v0.2.0

Published

High-performance HTML parsing library for Node.js

Readme

@fast-scrape/node

npm Node.js TypeScript License

10-50x faster HTML parsing for Node.js. Rust-powered, Cheerio-compatible API.

Installation

npm install @fast-scrape/node
yarn add @fast-scrape/node
pnpm add @fast-scrape/node
bun add @fast-scrape/node

[!NOTE] Includes TypeScript definitions. No separate @types package needed.

Quick start

import { Soup } from '@fast-scrape/node';

const soup = new Soup("<html><body><div class='content'>Hello, World!</div></body></html>");

const div = soup.find("div");
console.log(div.text);  // Hello, World!

Usage

import { Soup } from '@fast-scrape/node';

const soup = new Soup(html);

// Find first element by tag
const div = soup.find("div");

// Find all elements
const divs = soup.findAll("div");

// CSS selectors
for (const el of soup.select("div.content > p")) {
    console.log(el.text);
}
const element = soup.find("a");

const text = element.text;                    // Get text content
const html = element.innerHTML;               // Get inner HTML
const href = element.getAttribute("href");    // Get attribute
import { Soup } from '@fast-scrape/node';

// Process multiple documents in parallel
const documents = [html1, html2, html3];
const soups = Soup.parseBatch(documents);

for (const soup of soups) {
    console.log(soup.find("title")?.text);
}

[!TIP] Use parseBatch() for multiple documents. Uses all CPU cores via native threads.

Full TypeScript support with exported types:

import { Soup, Tag, type SoupOptions } from '@fast-scrape/node';

function extractLinks(soup: Soup): string[] {
    return soup.select("a[href]").map(a => a.getAttribute("href") ?? "");
}

Requirements

  • Node.js >= 18
  • Platforms: macOS (arm64, x64), Linux (x64, arm64, musl), Windows (x64)

Performance

v0.2.0 improvements:

  • SIMD-accelerated — Class selector matching 2-10x faster on large documents
  • Zero-copy serialization — 50-70% memory reduction in HTML output
  • Batch processingSoup.parseBatch() parallelizes across all CPU cores
  • Trait abstractions — 45% simpler binding code via ElementFilter iterators

Built on Servo

Powered by battle-tested libraries from the Servo browser engine: html5ever (HTML5 parser) and selectors (CSS selector engine).

Related packages

| Platform | Package | |----------|---------| | Rust | scrape-core | | Python | fast-scrape | | WASM | @fast-scrape/wasm |

License

MIT OR Apache-2.0