Chrome bookmark audit tool

Bookmark Audit

A safety-first local workflow for backing up, scanning, reviewing, dry-running, and applying approved Chrome bookmark cleanup plans.

Version 0.2.0 Public GitHub repo Chrome Native Messaging Dry-run first MIT
Bookmark Audit extension icon Bookmark Audit CLI command output Bookmark Audit Bridge Chrome extension popup
What it solves

Bookmark cleanup without blind deletion.

Bookmark Audit helps inspect live Chrome bookmarks, create timestamped JSON backups, scan for duplicates and risky URL states, and produce a human-editable cleanup plan that must be reviewed before anything changes.

Backups before changes Human review Restore path
Current use

Designed for local source use with an unpacked Chrome extension and a local Native Messaging host.

Install from source

npm install, npm run build, then load the repo's chrome-extension folder unpacked in Chrome.

Workflow

Inspect, plan, review, preview, apply.

The project is built around a deliberate sequence so cleanup decisions stay visible.

Back up first

The extension can read Chrome's bookmark tree and create timestamped local JSON backups before scan or apply work.

Generate a plan

The CLI scans URLs for duplicates, redirects, dead links, parked domains, local links, and risky statuses, then writes a reviewable cleanup.yaml.

Review every action

The interactive review flow autosaves decisions and only approved actions are eligible for dry-run or apply.

CLI surface

Developer-friendly commands for a private local workflow.

Common commands include npm run validate, npm run doctor, npm run scan, npm run plan, npm run review, npm run dry-run, and npm run report.

Chrome bridge

A small MV3 extension handles browser-owned actions.

The Bookmark Audit Bridge reads bookmarks, tests the local Native Messaging connection, creates backups, previews approved mutations, applies approved actions, and supports restore flows.

Safety model

No unsupervised bookmark mutations.

The project keeps AI and automation subordinate to backups, deterministic rules, explicit review, and dry-run previews.

Read-only, dry-run, apply

Read-only mode inspects and reports, dry-run executes the mutation path without changing Chrome, and apply only touches actions marked approved: true.

AI as review context

Optional AI opinions can explain ambiguous public web links, but they do not auto-approve deletes, redirects, or uncertain cleanup actions.

Conservative URL handling

Transient failures, access errors, browser-internal URLs, and local/private network links are handled conservatively rather than treated as delete proof.

Private artifacts stay local

Backups, plans, logs, caches, reports, result files, local config, and secrets are ignored because they can contain private bookmark data.

Screenshots

CLI and Chrome bridge.

Public-safe screenshots from the repository README.

Architecture

CLI-first, local-first.

Bookmark Audit is split into shared protocol code, a CLI, a native host, and a Chrome extension bridge.

packages/shared

Protocol types, runtime parsing, bookmark tree utilities, URL classification, and action-resolution logic.

packages/cli

Setup, scanning, planning, review, reporting, export, restore setup, and Native Messaging host installation.

Native host and extension

A local stdio host and MV3 popup bridge connect Chrome bookmark APIs to approved local plans.

Public repo

Available on GitHub.

The repository is public for local source use. A Chrome Web Store release would need a separate marketplace pass.

Repository: jacsuper/bookmark-audit Current version: 0.2.0 Requires Node.js 20+ macOS and Chrome focused