Skip to content

bearnet: nav-bar button + Tools menu + shortcut; ship real GeoIP DBs#94

Merged
mdheller merged 1 commit into
mainfrom
bearnet-menu-geo
Jul 24, 2026
Merged

bearnet: nav-bar button + Tools menu + shortcut; ship real GeoIP DBs#94
mdheller merged 1 commit into
mainfrom
bearnet-menu-geo

Conversation

@mdheller

Copy link
Copy Markdown
Contributor

Answers 'is there a menu option?' — there wasn't (only the new-tab 📡 tile). Now, via the same privileged autoconfig that wires the new-tab page:

  • a persistent nav-bar toolbar button (radar glyph, themed to toolbar color)
  • a 'Network Monitor (BearNet)' item at the top of the Tools menu
  • a Ctrl/Cmd+Alt+N shortcut

Per-window, best-effort, wrapped so it can never break startup. All open resource:///bearstart/bearnet.html.

GeoIP — ship the real asset (both DBs, not a country-level fake): scripts/fetch-geoip.sh downloads DB-IP City Lite + ASN Lite (CC-BY, month-stamped w/ last-month fallback); assemble-cockpit.sh stages both into the app's geoip/; bearbrowser-cockpit-up launches the sidecar with CAPTURE_SIDECAR_GEOIP pointed at them. The 131MB city DB stays out of git (fetched at package time); ASN committed.

⚠️ Verifiable only in a real build (autoconfig UI + sidecar launch need a running app); syntax-checked here. Remaining to make BearNet fully live in the nightly DMG: the app must run cockpit-up (launch the sidecar) on startup — the BB #77 bake-into-app lane.

…oIP DBs

Entry points (the answer to 'is there a menu option?' — there wasn't, only the
new-tab tile): extends bearstart-autoconfig.js to register, via the same
privileged autoconfig, a persistent nav-bar toolbar button (radar glyph, themed),
a 'Network Monitor (BearNet)' item at the top of the Tools menu, and a
Ctrl/Cmd+Alt+N shortcut — per-window, best-effort, wrapped so it can never break
startup. Opens resource:///bearstart/bearnet.html.

GeoIP (ship the real asset, not a country-level fake): scripts/fetch-geoip.sh
downloads DB-IP City Lite + ASN Lite (CC-BY, month-stamped with last-month
fallback); assemble-cockpit stages both into the app's geoip/; cockpit-up
launches the capture sidecar with CAPTURE_SIDECAR_GEOIP pointed at them. The
131MB city DB stays out of git (fetched at package time); ASN committed.

Verifiable only in a real build (autoconfig UI + sidecar launch need a running
app); syntax-checked here.
@mdheller
mdheller merged commit d139625 into main Jul 24, 2026
@mdheller
mdheller deleted the bearnet-menu-geo branch July 24, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant