Repository navigation
Releases
v0.15.0
-
Skip work on closed Folder Overview Details during indexing.
When opened, Details shows the latest file-type totals and continues updating with the
scan. -
Frontmatter Tree and Source fit short excerpts to their content and scroll longer
excerpts within the pane.
Tree opens at the document’s top-level fields, and Source supports horizontal
scrolling for long lines. -
Size inline code to match its surrounding Markdown text in headings, prose, tables,
and rendered comparisons. -
Display valid YAML dates and timestamps in Values and Tree and preserve their exact
tokens in Source. -
Speed up Quick Search for filenames in large repositories by rejecting impossible
matches before ranking and removing timer delays between scan chunks. -
Use regular text for YAML and JSON keys in Source and syntax-highlighted diffs,
matching Values and Tree.
Rendered YAML code fences use regular text for plain keys. -
Markdown Frontmatter and structured code fences use keyboard-accessible Values, Tree,
and Source tabs. -
Markdown Frontmatter opens in Values and keeps the first draw short.
Choose More to reveal additional fields.
Values, Tree, and Source share the same vertical spacing. -
Values copy controls stay at the top of each field when long keys and values wrap.
-
Markdown Diagnostics uses the same Field and Value table styling as Frontmatter.
-
Rendered Markdown and other links that use the shared GitHub destination icons now
place the icon before the link label. -
Use the shared Frontmatter disclosure and Field/Value table in rendered Markdown
diffs, keeping additions and removals visible in Diff. -
Fix native macOS folder windows refusing fullscreen from the green window button and
View > Enter Full Screen. -
Fit initial structured expansion to a row budget, with shorter previews in Markdown
frontmatter Values and structured fences.
Reusable renderers accept aninitialExpansionrow budget and depth limit. -
Give Pull, Commit, and Stack overview metadata one consistent vertical rhythm,
including labels, change tallies, and wrapped commit references. -
Show the abbreviated value only while a YAML or JSON Values branch is collapsed.
Use the regular text color for keys in Values and Tree, and remove duplicate Values
row tooltips. -
Share expand and collapse motion across structured values, Markdown disclosures, file
details, logs, and diffs.
Respect reduced motion and keep large branches responsive. -
Use regular-weight keys and bold scalar values in structured Tree and Values views.
-
Give nested rows in the YAML and JSON Values view consistent indentation and align
continuation controls with the rows they extend. -
Click a YAML or JSON Values preview, count, or chevron to expand it in place.
Small branches show all their rows.
Larger branches start with up to 16 rows.
More keeps those rows and adds up to their current number on each press.
Collapsed previews use the source format and share the Tree’s syntax colors. -
Place source and loading actions beside their notices.
-
The macOS app now requires
metab0.14.0 or later.
Its PDF preview can open files in their default Mac app with this runtime.
metab-cli v0.14.0
Metabrowser 0.14.0 updates the metab CLI and the browser interface it serves.
Highlights
- Read YAML and JSON in Values, Tree, and Source. Values expands nested data
in place and copies keys, scalar values, or complete blocks.
The same views work for Markdown frontmatter and supported code fences. - Start with a bounded preview for oversized YAML. Load more requests a larger
window when available, and Open Source reaches the file. - Browse folders of SoftSchema records in the shared Table view.
Contract counts, linked records, source links, and indexing notices use the same
controls as other tables. - Follow repository links in rendered text and see GitHub merge readiness from the Pulls
list, a pull request, or a stack.
Guided reviews use the improved diff and excerpt controls. - Apply size and memory limits to structured parsing and isolated Markdown rendering.
The CLI keeps the browser usable when a file exceeds those limits. - Restore live updates on a filesystem where native notifications stall by starting
metabwithWATCHFILES_FORCE_POLLING=1. Polling periodically scans the served
folder tree, and watcher status reports the selected mode.
Large-folder performance
The Folder Overview computes its compact treemap layout off the main thread when the
rollup is ready.
In five large-folder comparisons against 0.13.0, median first paint fell
from 100 to 76 ms. Interaction p95 rose from 16 to 32 ms in two paired measurements on a
Chrome virtual display.
All hard responsiveness and correctness budgets passed.
The release keeps the full treemap and its keyboard controls.
Benchmark and release decision
Compatibility and installation
The CLI supports Python 3.12 and later.
This minor release updates the runtime contract for the native macOS app, including
recent targets, opening files, and setup diagnostics.
If you installed with uv, run uv tool upgrade metabrowser and check metab --version.
Installation guide
· Full changelog
·
Compare v0.13.0 to v0.14.0
metab-cli v0.13.0
Metabrowser 0.13.0 updates the metab CLI and the browser interface it serves.
Highlights
- Browse ordinary SQLite databases read-only. Metabrowser recognizes SQLite by its
file header, including databases without a SQLite suffix.
Open the schema, or browse individual tables and views with paging, sorting, search,
filters, and foreign-key navigation.
Optional fsqlite snapshot browsing uses the same table views. - Browse CSV, TSV, JSON, and YAML as tables. CSV and TSV open directly in Table.
JSON and YAML can show a table alongside the tree when the data is a list of records.
The table views share filtering, search, and paging controls. - Find and inspect coding-agent sessions. The built-in Agent Session Browser lists
Claude Code and Codex sessions and opens their transcripts.
metab --plugins,metab --plugin NAME, andmetab --doctorshow what’s loaded and
report plugin dependency problems. - Review local GitHub repositories. The Pulls and Commits tabs stay available for
your repository when Files is browsing a pinned revision.
Repository and branch menus provide copy and open actions, and View on GitHub uses
readable branch names where available. - Read rendered diffs and diagrams. Markdown supports Mermaid diagrams.
Rendered diffs center Markdown, YAML, and JSON in the file box and keep change markers
along the left edge.
Source keeps the split and unified layouts.
Upgrading
If you installed with uv, run uv tool upgrade metabrowser. Then run metab --version
to confirm 0.13.0.
Installation guide
- Repository cache. Stop older
metabservers before opening a repository with
0.13.0. The first open moves existing mirrors into the newrepos/layout in place.
It needs a writable cache and retains the existing clones.
After migration, use 0.13.0 or later for that cache. - Plugin authors. This release uses SDK 0.8. Replace
metabrowser.builtinscalls
with manifest dependencies and useawait metabrowser.plugins.load("provider")to
read the provider’s module exports.
Setsdk_version = "0.8"after migrating your plugin.
Plugin dependency guide
v0.12.0
Metabrowser 0.12.0
Pull Requests
- Review a pull request from its GitHub URL or from a local checkout.
Use Conversation for discussion and commits, Changes for the diff, and
Checks for CI results. - The Pulls list shows totals for Open, Closed, and All, loads older rows as you scroll,
and resumes GitHub updates after a reconnect.
On a focused PR row, Space toggles its changed files and Enter opens the PR. Cached PR
descriptions can appear before the remaining details finish loading. - Quick Search finds files and cached pull requests.
Type#to browse recent PRs, then add a number or title words to narrow the results.
Files, Commits, and Pulls keep their own selection and have fixed shortcuts. - For stacked PRs, the stack menu shows each PR’s position, title, and number.
Use Shift-J and Shift-K to move through the stack.
Reading and Browsing
- Markdown, source, commits, and pull requests share the same left gutter.
Markdown keeps its card padding and moves the table of contents to the right on wide
panes. - Large comparisons load nearby patches as you scroll.
Repository-backed Treemap views show file totals and explain why paths outside the
index are unavailable.
Before Upgrading
- On macOS and Linux, configuration and cached repositories now live in separate XDG
directories. Replace anyMETABROWSER_HOMEsetting with the documented configuration
and cache options. New records usemetabrowser.configandmetabrowser.cache
contract namespaces.
If Metabrowser reports an unreadable config, move the file aside and restart to
regenerate it and reuse the cache.
Storage and recovery - Fetching GitHub PR metadata uses a signed-in GitHub CLI. Acquiring or refreshing
repositories requires a Git version admitted by the security floor.
Git and GitHub setup - External plugins must declare Plugin SDK 0.7 and use delegated controls marked by
their owner. Managed repositories use the untrusted content profile, which keeps active
content inert. The changelog covers the plugin and content trust changes.
Changelog
v0.11.0
Metabrowser 0.11.0 makes content trust explicit: a browsed file gets exactly the
privilege a browser would give it opened directly — no more, and no less. That is what
lets HTML render by default instead of showing only source.
It also closes a vulnerability present in 0.10.0 and earlier. If you browse
repositories you did not write, upgrade.
Security
A browsed repository could run code on your machine. The .env chain walks up from
the working directory, so cd cloned-repo && metab . reached that repository's own
.env — and the environment decides which program runs. A .env setting BROWSER was
honored by the standard library's browser launcher, which metab calls by default;
GIT_EXTERNAL_DIFF was executed by the git diff behind the diff views. Pointing
Metabrowser at a repository was enough. No flag helped, because the browser opens before
any content is rendered.
A .env or .env.local file now contributes only METABROWSER_LOG_LEVEL and
METABROWSER_REQUEST_LOG. Every other name is read from the process environment or not
at all. Those two are the only names whose values cannot make the program do anything
but what the knob means — one is checked against the known level names, the other is an
equality test — and that is the rule for admitting any future name.
Content trust
-
/rawresponses are sandboxed unconditionally. Every branch — gzip passthrough,
SVG, HTML, error bodies — sends
Content-Security-Policy: sandbox allow-scripts allow-popups allow-forms allow-downloads
andX-Content-Type-Options: nosniff. A direct/rawlink to HTML or SVG no longer
executes with the application's privileges. Nested iframes and framesets still load:
the policy carries noframe-ancestors. -
/apiroutes require same-origin proof. The server accepts
Sec-Fetch-Site: same-origin,Sec-Fetch-Site: none(a typed URL or bookmark, which
no document initiated), or a matchingOrigin. It refusesOrigin: nulland foreign
origins, and still servescurlandmetab --api, which send neither header.
State-changing methods additionally requireContent-Type: application/json, so a
cross-site form POST cannot reach a write path. The guard derives the route the same
way the router does, so it holds under an ASGI prefix mount as well as at the root. -
--untrusted(METAB_UNTRUSTED=1) is the conservative profile. It disables active
content and keeps mutations off.--no-active-content(METAB_ACTIVE_CONTENT=0) drops
allow-scriptsfrom the/rawsandbox.--allow-edits(METAB_ALLOW_EDITS=1)
publishesmutations: true; no write route consumes it yet. A flag on the command line
outranks the environment in both directions, and only--untrusted --allow-editslifts
the profile. The resolved block is onGET /api/capabilitiesand
window.METABROWSER_SETTINGS.CAPABILITIES.
HTML rendering
-
.htmland.htmare thehtmlkind, with a sandboxed Preview tab and a Source
tab. A 4 KiB sniff chooses the default tab only. Preview uses path-shaped
/raw/{path}and an iframe sandbox of
allow-scripts allow-popups allow-forms allow-downloadswith
referrerpolicy="no-referrer"— neverallow-same-originorallow-top-navigation.
--untrustedand--no-active-contentomit Preview. -
Preview carries an "Open as full page" link to the same
/raw/{path}document the
frame is showing. It is a plain anchor, so middle-click and modifier-click behave
natively, and it opens withrel="noopener noreferrer". The tab is contained exactly
as the frame is: the sandbox rides on the response headers, not on the iframe. -
GET /raw/{path}serves the same bytes asGET /raw?path=…, so relative
stylesheets, images, and sibling links in a browsed HTML file resolve under/raw/.
The query form stays; it is the public API the image renderer uses. Both shapes share
one resolver and the same sandbox headers.
Fixes
- A path carrying an embedded NUL —
/raw/a%00b, or the same byte in a?path=value —
is a 404 rather than a 500.
Performance
- The catalog content identity is hashed one page at a time instead of four
digest.updatecalls per record. At 300,000 rows the step drops from 62 ms to 41 ms,
and the digest is byte-identical.
Upgrading
The plugin SDK stays at 0.6; no manifest changes are required.
window.METABROWSER_SETTINGS.CAPABILITIES is additive.
Three things an existing setup can notice:
- A
.envcontributes almost nothing now. Anything you kept there — the rendering
budgets,METABROWSER_PLUGINS_DIRS,METABROWSER_ALLOWED_HOSTS,
METABROWSER_DEBUG,METABROWSER_INVENTORY_PROVIDER,METABROWSER_GCP_PROJECT,
HOME— must be exported instead. Metabrowser logs a warning naming any of its own
variables it ignored, so a file that stops taking effect says so. ~in a served path expands from the process environment'sHOME, even when a
.envnames a different one.- A page outside the application that called
/apiwithout same-origin proof is now
refused.curlandmetab --apiare unaffected.
Full changelog: v0.10.0...v0.11.0
v0.10.0
Metabrowser 0.10.0 makes the file tree appear while the index is still being built,
instead of after it finishes.
On a repository-shaped tree of about 119,000 files, measured as five back-to-back pairs
against 0.9.1 on an otherwise idle machine:
| 0.9.1 | 0.10.0 | |
|---|---|---|
| First usable row | 1,238 ms | 230 ms |
| Whole tree indexed, browser attached | 39.2 s | 15.5 s |
| Server-side index complete | 39.2 s | 9.3 s |
Highlights
-
The directory tree's first rows no longer wait for a scan of the whole repository.
Metabrowser used to walk every visible directory looking for nested.gitignorefiles
before indexing could start, so on a large repository the top-level tree appeared only
after 10-30 s. Each directory's.gitignoreis now read the first time a path inside
it is checked, and the first rows appear as soon as the root is listed. Nested
.gitignorefiles now follow git's rules for scope, anchoring, and negation. -
J and K move down and up in the file tree (Files and Recent) and in the Git
history, as the arrow keys do. They repeat and open the row they land on. They still
type in text fields and do nothing with a modifier held. -
Index progress answers sooner on large trees — about 40-70 ms on a 300,000-file
tree against 60-150 ms in 0.9.1. The file-type tally pass and the activity tracker's
periodic scan now pause every few milliseconds instead of holding the server until
they finish. -
Filesystem inventory now crosses a pluggable, provider-neutral contract. The
Python implementation remains the only shipped provider and preserves the existing
routes and envelope shapes.
Markdown fixes
- An embedded note no longer times out before it starts loading. The 5-second
transclusion allowance used to be shared by every embed in a document; each embed now
has its own allowance from the moment it starts loading. - Wiki links in a task-list item followed by an ordinary link now convert. Brackets pair
the way CommonMark pairs them, so checkboxes and unmatched brackets no longer hide the
wiki links that follow them. - Markdown links no longer say "Resolving link" forever in a tree larger than the
inventory file cap. A capped walk is now a final catalog state, and file search says
indexing stopped at the file limit rather than "Scanning continues."
Other fixes
- Text of two sizes on one line now sits on one baseline: file tree rows, Git history
rows, the file and folder header, and the diff file bar. - Opening a file or folder again after it failed to load now loads it again instead of
leaving the error on screen. - Metabrowser installed into a virtual environment inside a Git repository, such as a
project's own.venv/, now reports its installed version without annotating it with
the enclosing repository's commit.
Compatibility
- The plugin SDK is now 0.6, a breaking change. A manifest must declare
sdk_version = "0.6"; manifests for 0.5 are refused at discovery and by
metab --doctor. - API paths are escaped inventory identities. Plugin readers, activity probes,
Markdown links, browser URLs, and filename search now handle literal percent signs
consistently. See the plugin path-identity documentation for the conversion helpers. mb.builtins.markdown.analyzeGraph()is removed with no replacement in this
release. It parsed Markdown separately from the renderer and could disagree with the
rendered document.fileCatalog.snapshot()now includestruncated, true when the inventory walk
finished at its file cap. A plugin waiting for a final catalog should stop on either
completeortruncated.
Known limitation
Indexing a very large directory that holds hundreds of files per directory is slower
than in 0.9.1. Metabrowser now delivers rows to the page while it walks rather than
finishing the walk and then drawing.
On a repository-shaped tree that is a large win at every size measured, as the table
above shows. On a flat tree of a few hundred thousand files in a few thousand
directories, where that per-file delivery has no reader to benefit, the trade goes the
other way: measured on a 300,000-file flat corpus, the full index takes roughly 1.6x as
long, the Quick File catalog request goes from 663 ms to about 2.6 s once the index has
settled, and the first row takes about a fifth longer to appear (a 293 ms median against
359 ms).
Interaction latency and correctness are unchanged on both shapes. This trade was
measured and accepted deliberately rather than discovered late; the numbers and the
reasoning are in the performance-loop experiment ledger, and paying it down is the
subject of the next patch release.
Full changelog: v0.9.1...v0.10.0
v0.9.1
Patch release for two browser correctness defects.
- Inactive plugin tabs now mount their own renderer when first opened.
- Folder file-type rollups accept the shipped schema-4 registry and compare its complete identity with the browser runtime.
The exact installed candidate is backend-equivalent to v0.9.0, passes every hard headed-browser responsiveness/correctness gate, and passes the full local and hosted release suites.
v0.9.0
Metabrowser 0.9.0.
Full changes: CHANGELOG.md · v0.8.0...v0.9.0
File-type identity
The file tree takes its icon and colour from the rollup registry, so a family looks like itself everywhere it appears. Two taxonomies had drifted apart — a hand-maintained table of sixteen matchers resolving to nine classes, and the registry's 56 families each with a declared hue — with nothing keeping them in step. FILE_TYPE_REGISTRY_SCHEMA is now file-type-registry-v4.
Reading width
Rendered documents read at a width the reader chooses, in characters, through Max text width in the menu (default 105). Characters rather than pixels because that is the decision a reader has, and the conversion uses each reading face's measured average glyph advance — so switching between the serif and sans reading fonts holds the characters per line rather than the pixel width. The setting persists and is applied before first paint, so the column never renders at one width and reflows to another.
The folder Overview's README now renders at the same text width as the same file opened on its own.
Git history
History pages come from a bounded server session that advances one ordered walk on demand and replays visited pages by indexed seek. The panel keeps decoded pages in a bounded LRU and mounts only a fixed-height row window with measured overscan, so paging reaches Git's real end instead of stopping after 500 commits. The Git tab opens with a header tally — total commits in scope and the age of the repository's first commit.
Interruption
One Ctrl-C stops the server at any point in its life and reports exit 130. It prints Stopping Metabrowser. so the press is visibly registered, and it does not wait on in-flight requests. Previously a press during startup could be discarded outright: on a large tree the server came up and kept serving as though nothing had happened.
Quieter by default
Serving a directory that is not a Git repository no longer repeats git rev-parse failures every few seconds, the inventory boot walk reports only when the result is worth reading, and loading states are drawn rather than narrated in words.
Verification
make verify — Python and browser quality gates, locked-graph audits, distribution inspection, and an isolated installed-wheel smoke test — plus the Python 3.12–3.14 CI matrix, green on the tagged commit.
Compared against 0.8.0 before tagging, both as installed console scripts on one unchanged 113,350-file corpus: identical ordered rows, timing and memory inside overlapping ranges, and every hard responsiveness budget met across three interleaved browser profiles per build. The only response differences are the declared file-type registry schema bump. Recorded as exp-021.
v0.8.0
What’s Changed
Metabrowser 0.8.0 expands diff, Source, file-navigation, and Git-navigation capabilities
while preserving the plugin SDK at version 0.5.
Features
- Diff views now open in Split layout by default, remember a Unified preference, apply
bounded syntax highlighting, and distinguish whole-line, refined-row, and intraline
changes consistently. - File and Git navigation retain the previous useful view until the next renderer is
painted and ready. Matching work is reused, obsolete work is cancelled, and deferred
diff hydration remains concurrency-bounded. - Git history adds the file tree’s Arrow-key navigation contract and shared commit
summaries with refs, author, age, modified/added/deleted file totals, and line totals. - Source views highlight every extension covered by the shipped Highlight.js registry,
with measured bounds for large files.
Fixes
- File Overview no longer shows a passive instruction when only ignored files remain.
- Folder disclosure state survives inactive-panel discovery during an inventory scan.
- Commit summary revisions use the standard interface size, with file and line totals on
dedicated rows. - Full navigation-tally passes yield frequently enough to preserve event-loop
responsiveness on slower hosts.
Plugin API
- View handles may expose
ready: Promise<void>for atomic retained-navigation handoff. - Plugins can use
metabrowser.highlightSyntax,metabrowser.renderSourceView,
metabrowser.langForExtension, andmetabrowser.langForPath. PLUGIN_SDK_VERSIONremains0.5.
Compatibility and validation
- Git history remains intentionally bounded to the most recent 500 commits in this
release. Unbounded virtualized history is planned for v0.9.0. - The complete repository gate passes with 1,564 tests, 48 golden CLI scenarios,
dependency audits, distribution inspection, installed-wheel smoke tests, and all eight
built-in plugins. - Five installed-build backend pairs against v0.7.1 return identical ordered rows and
tallies. Three headed browser profiles per build pass every hard correctness and
responsiveness gate.
Full Changelog:
https://github.com/jlevy/metabrowser/compare/v0.7.1 … v0.8.0
v0.7.1
Metabrowser v0.7.1 fixes Git commit diffs in fresh browser sessions and makes the running build easier to identify.
Fixes
- Opening a Git commit now loads the diff plugin on demand before mounting the commit view. Changed files and diff lines appear on the first commit click, without first opening a
.patchor.difffile. - The asynchronous renderer load preserves the current selection and preview ownership, so a completed request cannot replace a newer commit view.
- The gear trigger no longer shows a redundant “Metabrowser” tooltip over the open menu. Its accessible name remains intact.
Build identity
- The gear menu ends with the exact build line printed by
metab --version, using the existing small muted note treatment. Checkout builds include commit-distance and dirty-tree annotations; installed releases remainmetab 0.7.1.
Validation
- The fresh-session Git loading failure, shared CLI/browser version contract, and no-tooltip trigger contract have automated regression coverage.
- Five installed-build backend pairs returned identical ordered rows and tallies on a fingerprinted 123,573-file corpus. Three visible browser profiles per build passed every hard responsiveness and correctness gate, with no Long Tasks, failed fetches, rendered errors, or page exceptions. Startup request count and transfer size were unchanged.
Full comparison: v0.7.0...v0.7.1