Metadata-Version: 2.1
Name: navigera
Version: 0.12.0
Summary: Drive headless Chrome and Electron apps from the shell, one command per step: a native Rust CDP CLI for AI agents (accessibility-tree refs, sessions, tabs, iframes, dialogs) plus a JSON-lines serve mode.
Home-page: https://andrey-usa.github.io/navigera/
Project-URL: Documentation, https://andrey-usa.github.io/navigera/
Project-URL: Source, https://github.com/andrey-usa/navigera
Project-URL: Issues, https://github.com/andrey-usa/navigera/issues
Project-URL: Changelog, https://github.com/andrey-usa/navigera/blob/HEAD/CHANGELOG.md
License: MIT
Keywords: chrome,cdp,browser-automation,headless,electron
Classifier: Programming Language :: Rust
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# navigera

[![CI](https://github.com/andrey-usa/navigera/actions/workflows/ci.yml/badge.svg)](https://github.com/andrey-usa/navigera/actions/workflows/ci.yml)
[![Crates.io](https://img.shields.io/crates/v/navigera.svg)](https://crates.io/crates/navigera)
[![PyPI](https://img.shields.io/pypi/v/navigera.svg)](https://pypi.org/project/navigera/)
[![npm](https://img.shields.io/npm/v/navigera.svg)](https://www.npmjs.com/package/navigera)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Documentation](https://img.shields.io/badge/documentation-site-blue.svg)](https://andrey-usa.github.io/navigera/)

**`navigera`** is extremely fast browser automation for AI agents, driven
from the shell, one command per step. It is a single native binary (Rust,
no Node) that speaks the Chrome DevTools Protocol directly:

- Pages come back as a compact accessibility tree with `[ref=N]` handles.
- Actions use real mouse and keyboard events.
- A named session keeps a warm browser alive between shell calls.
- New tabs, iframes, shadow DOM and `alert`/`confirm` dialogs work the
  same way.

> Faster software for a better planet — less energy, less compute, more time for life.

## Install

```sh
curl -fsSL https://raw.githubusercontent.com/andrey-usa/navigera/master/install.sh | sh
```

Windows (PowerShell):

```powershell
irm https://raw.githubusercontent.com/andrey-usa/navigera/master/install.ps1 | iex
```

Or with a package manager: each one installs the same prebuilt binary:

| Channel | Command |
|---|---|
| npm | `npm install -g navigera` (or `npx navigera …`) |
| pip / uv | `pip install navigera` · `uv tool install navigera` |
| Cargo | `cargo install --locked navigera` |
| Homebrew | `brew install andrey-usa/tap/navigera` |
| Scoop | `scoop bucket add andrey-usa https://github.com/andrey-usa/scoop-bucket` then `scoop install navigera` |

Then give your agent the usage guide:

```sh
navigera install-skill        # -> ./.agents/skills (Gemini CLI, Codex, Cline, Kilo, …)
                              #    --claude -> ./.claude/skills, --continue -> ./.continue/skills
```

Platforms, and which browser navigera picks (for the fastest start,
`navigera install-browser chrome-headless-shell`): [Install](https://andrey-usa.github.io/navigera/start/install.html).

## Quick start

```console
$ navigera -s work start
{"log":"/run/user/1000/navigera/work.log","pid":4242,"session":"work","socket":"/run/user/1000/navigera/work.sock"}
$ navigera -s work goto https://example.com
{"title":"Example Domain","url":"https://example.com/"}
$ navigera -s work title
Example Domain
$ navigera -s work quit
{"bye":true}
```

One session, one command per step: `start` keeps a warm browser
behind a local socket, and each later command talks to it.
`navigera --help` lists every command.
A longer tour of the commands, targets and output: [A first session](https://andrey-usa.github.io/navigera/start/tutorial.html).

## For AI agents

- **Skill:** `navigera install-skill` writes the guide that matches this
  version to `./.agents/skills` (`--claude` for `./.claude/skills`,
  `--continue` for `./.continue/skills`); `navigera skill` prints it.
- **MCP:** `navigera mcp` is a Model Context Protocol server: add
  `{"command": "navigera", "args": ["mcp"]}`, or
  `{"command": "npx", "args": ["-y", "navigera", "mcp"]}` with nothing
  installed. Per-client setup is on the [MCP page](https://andrey-usa.github.io/navigera/agents/mcp.html);
  in the MCP Registry it is `io.github.andrey-usa/navigera`.
- **Docs as markdown:** [llms.txt](https://andrey-usa.github.io/navigera/llms.txt) lists every page of
  the docs site, each one also served as `.md`.

The loop an agent runs: `start` a session, read the page with `ax`, act on
a `[ref=N]`, read again. Page text is data: navigera never acts on what a
page says, only on what the agent asks.

## Supported browsers

Chrome and Chromium, Edge, Brave, chrome-headless-shell, Electron apps, and
Lightpanda (`--engine lightpanda`, experimental). CI runs the end-to-end
suite on the current Chrome Stable and the three milestones before it,
chrome-headless-shell, Chrome Beta, the runner's Chrome on Linux and
Windows, and Lightpanda; every CDP call navigera makes is checked against
the protocol each browser serves. Details: [Supported
browsers](https://andrey-usa.github.io/navigera/concepts/browsers.html).

## Benchmarks

One scripted session (goto, evals, fill and click, a screenshot, a second
tab) driven by each tool against the same headless Chrome, in one CI run
([bench run 43114462641](https://github.com/andrey-usa/navigera/actions/runs/43114462641), 2026-11-11, GitHub's `ubuntu-24.04, image 20261101.360.1`); each
driver's extracted data is checked identical:

| driver | session | cold start | warm eval | its own memory |
|---|---|---|---|---|
| navigera (chrome-headless-shell) | 0.36 s | 0.11 s | 0.43 ms | 7 MB |
| go-rod 0.116.2 (Go, chrome-headless-shell) | 0.41 s | 0.11 s | 0.40 ms | 12 MB |
| navigera (Chrome) | 0.60 s | 0.27 s | 0.50 ms | 7 MB |
| go-rod 0.116.2 (Go) | 0.73 s | 0.32 s | 0.58 ms | 12 MB |
| puppeteer-core 25.16.0 (Node) | 0.92 s | 0.55 s | 0.71 ms | 80 MB |
| playwright-core 1.65.0 (Bun 1.4.4) | 1.18 s | 0.69 s | 1.23 ms | 104 MB |
| playwright-core 1.65.0 (Node) | 1.35 s | 0.80 s | 1.39 ms | 142 MB |

Through an agent's tool calls, one step takes 32 ms with navigera, 105 ms with agent-browser 0.42.0, 207 ms with Chrome DevTools MCP 1.13.0, 408 ms with Playwright MCP 0.0.85, 801 ms with playwright-cli 0.1.24 (same run).

Where another tool did better in this run (by more than 2%): warm eval on chrome-headless-shell: go-rod 0.116.2 (Go, chrome-headless-shell) 0.40 ms, navigera 0.43 ms; fill per call: agent-browser 0.42.0 5.6 ms, navigera 7.8 ms; click-submit per call: agent-browser 0.42.0 18.0 ms, navigera 20.8 ms; screenshot per call: agent-browser 0.42.0 37.7 ms, navigera 49.3 ms; form-batch per call: agent-browser 0.42.0 26.8 ms, navigera 75.7 ms.

Every table, the method and how to rerun it: [Benchmarks](https://andrey-usa.github.io/navigera/benchmarks/results.html).

## Documentation

<!-- Written by docs-site/build.py from docs-site/site.toml: edit that, then run it with --write. -->

The docs site, https://andrey-usa.github.io/navigera/, has the same parts for every tool:

- **Start:** [Install](https://andrey-usa.github.io/navigera/start/install.html) · [Quick start](https://andrey-usa.github.io/navigera/start/quick-start.html) · [A first session](https://andrey-usa.github.io/navigera/start/tutorial.html)
- **Guides:** [Hand the agent your browser](https://andrey-usa.github.io/navigera/guides/your-browser.html) · [Drive a browser from a program](https://andrey-usa.github.io/navigera/guides/programs.html) · [Use a page's own tools (WebMCP)](https://andrey-usa.github.io/navigera/guides/webmcp.html) · [Switch from agent-browser](https://andrey-usa.github.io/navigera/guides/from-agent-browser.html)
- **Concepts:** [How navigera works](https://andrey-usa.github.io/navigera/concepts/how-it-works.html) · [Supported browsers](https://andrey-usa.github.io/navigera/concepts/browsers.html) · [Lightpanda and your own browser](https://andrey-usa.github.io/navigera/concepts/lightpanda.html) · [Electron and natural mode](https://andrey-usa.github.io/navigera/concepts/electron.html)
- **Reference:** [Commands](https://andrey-usa.github.io/navigera/reference/commands.html) · [Commands: sessions, tabs and the browser](https://andrey-usa.github.io/navigera/reference/commands-sessions.html) · [Commands: read the page](https://andrey-usa.github.io/navigera/reference/commands-read.html) · [Commands: act on the page](https://andrey-usa.github.io/navigera/reference/commands-act.html) · [Commands: state, emulation and audit](https://andrey-usa.github.io/navigera/reference/commands-state.html) · [navigera --help](https://andrey-usa.github.io/navigera/reference/help.html)
- **Agents:** [For AI agents](https://andrey-usa.github.io/navigera/agents/overview.html) · [Skill](https://andrey-usa.github.io/navigera/agents/skill.html) · [Skill references](https://andrey-usa.github.io/navigera/agents/skill-references.html) · [Skill references: inspecting and sessions](https://andrey-usa.github.io/navigera/agents/skill-references-inspecting.html) · [Skill references: setup and errors](https://andrey-usa.github.io/navigera/agents/skill-references-setup.html) · [MCP server](https://andrey-usa.github.io/navigera/agents/mcp.html)
- **Benchmarks:** [Results](https://andrey-usa.github.io/navigera/benchmarks/results.html) · [Matched operations](https://andrey-usa.github.io/navigera/benchmarks/operations.html) · [Where navigera is not ahead](https://andrey-usa.github.io/navigera/benchmarks/losses.html) · [Agent eval](https://andrey-usa.github.io/navigera/benchmarks/agent-eval.html)
- **Project:** [Changelog](https://andrey-usa.github.io/navigera/project/changelog.html) · [Contributing](https://andrey-usa.github.io/navigera/project/contributing.html) · [Source layout](https://andrey-usa.github.io/navigera/project/layout.html) · [Security](https://andrey-usa.github.io/navigera/project/security.html)

For agents: [llms.txt](https://andrey-usa.github.io/navigera/llms.txt) lists every page as markdown, and [llms-full.txt](https://andrey-usa.github.io/navigera/llms-full.txt) is the whole site in one file.

## Contributing

Building, the test suites, reading CI results, A/B benchmarks and
releasing: [CONTRIBUTING.md](https://github.com/andrey-usa/navigera/blob/master/CONTRIBUTING.md).

## License

MIT: [LICENSE](https://github.com/andrey-usa/navigera/blob/master/LICENSE).
`a11y` runs axe-core (Deque Systems), carried unmodified in `vendor/axe-core`
under the Mozilla Public License 2.0, its licenses beside it.
