
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
@firecrawl/html-extractor
Advanced tools
Fast HTML main-content extractor with Node.js bindings. Native Rust performance via napi-rs.
Fast HTML main-content extractor for Node.js / Bun. Native Rust performance via napi-rs.
Pulls the article body out of a raw HTML page and renders it as clean markdown — stripping nav, footers, related-stories rails, ads, and other site chrome. Page-type aware (article, forum, product, listing, documentation, etc.), with a per-extraction confidence score and harvested metadata (JSON-LD, OpenGraph, microformats).
Built by Firecrawl. Source: github.com/firecrawl/html-extractor.
npm install @firecrawl/html-extractor
# or
bun add @firecrawl/html-extractor
Prebuilt binaries included for linux-x64, macOS ARM64, and windows-x64. No Rust toolchain needed.
import { extract } from '@firecrawl/html-extractor'
const html = await fetch('https://example.com/article').then(r => r.text())
const result = await extract(html, { url: 'https://example.com/article' })
console.log(result.markdown) // cleaned article as markdown
console.log(result.pageType) // 'article' | 'forum' | 'product' | ...
console.log(result.extractionQuality) // 0.0..1.0 confidence
console.log(result.metadata?.title) // 'How to do the thing'
extract(html, options?): Promise<ExtractResult>Asynchronous extraction. CPU work runs on a libuv worker thread, so the Node event loop isn't blocked for large pages. Prefer this for production use.
extractSync(html, options?): ExtractResultSynchronous variant. Convenient for scripts and short HTML, but blocks the event loop while running. Don't use in request handlers.
version(): stringReturns the library version.
interface ExtractOptions {
url?: string // original URL, used for absolute-link rewriting + classification
favorPrecision?: boolean // be aggressive about dropping ambiguous content
favorRecall?: boolean // be lenient — keep ambiguous content (mutually exclusive with favorPrecision)
outputText?: boolean // also return a plain-text mirror of the markdown
targetLanguage?: string // hint for language detection
pageTypeOverride?: // skip the classifier and force a scoring profile
| 'article' | 'forum'
| 'product' | 'listing'
| 'collection'| 'documentation'
| 'service' | 'other'
includeLinks?: boolean // preserve <a> as [text](href) in markdown (default true)
includeTables?: boolean // preserve tables as GFM tables (default true)
includeImages?: boolean // preserve <img> as  (default false)
includeMetadata?: boolean // populate the metadata field (default true)
minExtractionLength?: number // fall back if the kept subtree is shorter than this (default 25)
}
interface ExtractResult {
markdown: string // cleaned main content as GFM markdown
text?: string // plain-text mirror, present when outputText: true
pageType: string // detected page type
extractionQuality: number // confidence in [0.0, 1.0]
language?: string // BCP-47 language tag
metadata?: {
title?: string
description?: string
author?: string
publishedDate?: string
siteName?: string
imageUrl?: string
canonicalUrl?: string
language?: string
keywords: string[]
}
stats?: {
textChars: number
elementCount: number
usedFallback: boolean
pageType: string
}
errorReason?: string // present on low-confidence extractions
}
A trafilatura-inspired five-stage pipeline:
<script> / <style> / <head> / comments / hidden elements.@type) picks a scoring profile.See the Rust crate's README for architecture details and benchmarks.
FAQs
Fast HTML main-content extractor with Node.js bindings. Native Rust performance via napi-rs.
The npm package @firecrawl/html-extractor receives a total of 0 weekly downloads. As such, @firecrawl/html-extractor popularity was classified as not popular.
We found that @firecrawl/html-extractor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.