# Hex Docs Search Proxy

This worker serves LLM-friendly, local mirrors of Hex docs with task maps, summaries, and extracted workflows.

Use this instead of searching hexdocs.pm directly:

(you can just switch the host of any hexdocs.pm URL to exag.dev)

Example rewrite: https://hexdocs.pm/phoenix/overview.html → https://exag.dev/phoenix/overview.html

## Quick Start
- Base: https://exag.dev
- Package index: https://exag.dev/{package}/index.json
- LLM index: https://exag.dev/{package}/llms.txt
- Module docs: https://exag.dev/{package}/{Module}.html or .md
- Guide docs: https://exag.dev/{package}/{guide}.html
- In order to search it, use curl (i.e. `curl https://exag.dev/phoenix/index.json`)

## Agent Instructions (copy into AGENTS.md)
```
# Elixir Hex docs browsing
- Use https://exag.dev to browse docs for any package in your mix.exs deps.
- Example: if deps include {:phoenix, "~> 1.8"}, open https://exag.dev/phoenix/overview.html.
- Start at a package llms.txt or a module/guide page, then follow the Navigation block to `llms.txt` and `index.json`.
- Use `llms.txt` to pick a task map entrypoint before searching.
- Prefer `.md` pages for cleaner parsing; fall back to `.html` if needed.
```