The llms-txt crawler can now route every HTML fetch through the headless
browser when --enable-js is passed, so client-side-rendered SPAs (Next.js
App Router, React/Vue/Svelte SPAs) produce a useful llms.txt instead of
bottoming out at the homepage.
Concrete case: biricik.dev is a Next.js App Router site with zero
anchor tags in the SSR HTML (navigation hydrates client-side). Before
this release the crawler saw 0 same-origin links → low-discovery
warning. With --enable-js the same site emits its real navigation
graph.
Implementation:
- New fetch_rendered_html() and fetch_html_maybe_rendered() helpers in
crawling.rs. The latter is the single fetch primitive used by every
caller that needs to support both plain HTTP and JS-rendered modes.
- collect_links_bfs_with_browser() variant accepts Option<&Browser>;
collect_links_bfs() stays as a None-shaped thin wrapper for callers
that don't need rendering.
- produce_llms_txt() and run_llms_txt() grow an Option<&Browser> param.
Sitemap XML still uses plain HTTP — no benefit to forcing it through
Chromium.
- CLI binary wires the existing global --enable-js into the llms-txt
flow, mirroring the see-subcommand browser-launch pattern (per-PID
user-data-dir to avoid SingletonLock collisions).
API: produce_llms_txt() / run_llms_txt() / collect_links_bfs() are
breaking-change for direct library consumers, but the only ones in this
workspace are the CLI binary and the backend handler, which are bumped
in lockstep.
All 244 lib tests + 22 integration tests pass.