hex2txt
June 9, 2026 ยท View on GitHub
Convert documentation for hex.pm packages to /llms.txt
files.
Note
ExDoc now generates llms.txt file by default. As of ExDoc
v0.40.0 (January 2026), every
project's docs include a machine-readable Markdown build and an llms.txt
document, plus a "Copy Markdown" button on every page.
Why?
The LLM you're using to help with development might not know about the
libraries you're using. Use hex2txt to generate documentation for
inference-time consumption.
If the documentation is too large for your LLM's context window, use the
hex2context Livebook. hex2context
performs Retrieval-Augmented Generation, including only the most relevant
subset of documentation for the task-at-hand.
Try It
hex2txt
Some examples:
- https://hex2txt.fly.dev/geo/llms.txt
- https://hex2txt.fly.dev/flop_phoenix/llms.txt
- https://hex2txt.fly.dev/phoenix_live_view/llms.txt
- https://hex2txt.fly.dev/elixir/1.18.0-rc.0/llms.txt
- https://hex2txt.fly.dev/ecto_ulid_next/1.0.2/llms.txt
- https://hex2txt.fly.dev/phoenix/1.7.17/llms.txt
hex2context
Run the notebook directly by clicking on this badge:
License
hex2txt is released under the terms of the Apache License 2.0.
Copyright (c) 2024, Michael Russo.