pagemd/

Fetch the web.
Get clean Markdown.

Fetch any page as clean Markdown, ready for humans, scripts, and the next agent in your workflow.

pagemd — terminal
$ npx pagemd better-auth.com/docs
→ negotiating Markdown response
→ following alternate source
→ converted in 412ms
# Better Auth
A framework-agnostic authentication library.

## Installation
npm install better-auth

Point. Fetch. Read.

Native Markdown first. Smart fallbacks second. HTML conversion when there is no other way.

$ npx pagemd https://example.com
$ npx pagemd --json <url>
$ npx pagemd <url> <url>

01 / negotiate

Markdown-native

Ask for the format agents actually need before touching messy HTML.

02 / convert

Readable by default

Turn ordinary web pages into focused Markdown without browser noise.

03 / discover

Agent-ready

Find skills and machine-readable resources through the well-known endpoint.

$ npx skills add https://pagemd.pages.dev
$ npx skills add https://github.com/AskLunaBot/pagemd/tree/main/docs/.well-known/agent-skills
$ curl https://pagemd.pages.dev/.well-known/agent-skills/index.json

Teach your agent to fetch Markdown.

Install the skill from the standard endpoint. It teaches agents to use pagemd whenever webpage content is needed, instead of manually parsing HTML.

Read SKILL.md →