pi-fetch-markdown
v0.1.1
Published
Pi skill: fetch any web page as clean markdown via Cloudflare content negotiation or Jina Reader
Maintainers
Readme
pi-fetch-markdown
A pi skill that fetches any web page as clean, token-efficient markdown.
How It Works
Two strategies, tried in order:
- Content Negotiation — Sends
Accept: text/markdownheader. Sites using Cloudflare's Markdown for Agents return markdown directly (~80% fewer tokens than HTML). - Jina Reader (fallback) — Routes through
r.jina.aiwhich renders the page and extracts clean markdown.
Usage
# Basic
bash ./fetch-markdown.sh "https://example.com/page"
# With metadata (method used, token count, content signals)
bash ./fetch-markdown.sh "https://example.com/page" --infoInstallation
Install it as a pi package:
pi install npm:pi-fetch-markdownpi installs the package and loads the skill automatically.
Requirements
curl
License
MIT
