Repository navigation
Releases
Releases · alejandroqh/browser39
v2.0.0
Added
browser39 browsean elinks-style terminal viewer for reading pages as markdown. Opens in reader mode (main content), with numbered links you follow byTab/Enteror by number, back/forward history, find (/), a table of contents (t), and copying the current section (y), whole page (Y) or a URL (c) to the clipboard (pbcopy on macOS, the Windows clipboard API, wl-copy/xclip/xsel on Linux, or OSC 52 over SSH).--sectionopens at (or prints only) a section,--fullshows the whole page, and output is plain markdown when piped or with--print. Copied/printed markdown ends with[n]: urlreference definitions so links survive pasting.- Mouse support in
browse: click a link to follow it, hover to highlight it and see its URL, scroll with the wheel, and click in the contents list to jump; right- or middle-click copies the section under the pointer (or a contents entry's section).mtoggles mouse capture so the terminal's own text selection works. - Tables in
browseare drawn as aligned grids sized to the terminal width, with cells wrapping inside their columns; copies and piped output keep the original markdown. - Copying in
browsebriefly highlights what was copied: the section's rows (y, also from the contents list), the whole screen (Y), the link (c), or the title bar for the page URL. BrowserService::render_currentre-renders the current page with different options without refetching.
Changed
- Breaking (library):
FetchOptionshas two new public fields,keep_repeated_linksandmain_content, used by the viewer. They default tofalseand are not part of the JSONL or MCP protocol, but code that buildsFetchOptionswith a struct literal must add them or use..Default::default().
Fixed
- HTML→ markdown no longer glues words to the preceding inline element:
<b>Artemis II</b> (Aprilgave**Artemis II**(Apriland<a>flyby</a> ofgave[flyby](…)of. Whitespace at the edges of<b>/<em>/<a>now sits outside the markers and brackets (to<a> Home </a>nowgaveto[Home](…)now). - Table cells no longer include the text of inline
<style>/<script>elements (Wikipedia infoboxes leaked CSS), and<br>, list items, paragraphs, headings and other blocks inside a cell are separated by spaces instead of running together. - RSS/Atom feeds honour
compact_links: items render as## [title][n]with numbering that matches the returned links list. - Links inside
<blockquote>followcompact_linksand link dedup like the rest of the page; in compact mode they were emitted inline and missing from the links list. - A very large
max_tokensoroffsetno longer overflows when computing the truncation point.
v1.9.0
Thanks to @viirak for reporting the server/discover crash.
Fixed
- MCP stdio server no longer exits on requests sent before
initialize(#3). Clients on the official Go SDK>= 1.7(e.g. Charm Crush) probe withserver/discoverfirst; browser39 now replies-32601 Method not foundso they fall back toinitialize, instead of exiting with rc=1. Other unknown methods get the same reply, known methods get-32600 Server not initialized, and stray notifications are ignored until the handshake completes. - A client closing stdin before initializing is now a clean shutdown (rc=0) rather than an
MCP server error.
Changed
rmcpbumped from 1.3 to 1.8 (minimum now1.8). Tool input schemas no longer carry a top-leveltitle(e.g."ClickParams"); properties, types, andrequiredfields are unchanged.#[tool_handler]now points at the storedtool_routerfield, since rmcp-macros 1.8 otherwise rebuilds the router on everytools/listandtools/call.
v1.8.0
Thanks to @janpauldahlke for proposing the library target.
Added
- Rust library target
browser39now ships as a library crate in addition to the CLI binary and MCP server. Downstream Rust projects can depend on it withbrowser39 = "1.8"
and drive a headless session programmatically viaBrowserService. The crate root re-exports the common entry points:BrowserService,Config,PersistenceMode,
FetchOptions,HttpMethod,SessionStore,InMemoryStore, andcreate_session_store. src/lib.rsexposingcli,core,mcp, andserviceas public modules for callers that need finer-grained access (custom session stores, alternate MCP transports, direct
page rendering).
Changed
src/main.rsconsumes the new lib crate instead of redeclaring its modules, so the bin and lib targets share a single compilation ofcore/service/cli/mcprather than
building each module twice.
Fixed
- 11
clippy::collapsible_ifwarnings acrosscore::dom_script::opsandcore::feed_to_md, plus aclippy::new_without_defaultwarning oncore::http_client::CookieJar—cargo clippy --lib --bin browser39is now clean.
v1.7.1
Added
browser39 search <query>CLI command — one-shot web search using the configured search engine, output as markdown (default) or JSON via--output json. Mirrors the ergonomics ofbrowser39 fetchso agents can pipe search results into a shell pipeline without spinning up an MCP session.
Changed
- One-shot CLI plumbing factored into shared
make_one_shot_serviceandfetch_and_printhelpers sofetchandsearchshare session setup, output formatting, and error handling.
v1.7.0
Added
- Decision-grade MCP tool descriptions — every
browser39_*tool now ships a structured description (purpose / USE WHEN / NOT WHEN / Effect class / Common failures with repair moves) so agents can pick the right tool before inspecting parameters and self-correct on errors. Effect classes follow aread | local-mutate | external-mutate | irreversibletaxonomy. - Selector reference doc (
docs/selectors.md) — canonical CSS3-only cheat sheet, stable-vs-fragile guidance, and pitfalls (no XPath, no:contains()); every selector field doc-comment now points to it. - MCP tool schema snapshot test (
src/mcp/snapshots/tool_schema.snap) — locks the rendered tool list so unintended description or schema changes surface as a reviewable diff. Update intentionally withUPDATE_SNAPSHOTS=1 cargo test tool_schema_snapshot.
Changed
- Param-level doc comments rewritten across
FetchParams,ClickParams,DomQueryParams,FillParams,FillFieldParam,SubmitParams: secret-handle hints on credential values,index/textdisambiguation onclick,value/outerHTML/textContentadded to documentedattroptions,AUTH_PROFILE_DOMAIN_MISMATCHwired intoauth_profiledocs. docs/jsonl-protocol.mdanddocs/install-cli.md: replaced staleboa_enginereferences withdeno_core(V8) and added a top-level pointer to the selectors doc.
Fixed
- Documentation drift: JSONL protocol doc previously described a pure-Rust JS engine surface; now reflects the actual
deno_coresandbox capabilities (full DOM API, events, console capture).
v1.6.3
Added
- RSS / Atom / RDF feed rendering — XML feeds (RSS 2.0, RSS 1.0/RDF, Atom 1.0) are now detected by
Content-Type(with body sniff fallback for mislabeled servers) and converted to clean, token-optimized markdown instead of the previous run-on-text result. Each item renders as## [title](link)followed by adate · categorymeta line and the description; the channel/feed title becomes the H1. - New
src/core/feed_to_md.rsmodule with 12 unit tests covering all three feed formats, namespace prefixes (dc:,rdf:), CDATA-wrapped HTML descriptions, Atomrel="alternate"link routing, and graceful partial-parse on malformed XML. - New dependency:
quick-xml = "0.37".
Changed
- Feed dispatch runs before the meta-refresh redirect loop — XML feeds skip the wasted scan since they never carry HTML meta-refresh.
estimate_tokens,truncate_markdown, andcollapse_inline_whitespaceinhtml_to_mdare nowpub(crate)so the feed module can reuse them.
Fixed
core::config::tests::test_load_full_configno longer hardcodes a stale user-agent version that broke on every release bump — the test now exercises the default-user-agent path it was always meant to cover.
v1.6.1
Added
- npm distribution —
npm install @aquintanar/browser39installs the correct platform binary automatically. Supports macOS (arm64, x64), Linux (x64, arm64), and Windows (x64).
Fixed
- Removed unused
SEL_HEADstatic (dead code warning) - Updated yanked
fastrandv2.4.0 to v2.4.1
v1.6.0
Changed
- JavaScript engine migrated from boa_engine to deno_core (V8) — full ECMAScript compliance, JIT compilation, and the foundation for SPA support (React/Vue/Angular)
- DOM shim architecture redesigned: Rust
#[op2]ops for data access + JS bootstrap for object wrappers (replaced 3,650 lines of boa closures with ~970 lines of ops + ~300 lines of JS) - Event handler and setTimeout errors are now logged to
console_outputinstead of silently swallowed serde_v8used for V8-to-JSON conversion (replaces hand-rolled converter)
v1.5.0
Added
- Full JavaScript DOM API — massively expanded the JS sandbox beyond basic
querySelector:- DOM traversal:
parentElement,parentNode,children,childNodes,childElementCount,firstChild,lastChild,firstElementChild,lastElementChild,nextSibling,previousSibling,nextElementSibling,previousElementSibling - DOM lookup:
getElementById,getElementsByClassName,getElementsByTagName,getElementsByName,document.forms,document.links - DOM mutation:
createElement,createTextNode,appendChild,removeChild,insertBefore,element.remove(),setAttribute,removeAttribute,textContentsetter,innerHTMLsetter - Element properties:
matches(selector),closest(selector),contains(node),hasAttribute,classList(contains/length/item),dataset(data-* to camelCase),nodeType,nodeName,disabled,checked,hidden,type,name,src,alt,placeholder - Event system:
addEventListener,removeEventListener,dispatchEventwith listener storage;new Event,new CustomEvent,new MouseEvent,new KeyboardEvent,new InputEvent,new FocusEventconstructors - Console:
console.log/warn/error/info/debug— output captured and returned inconsole_outputfield - Timers:
setTimeout(synchronous execution),setInterval/clearInterval(no-op),requestAnimationFrame(synchronous) - Utilities:
atob/btoa(base64),getComputedStyle(stub),MutationObserver(no-op stub)
- DOM traversal:
--versionCLI flag —browser39 --versionprints the version- Config version tracking — config.toml now includes a
versionfield; auto-updated on load when the binary version changes
Changed
- JS sandbox internals refactored from single file (
dom_script.rs) intodom_script/submodule (mod, element, document, window, events, convert) for maintainability - DOM backing migrated from
Rc<Html>toRc<RefCell<Html>>to support mutation - Mutated DOM is serialized back and stored in session state after script execution
- Default user-agent now matches binary version (
browser39/1.5.0instead ofbrowser39/0.1) - MCP tool descriptions expanded to document JS capabilities for LLMs
DomQueryParams.scriptfield doc now lists every available DOM API- Plugin manifests updated to 1.5.0
v1.1.0
Added
- 10 MCP config management tools — agents can now manage browser39's configuration directly via MCP:
browser39_config_show— view config with sensitive values masked (never exposes raw file)browser39_config_set— set scalar settings (search engine, timeouts, session defaults)browser39_config_auth_set/browser39_config_auth_delete— manage auth profiles (credentials stored securely, never returned via MCP)browser39_config_cookie_set/browser39_config_cookie_delete— manage preloaded cookiesbrowser39_config_storage_set/browser39_config_storage_delete— manage preloaded storage entriesbrowser39_config_header_set/browser39_config_header_delete— manage default header rules
- Config changes are saved to disk atomically and take effect immediately (live reload)
- Security config changes (redaction patterns, sensitive cookie names) are applied to the running redaction engine without restart
Changed
- Release binaries now use versionless names (
browser39-macos-arm64instead ofbrowser39-v1.0.0-macos-arm64) for stable download URLs - Install prompts simplified — direct binary download from GitHub releases, no Rust toolchain required
- Config structs now implement
Serializefor TOML round-tripping Config::resolve()is now public for use after config mutations
Fixed
build.shrestored (accidentally deleted in v1.0.0)