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

See https://hex2txt.fly.dev.

Some examples:

hex2context

Run the notebook directly by clicking on this badge:

Run in Livebook

License

hex2txt is released under the terms of the Apache License 2.0.

Copyright (c) 2024, Michael Russo.