Skip to content

Releases: AlphaTechini/doc-fetch

DocFetch CLI v2.0.5 - Windows Binary Fix

22 Feb 08:48

Choose a tag to compare

🐛 CRITICAL FIX

Problem: Windows users got 'No compatible binary found' error during npm install.

Root Cause: .npmignore was excluding platform binaries instead of including them.

Solution: Updated .npmignore to explicitly include all platform binaries.

📦 Included Binaries

Platform Architecture Size File
Windows AMD64 8.8MB doc-fetch_windows_amd64.exe
Linux AMD64 8.8MB doc-fetch_linux_amd64
macOS Intel (x64) 8.9MB doc-fetch_darwin_amd64
macOS Apple Silicon (ARM) 8.4MB doc-fetch_darwin_arm64

✅ Installation

npm install -g doc-fetch-cli

Should now work on all platforms without errors!

🚀 Usage

# Fetch documentation
doc-fetch --url https://docs.example.com --output docs.md

# Generate AI-friendly index
doc-fetch --url https://docs.example.com --llm-txt

📝 Changelog

  • Fixed .npmignore to include platform binaries [@AlphaTechini]
  • Compiled binaries for all major platforms
  • Postinstall script now detects correct binary automatically

Full Changelog: v2.0.4...v2.0.5

v1.1.1 - Smart PATH Detection

20 Feb 16:00

Choose a tag to compare

🎉 Improved Installation Experience

What's New:

  • Intelligent Postinstall Script - Automatically detects PATH issues
  • 📝 Platform-Specific Instructions - Bash, Zsh, and Windows support
  • Command Verification - Tests if doc-fetch works after install
  • 💡 Helpful Examples - Shows usage examples and pro tips

Fixes:

  • Users can now see clear instructions if global bin isn't in PATH
  • Automatic verification prevents 'command not found' confusion
  • Better first-time user experience

Installation:

# NPM
npm install -g doc-fetch-cli@1.1.1

# PyPI  
pip install doc-fetch==1.1.1

Quick Start:

doc-fetch --url https://docs.python.org/3 --output docs.md --llm-txt

v1.1.0 - 10x Faster + Fixed Content Extraction

20 Feb 11:51

Choose a tag to compare

🚀 Major Performance & Reliability Update

⚡ 10x Speed Improvements

  • Concurrent fetching with optimized worker pool
  • Connection pooling for HTTP requests
  • Large buffered channels (100x workers)
  • Atomic counters for lock-free counting
  • Context timeouts to prevent hanging

✅ Fixed Content Extraction

  • Multiple fallback strategies for finding content
  • Text-density analysis to identify main content
  • Semantic HTML5 selectors (main, article, [role='main'])
  • Class/ID pattern matching (.content, #main-content, etc.)
  • Aggressive cleaning of non-content elements

🔧 Technical Improvements

  • Extracts text from elements with high text-to-child ratio
  • Removes navigation, headers, footers, sidebars automatically
  • Works with modern React/Next.js sites and static docs
  • Properly handles JavaScript-rendered content

📦 Installation

# PyPI
pip install doc-fetch==1.1.0

# NPM  
npm install -g doc-fetch-cli@1.1.0

# Go
go install github.com/AlphaTechini/doc-fetch/cmd/docfetch@latest

🎯 Usage Example

doc-fetch --url https://docs.python.org/3/library/stdtypes.html --output docs.md --llm-txt

Tested & Verified: Successfully extracts clean documentation from Python docs, Flask, Requests, and more!

v1.0.0 - Initial Release

20 Feb 08:22

Choose a tag to compare

🎉 Initial Release

DocFetch - Dynamic documentation fetching CLI for AI/LLM consumption

✨ Features

  • Fetch entire documentation sites to single markdown files
  • Generate AI-friendly LLM.txt index files
  • Cross-platform support (Linux, macOS, Windows)
  • NPM package installation

🔒 Security

  • Path traversal protection
  • SSRF (Server-Side Request Forgery) protection
  • Rate limiting (10 requests/second)
  • Input validation and sanitization

🚀 Usage

added 31 packages in 4s

17 packages are looking for funding
run npm fund for details

This is the first secure release - no vulnerable versions exist in the wild!