main.go | CLI entry: flags → config → runTUI, --md/pipe output (NO_COLOR aware), --update, --mcp, --eval |
cli.go | the flag table (parseArgs is driven by flagDefs) |
config.go | Config, defaults, commented TOML load/save, normalize |
fetch.go | fetchURL (final URL, retry, readable errors), load, loadFrom, loadWith, charset → UTF-8 |
convert.go | media-type dispatch, HTML → Markdown, sanitize, stripLinks |
extract.go | root picking, chrome and hidden dropping, headings, anchors/cards, code lines, table flattening, crumbs, dedupe |
shell.go | JS-shell detection, the page’s own summary (collectHints), the notice, advertised text versions |
headless.go, headless_unix.go, headless_windows.go | rendering a shell page with an installed Chromium/Chrome (process group, cap, counter for the UI) |
guess.go | the conservative, labelled code-language guesser |
update.go, update_ui.go | the update check, the verified self-update, the release notes; the update window, footer chip and menu entry |
render.go | Markdown → ANSI, Doc, LinkSpan, link positions |
nav.go | input resolution, link resolution, the start page |
browse.go | navigation, links/focus/hints, address bar, history and bookmark panels |
tui.go | the model: Update, View/render, geometry, scroll, footer, toasts |
keys.go | actions, default bindings, keymap build/override |
search.go | in-page search (smart-case) and highlight spans |
selection.go | mouse selection, Y code-block copy, OSC 52 + external clipboard |
overlays.go, settings.go, theme.go, style.go, anim.go, braille.go | panels, live settings, palette, SGR, springs, glyphs |
panelfilter.go | the / filter shared by the menu, Settings, shortcuts and the section index (m.sel stays the real index; the selection steps over hidden entries) |
store.go, cache.go | history/bookmarks JSON; the sha256-keyed Markdown cache |
page_memory.go, render_cache.go | the session page LRU and the rendered-document LRU |
mcp*.go, eval.go | the agent harness: MCP server, headless sessions, eval scenarios |
web/ | the docs site (Astro, separate build) |
docs/ | guide, the web edition, QA reports, benchmarks, this file |
scripts/ | QA corpora and probes, bench.sh + bench_compare.py, release, hooks |