Package Docs Finder — PyPI, npm & Crates to Markdown avatar

Package Docs Finder — PyPI, npm & Crates to Markdown

Pricing

from $3.00 / 1,000 pages extracted

Go to Apify Store
Package Docs Finder — PyPI, npm & Crates to Markdown

Package Docs Finder — PyPI, npm & Crates to Markdown

Extract clean, LLM-ready Markdown documentation by package name (PyPI, npm, crates.io) or direct URL. Supports version selection, topic filtering, and llms.txt for AI agents, MCP, and RAG.

Pricing

from $3.00 / 1,000 pages extracted

Rating

0.0

(0)

Developer

Roman

Roman

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

4 hours ago

Last modified

Categories

Features

Limited permissions

Share

Package Docs Finder — PyPI, npm & Crates to Clean Markdown

Extract clean, LLM-ready Markdown documentation by library name (PyPI, npm, crates.io) or direct documentation URL — built for AI coding agents (MCP), RAG pipelines, and developers.

Instead of feeding noisy 200 KB HTML pages full of sidebars, navbars, and scripts into an LLM context window, Package Docs Finder resolves the official documentation site, detects llms-full.txt / llms.txt when available, or extracts clean Markdown with preserved code block languages (python, typescript, rust, bash, etc.).


Key Features

  • Zero-URL Package Resolution: Pass just a package name (httpx, zod, @tanstack/react-query, tokio, serde) and ecosystem (pypi, npm, crates), or pass any documentation URL directly.
  • Version Selection: Fetch documentation for a specific version (e.g. 3.1.2), or leave version empty to automatically resolve the latest current version.
  • llms.txt Fast Path: Automatically detects official /llms-full.txt and /llms.txt endpoints before crawling HTML sitemaps.
  • Engine-Aware DOM Cleaning: Built-in profiles for MkDocs Material, Docusaurus, Sphinx / Read the Docs, Mintlify, GitBook, docs.rs (rustdoc), and GitHub READMEs — strips menus, footers, copy buttons, and heading anchors while preserving headings, tables, breadcrumbs, and fenced code languages.
  • Dual Output for Agents & Humans:
    • Dataset (JSON): Structured per-page records ideal for MCP tools, AI agents, and RAG ingestion.
    • DOCUMENTATION.md (Key-Value Store): A single combined Markdown file ready for one-click download into Claude Projects, Cursor, ChatGPT, NotebookLM, or Obsidian.
  • Fair Pay-Per-Event Billing: Charges page-extracted only for valid extracted pages (>= 50 characters). Typos, missing packages, or 404/stub pages are never charged.

Input Parameters

FieldTypeDefaultDescription
query (required)string"httpx"Package name (e.g. httpx, zod, tokio) or direct documentation URL.
ecosystemstring"pypi"Package registry when query is a package name: "pypi", "npm", or "crates".
versionstring""Optional library version (e.g. "3.1.2"). Empty = latest version.
topicstring""Optional keyword filter (e.g. "async", "auth"). Empty = full docs up to maxPages.
maxPagesinteger30Maximum number of pages to extract in one run (1–200).

Example 1: Targeted Lookup for AI Agents / MCP

{
"query": "httpx",
"ecosystem": "pypi",
"topic": "async",
"maxPages": 5
}

Example 2: Full Library Export for RAG / NotebookLM

{
"query": "fastapi",
"ecosystem": "pypi",
"maxPages": 30
}

Example 3: Specific Package Version

{
"query": "openpyxl",
"ecosystem": "pypi",
"version": "3.1.2",
"maxPages": 10
}

Output Format

1. Dataset Items (JSON)

Each extracted page is stored as a clean JSON record in the default Dataset:

{
"query": "httpx",
"ecosystem": "pypi",
"version": "0.29.0",
"url": "https://www.python-httpx.org/async/",
"title": "Async Support",
"engine": "mkdocs",
"breadcrumbs": [],
"markdown": "# Async Support\n\nHTTPX offers a standard synchronous API by default...",
"char_count": 6383
}

If a package is not found, a descriptive error item is written without triggering any page-extracted event charge:

{
"query": "nonexistent-pkg",
"ecosystem": "pypi",
"version": null,
"error": "Package 'nonexistent-pkg' was not found in pypi."
}

2. Combined Markdown File (DOCUMENTATION.md)

All extracted pages from a run are also merged into DOCUMENTATION.md in the default Key-Value Store (accessible directly from the Output tab in Apify Console).


Using with AI Agents (Apify MCP)

You can expose Package Docs Finder directly to Claude Desktop, Cursor, Windsurf, or custom agents via the Apify MCP Server — allowing your coding agent to fetch up-to-date documentation for newly released library versions on demand.


Local Development

# Run locally with Apify CLI
apify run --purge
# Simulate Pay-Per-Event charging locally (writes to storage/datasets/charging-log/)
ACTOR_TEST_PAY_PER_EVENT=true python -m my_actor