{"repo":"prime-radiant-inc/books-for-bots","free":true,"listed":false,"github":"https://github.com/prime-radiant-inc/books-for-bots","clone":"git clone https://github.com/prime-radiant-inc/books-for-bots.git","description":"Rust CLI that converts EPUBs into a single YAML-headed Markdown file with per-chapter byte and line offsets, giving LLM agents a navigation API for token-efficient reading.","language":"Rust","stars":127,"topics":["ai-agents","cli","epub","llm","markdown","rust"],"license":"MIT","category":"ai-agents","readme_excerpt":"books-for-bots Convert an EPUB into a single YAML-headed Markdown file optimized for token-efficient reading by LLM agents. Why EPUB is a great format for humans and a terrible format for agents. A typical agent reading a book has to (a) unpack the zip, (b) parse the OPF manifest, (c) follow the spine, (d) parse each XHTML document, (e) chase cross-document references, (f) do all of that without exhausting its context window. Most don't even try; they paste a chapter at a time from clipboard. books-for-bots flips that. Each book becomes one plain GFM Markdown file with a YAML frontmatter listing every chapter and its absolute byte and line offsets . An agent can: …and land directly on Chapter 1's heading, no parsing, no traversal. The frontmatter is the chapter-level navigation API. What you get The Markdown file opens with frontmatter that looks like this (see examples/alice/ for the full output): Below the frontmatter is plain GFM: ## Chapter Heading , bold , italic , link , [^footnote] , GFM pipe tables, fenced code blocks. No embedded HTML except where GFM requires it (table cell ). Numeric offsets are leading-padded to a fixed 10-character field so the frontmatter byte size is invariant. YAML plain-scalar parsing strips that padding, so consumers parse them as integers. Padding is leading (not trailing) because trailing whitespace gets eaten by editors and pre-commit hooks. Use Pass --force to overwrite an existing output directory. That's the entire CLI surface. No flag","default_branch":null,"files":null,"tree":[],"storefront":"/r/prime-radiant-inc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/prime-radiant-inc/books-for-bots/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}