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

@talocode/webdatalane

v0.1.1

Published

Turn webpages into clean markdown, metadata, links, and structured data through one API.

Readme

WebDataLane

Turn webpages into clean markdown, metadata, links, and structured data through one API.

WebDataLane is Talocode web extraction product. Submit a URL or raw HTML and receive clean markdown, metadata, links, headings, images, JSON-LD, tables, and structured data.

v0.1 — Deterministic extraction from HTML/URL fetch. Browser rendering / screenshots not yet available.


Quick Start

pnpm install @talocode/webdatalane

API Key

export TALOCODE_API_KEY=tc_...

Start the Server

pnpm dev

Server listens on http://0.0.0.0:3020.


Routes

| Method | Path | Description | Credits | |--------|------|-------------|--------| | GET | /health | Health check | — | | GET | /v1/webdatalane/health | Health check | — | | POST | /v1/webdatalane/fetch | Fetch a URL | 5 | | POST | /v1/webdatalane/extract | Full extraction | 10 | | POST | /v1/webdatalane/markdown | Convert to markdown | 10 | | POST | /v1/webdatalane/metadata | Extract metadata | 5 | | POST | /v1/webdatalane/links | Extract links | 5 | | POST | /v1/webdatalane/structured | Structured extraction | 20 | | POST | /v1/webdatalane/crawl/plan | Crawl planning | 15 | | POST | /v1/webdatalane/screenshot | Screenshot | 50* |

* Screenshot returns BROWSER_RENDERING_NOT_AVAILABLE in v0.1.

POST /v1/webdatalane/markdown

{
  "url": "https://example.com",
  "stripNavigation": true
}

Response:

{
  "id": "wdl_req_...",
  "object": "webdatalane.markdown",
  "result": {
    "markdown": "# Example Domain\n\nThis domain is for use...",
    "title": "Example Domain",
    "sourceUrl": "https://example.com",
    "warnings": []
  },
  "usage": { "credits": 10, "action": "webdatalane.markdown" }
}

SDK Usage

import { WebDataLaneClient } from '@talocode/webdatalane'

const client = new WebDataLaneClient({ apiKey: 'tc_...' })

const page = await client.markdown({
  url: 'https://example.com'
})

console.log(page.result.markdown)

Methods

  • client.health() — Health check
  • client.fetch(input) — Fetch URL
  • client.extract(input) — Full extraction
  • client.markdown(input) — Markdown conversion
  • client.metadata(input) — Metadata extraction
  • client.links(input) — Link extraction
  • client.structured(input) — Structured extraction
  • client.crawl.plan(input) — Crawl planning

CLI Usage

# Convert URL to markdown
webdatalane markdown --url https://example.com

# Convert HTML file to markdown
webdatalane markdown --file page.html

# Extract metadata from URL
webdatalane metadata --url https://example.com

# Extract links
webdatalane links --url https://example.com

# Extract structured data
webdatalane structured --file page.html --schema schema.json

# Plan crawl
webdatalane crawl-plan --url https://example.com --max-pages 10

# Show config
webdatalane config

Local Usage

Set WEBDATALANE_ALLOW_LOCAL_UNAUTH=true (the default) and use the SDK or CLI without an API key. Billing is skipped in local mode.

WEBDATALANE_ALLOW_LOCAL_UNAUTH=true pnpm dev

Local Helpers

import { htmlToMarkdown, extractLinks, extractMetadata } from '@talocode/webdatalane'

const md = htmlToMarkdown('<h1>Hello</h1>')
const links = extractLinks(html, 'https://example.com')
const meta = extractMetadata(html)

URL Safety

WebDataLane blocks dangerous URLs by default:

  • Private IP ranges (10.x, 172.16-31.x, 192.168.x)
  • localhost, 127.0.0.1, 0.0.0.0, ::1
  • Link-local addresses
  • Cloud metadata endpoints (169.254.169.254)
  • file://, ftp://, data:, javascript:, blob: schemes

Limitations (v0.1)

  • Browser rendering/screenshots not available — Returns BROWSER_RENDERING_NOT_AVAILABLE
  • No CAPTCHA, login, or paywall bypassing — Only public HTML content
  • Deterministic engine — Pattern-based HTML parsing
  • Single-page extraction — No multi-page crawling (use crawl/plan for discovery)
  • No anti-bot evasion — Standard HTTP fetch only

License

MIT