Metadata-Version: 2.4
Name: metabrowser
Version: 0.14.0
Summary: Browse local files from your web browser, with extensible plugin-based rendering of Markdown, code, JSON, YAML, logs, and other files.
Project-URL: Homepage, https://github.com/jlevy/metabrowser
Project-URL: Repository, https://github.com/jlevy/metabrowser
Project-URL: Documentation, https://github.com/jlevy/metabrowser#readme
Project-URL: Issues, https://github.com/jlevy/metabrowser/issues
Author-email: Joshua Levy <joshua@cal.berkeley.edu>
Maintainer-email: Joshua Levy <joshua@cal.berkeley.edu>
License-Expression: AGPL-3.0-or-later
License-File: LICENSE
License-File: NOTICE.md
Keywords: browser,developer-tools,jsonl,logs,markdown
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Typing :: Typed
Requires-Python: <4.0,>=3.12
Requires-Dist: cachetools>=7.1.4
Requires-Dist: frontmatter-format>=0.5.1
Requires-Dist: funlog>=0.2.1
Requires-Dist: json5>=0.15.0
Requires-Dist: jsonschema>=4.26.0
Requires-Dist: kpress==0.3.11
Requires-Dist: markdown-it-py==4.2.0
Requires-Dist: pathspec>=1.1.1
Requires-Dist: prettyfmt>=0.4.1
Requires-Dist: pydantic>=2.13.4
Requires-Dist: pygments>=2.20.0
Requires-Dist: pypdfium2>=5.15.2
Requires-Dist: python-dotenv>=1.2.2
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: ruamel-yaml>=0.19.1
Requires-Dist: softschema==0.10.0
Requires-Dist: starlette>=1.3.1
Requires-Dist: strif>=3.1.0
Requires-Dist: typer>=0.26.8
Requires-Dist: uvicorn>=0.49.0
Requires-Dist: watchfiles>=1.2.0
Provides-Extra: yaml-accelerator
Requires-Dist: ruamel-yaml-clib==0.2.15; (platform_python_implementation == 'CPython') and extra == 'yaml-accelerator'
Description-Content-Type: text/markdown

<p align="center"><img src="images/metabrowser-icon.png" alt="Metabrowser app icon" width="192"></p>

<h1 align="center">Metabrowser</h1>

Metabrowser is where your coding agents show you their work and where you browse it
yourself: files, Markdown, logs, data, diffs, commits, and pull requests.
It runs locally in your web browser or in a [native macOS app](docs/macos-app.md),
currently available as a developer preview.
Both show the same files and follow changes as they happen, even in
[large directory trees](docs/scale-benchmark.md).
Plugins add views for new file types.

![Metabrowser’s Files tab, with a repository’s file tree beside a rendered Markdown document](images/screenshot-files.jpg)

## Why

I’ve long been frustrated browsing files in Finder, VS Code, and similar tools,
especially the Markdown, logs, code, and data that pile up while coding with agents.
Markdown rendering is often absent or clunky; in a folder of 10,000 files I can’t see
which are largest or newest; tailing a log or reading a large JSON, JSONL, or YAML file
is hard; and a graphical view of a new file format seems to need a whole VS Code
extension or Electron app.
Metabrowser is the tool I wanted instead, and it is now my preferred way to read
Markdown.

## Quick Start

With [uv](https://docs.astral.sh/uv/) installed, run the latest release on the current
folder, which opens in your web browser:

```shell
uvx metabrowser@latest .
```

To keep the command, follow [Installation](#installation).
With `metab` on your path, you can open a folder, a file, a GitHub repository, or a pull
request:

```shell
metab ~/notes
metab ~/notes/todo.md
metab https://github.com/owner/repo
metab https://github.com/owner/repo/pull/123
```

On a Mac, you can also [build the app preview](docs/installation.md#the-macos-app) and
choose **File > Open Folder…**. To open the same folder from a terminal in the installed
app, use `metab ~/notes --present --open-in app`.

Run `metab --help` for the available modes and options.

## Installation

### Command line and web browser

Install [uv](https://docs.astral.sh/uv/getting-started/installation/), then install the
published CLI and check your setup:

```shell
uv tool install metabrowser
metab --version
metab --doctor
```

If your terminal cannot find `metab`, run `uv tool update-shell` and open a new
terminal. `uv tool dir --bin` shows where uv put it.
To update, run `uv tool upgrade metabrowser`, or `pipx upgrade metabrowser` for a pipx
installation. To repair a uv installation, run `uv tool install --reinstall metabrowser`
and check it again with `metab --doctor`.

Local file browsing needs only `metab`. To browse repositories, install Git.
For pull requests and private GitHub repositories, install the GitHub CLI and sign in.
[Git and GitHub setup](docs/installation.md#git-and-github-setup) gives the commands.

### Native macOS app

The app runs a separately installed `metab` on an Apple silicon Mac with macOS 26 or
later. The app and the CLI have separate releases.
Check [release status](docs/installation.md#release-status) for availability.

#### Developer preview

The preview requires `metab` 0.13.0 or later.
Follow the [preview build and first launch](docs/installation.md#the-macos-app) to build
the app from source.
If the published CLI is too old for your build, select the checkout’s `.venv/bin/metab`
in **Settings > Runtime > Choose metab…**. After a CLI upgrade, choose **Refresh** and
restart any servers the app offers to restart.
**Help > Check Setup…** checks the runtime and tools the app actually uses.
See [Choosing a metab](docs/macos-app.md#choosing-a-metab) if the app rejects an
executable.

### Plugins and agent skill

Built-in plugins ship with `metab`. Inspect them with `metab --plugins` or in the app’s
**Settings > Plugins**. For external plugins, see
[plugin discovery and dependency checks](docs/plugins.md#trust-model-and-discovery).
To let a coding agent open a file or review for you, install
[the Metabrowser agent skill](docs/installation.md#the-agent-skill).

## What You Can Do

- **Read any file:** Markdown rendered by [KPress](https://github.com/jlevy/kpress)
  beside its source, JSON and YAML as trees, JSONL as event logs, code, logs, images,
  and HTML in a sandboxed preview.
  Each folder opens with an Overview of its file types and a Treemap of its sizes.
  See [browsing files](docs/browsing-files.md).
- **Watch files and logs live:** the tree and folder totals update as files change, and
  an open JSONL log that is still being written shows new events as they arrive.
  See [browsing files](docs/browsing-files.md).
- **Browse commits and diffs:** the Commits tab lists a repository’s history, and each
  commit has its own page with per-file diffs.
  See [browsing history](docs/browsing-history.md).
- **Review pull requests:** open a pull-request URL, or the Pulls tab of a GitHub
  repository, to read its conversation, reviews, inline comments, checks, stack, and
  changes, online or offline from the cache.
  See [reviewing pull requests](docs/reviewing-pull-requests.md).
- **Find anything from the keyboard:** Quick Search finds files by name or path and, in
  a GitHub repository, pull requests by number or title; single-key shortcuts move
  between tabs, views, and rows, and `0` goes home.
  See [keyboard shortcuts](docs/keyboard-shortcuts.md).
- **Work with coding agents:** the `metabrowser` agent skill lets an agent open a
  folder, file, or pull request and hand you the page, and coding-agent session logs
  open as timelines. See [working with agents](docs/working-with-agents.md).
- **Browse a remote machine:** `metab --remote HOST --path DIR` starts Metabrowser on a
  host over SSH and tunnels it to your browser.
  See [browsing files](docs/browsing-files.md).
- **Script it:** `--api` issues any route the browser reads, `--show` reports what the
  browser would do with one file, `--walk` dumps the inventory, and `--diff` prints a
  change set, all without a browser or a listening port.
  See the [command line](docs/command-line.md).

## The Mac App

The optional macOS app opens each folder in its own window, with recent items, session
restore, and folders dropped on its Dock icon.
It runs the `metab` you installed, so it shows the same pages.
See [the Mac app guide](docs/macos-app.md) for using it and
[Installation](#installation) for setup and troubleshooting.

## Scale

Metabrowser indexes a tree in the background, so the first view does not wait for a full
crawl. [The scale benchmark](docs/scale-benchmark.md) measures how soon a large tree
shows counts, how long its scan takes, and the server’s memory, on a corpus anyone can
regenerate. Indexing stops at 500,000 files; browsing larger trees is planned (see
Direction).

## Extend It

Each view of a file, folder, or pull request comes from a plugin: a manifest that
matches files and adds browser views, with optional Python data hooks.
[Plugin authoring](docs/plugins.md) is the reference, and
[the plugin system](docs/project/architecture/arch-plugin-system.md) explains how
plugins load and how to add a file type.

## Security

> [!WARNING]
> Metabrowser is a local tool for trusted users, not a public web server.
> It listens only on your own machine by default; load only plugins you trust, and never
> expose it to the internet.
> See the [security policy](SECURITY.md).

## Direction

Planned work, each linked to its plan:

- **The Mac app and agents:** a signed, notarized download and confirmation of which
  window opened a target
  ([native macOS app plan](docs/project/specs/active/plan-2026-11-10-native-macos-app.md))
- **Editing:** opt-in editing of trusted local files
  ([trusted-local editing plan](docs/project/specs/active/plan-2026-07-16-trusted-local-file-editing.md))
- **Larger trees:** a faster native inventory engine behind the existing provider
  contract
  ([inventory provider plan](docs/project/specs/active/plan-2026-08-23-inventory-provider-refactor-and-fdu-adoption.md)),
  and million-file trees browsed, not cut off
  ([load-time plan](docs/project/specs/active/plan-2026-08-21-load-time-performance.md))
- **Working-tree status and diffs**
  ([Git status plan](docs/project/specs/active/plan-2026-08-26-git-status-and-working-tree-diffs.md))

## Documentation

### Using Metabrowser

- [Metabrowser concepts](docs/concepts.md) introduces the terms used in the guides.
- [Installation](docs/installation.md) covers the CLI, the macOS preview, and GitHub
  access.
- [Browsing files](docs/browsing-files.md),
  [browsing history](docs/browsing-history.md), and
  [reviewing pull requests](docs/reviewing-pull-requests.md) cover the views shared by
  the browser and the app.
- [The Mac app](docs/macos-app.md) covers opening files from Finder, managing windows,
  and restoring a session.
- [Keyboard shortcuts](docs/keyboard-shortcuts.md) and
  [command-line reference](docs/command-line.md) list the controls, commands, and
  environment variables.

### Working with Agents and Plugins

- [Working with agents](docs/working-with-agents.md) explains how to hand a page to a
  reader or browse an agent’s session log.
- [Plugin authoring](docs/plugins.md) describes manifests, the browser SDK, and data
  hooks. [Adding a language](docs/adding-a-language.md) covers file types and syntax
  highlighting.

### Setup, Diagnostics, and Releases

- [Runtime diagnostics](docs/command-line.md#diagnostics-and-plugins) and
  [the app’s Check Setup report](docs/macos-app.md#checking-the-setup) identify missing
  tools, plugin errors, and problems accessing local storage.
- [Scale benchmark](docs/scale-benchmark.md) describes how to measure a local tree.
- [Publishing](docs/publishing.md) covers CLI and app releases.
  [Building the Mac app](apps/macos/README.md) has the app’s build and signing commands.

### Development and Project Reference

- [Development](docs/development.md) and [end-to-end testing](docs/e2e-testing.md) cover
  the contributor setup and verification gates.
- [Architecture](docs/architecture.md) maps the layers.
  The
  [File Rollup Format](docs/project/architecture/file-rollup-format/file-rollup-format.md)
  and [File Diff Format](docs/project/architecture/file-diff-format/file-diff-format.md)
  specify the data for directory inventories and changes.
- [Design system](docs/design-system.md) and
  [reader messages](docs/design-system-messages.md) describe the interface and its
  notices.
- [Rendering large content](docs/large-content-rendering.md),
  [web performance](docs/web-performance-framework.md),
  [real-time debugging](docs/realtime-debugging.md), and the
  [engine performance model](docs/engine-performance-model.md) cover performance work.
- [Security policy](SECURITY.md) and [supply-chain security](SUPPLY-CHAIN-SECURITY.md)
  cover trust boundaries, reporting, and dependency review.
- [Changelog](CHANGELOG.md), [roadmap](TODO.md), and
  [project records](docs/project/README.md) track released changes, plans, and design
  decisions.

## Contributing

See [Contributing](CONTRIBUTING.md) and [Development](docs/development.md).

## License

AGPL-3.0-or-later; see [LICENSE](LICENSE). [NOTICE.md](NOTICE.md) lists vendored
components and their licenses.

<!-- This document follows common-doc-guidelines.md.
See github.com/jlevy/practical-prose and review guidelines before editing.
-->
