ai-answer-citations 0.1.1

ai-answer-citations reads the HTML or Markdown of an answer written by ChatGPT, Perplexity, Claude or Google AI Overviews and returns every absolute http(s) link it cites, in document order. Each citation is tagged with the form it was found in (HTML anchor, numbered marker such as [3], Markdown link, footnote definition or bare URL), its visible label and its numeric marker. canonical() strips fragments and click-tracking query keys (utm_*, fbclid, gclid, srsltid and similar) so that two citations of the same page compare equal, and tally() counts citations per host. It does not fetch anything, resolve relative links or guess a public-suffix list. No dependencies and no unsafe code.

Tags rust library ai citations text-processing
License MITL
State alpha

Recent Releases

0.1.126 Oct 2026 17:13 documentation: Documentation release: the crate docs now note that an answer can only cite pages its engine's crawler was allowed to fetch, and point to a summary of what OpenAI, Cloudflare, Perplexity and Google document about AI crawler access.