Jump to content

MindAttic.Browser

From MindAttic Docs

MindAttic.Browser

A Windows browser for everyday browsing that turns anything on screen into a screenshot or a video on your clipboard in one click, and serves a local site folder as if it were deployed.

.NET-10-512bd4.svg engine-WebView2-0078d4.svg tests-NUnit-2ea043.svg status-live-2ea043.svg

MindAttic Browser showing mindattic.com: back, forward, reload and home on the left, the address bar, and star, screenshot, record, capture folder and settings buttons on the right

Scope

The complete product, every epic, feature and story, built or not, is in SPEC.md. The current finish line, MindAttic.Browser 1.0 (crash logging plus these docs presenting it as released), is in RELEASE.md; it is also the last milestone, because everything else in the spec is built.

Why

  • You see something worth keeping while browsing: one click (or Ctrl+Shift+S) shoots it, lets you crop it, saves it and puts it on the clipboard, ready to paste.
  • Recording is the same: press record, press it again, and the finished video's file is on the clipboard.
  • Every file is named after the site it shows (youtube.com_2026-10-11T20.45.28.638.png), so a folder of captures explains itself.
  • A local static site opens at https://<site>.local/ and behaves like the deployed page, with no web server.

Features

Button Shortcut What it does
← → ⟳ ⌂ Alt+Left, Alt+Right, F5 Back, forward, reload, home page
☆ Ctrl+D Star or unstar this page; the menu lists your favorites
📷 Ctrl+Shift+S Screenshot the page, crop it in the lightbox, save it and copy it
● / ■ Ctrl+Shift+R Start recording; stop, write the video and copy its file
📁 Open this site's capture folder
⚙ Ctrl+, Settings: home page, search engine, capture folder, clipboard and crop options

Ctrl+L focuses the address bar and F12 opens DevTools. Text that isn't a URL is searched with the engine set in Settings.

The crop lightbox

The crop lightbox over the browser: the page dimmed except a dashed selection box around the MindAttic logo, with a size readout and Whole page, Cancel and Save buttons

A screenshot opens over the browser with the whole page selected. Drag to select what to keep, drag the box to move it, drag a handle to resize it. Enter saves, Esc cancels, Ctrl+A selects the whole page again. Turn the lightbox off in Settings to save the whole page immediately.

Ask Claude (AutoWebNav)

Open ⚙ and pick Ask Claude for a chat panel that drives the live browser pane next to it — not a copy of it (M.BRWS-T13/T73-T75). Type an instruction and press Enter (Shift+Enter for a new line) or Send; Stop cancels a run in progress. Claude works the page through an agentic tool-use loop, one call at a time, each one logged in the panel: search, navigate, read_page, click, the form tools (set_field, check_checkbox, choose_option, select_dropdown, upload_file, press_enter) and wait. It needs a Claude API key in the shared MindAttic credential store under the claude id — the same key every other MindAttic app's Claude calls use, set up once via MindAttic.Launcher's Settings or ANTHROPIC_API_KEY.

Quick start

Prerequisites: Windows 10 2004 or later, the .NET 10 SDK, the WebView2 runtime (part of Windows 11), and the MindAttic.Media.Capture packages in C:\LocalNuGet:

cd ..\MindAttic.Media.Capture
dotnet pack -c Release -o C:\LocalNuGet
.\tools\install.ps1                      # optional: the capture agent, so recordings export after the browser closes
cd ..\MindAttic.Browser
.\run.ps1 -Redeploy -RunDebug https://example.com

run.ps1 (and run.bat beside it, for a double-click) is the MindAttic standard run menu: 1) Redeploy builds Debug (framework-dependent) and Release (self-contained single file) to R:\MindAttic\Apps\MindAttic.Browser\Debug and \Release, 2) Run Debug starts the Debug copy in the console with any extra arguments, 3) Run Release starts the Release copy as a double-click would. The switches -Redeploy, -RunDebug and -RunRelease skip the menu. Before rebuilding a config, it asks a copy of it that's still open (it might be mid-recording) to close and waits up to 30s; if it's still there, it keeps that build instead of killing it. The Release build also points a Desktop or Start-menu MindAttic.Browser shortcut left on the old C:\Apps\MindAttic.Browser install at the new exe. Other tools (MindAttic.Web's capture.ps1, tickets view, MindAttic.Media.Capture) start R:\MindAttic\Apps\MindAttic.Browser\Release\MindAttic.Browser.exe directly.

You should see the page with the toolbar above it. Press Ctrl+Shift+S, then Enter: the status bar says where the screenshot was saved and that it is on the clipboard.

Usage

MindAttic.Browser.exe                                   # your home page
MindAttic.Browser.exe youtube.com                       # any URL or search text
MindAttic.Browser.exe D:\Projects\MindAttic\MindAttic.Web\mindattic.com   # serve a site folder at https://mindattic.com.local/
MindAttic.Browser.exe page.html --host demo.local       # serve a file's folder under a chosen host name
MindAttic.Browser.exe https://mindattic.com -capture video 8h   # film the whole visit (MindAttic.Media.Capture flags)
MindAttic.Browser.exe mindattic.com -capture screen 5   # a PNG every 5 seconds

The -capture flags come from MindAttic.Media.Capture: video records the whole session, screen N takes a screenshot every N seconds, hq uses a hardware HEVC tape, and a duration caps the run. Disk, memory and encoder limits stop long runs automatically.

Where things go

What Where
Screenshots <capture folder>\<site>\<site>_<timestamp>.png, named after the page shown
Recordings <capture folder>\<subject>\<subject>_<timestamp>.mp4 (plus a lossless .mkv), named after the site the browser opened
Settings and favorites %APPDATA%\MindAttic\MindAttic.Browser\settings.json, through MindAttic.Vault
Browser profile (cookies, cache) %LOCALAPPDATA%\MindAttic\Browser

The capture folder defaults to R:\MindAttic\Media\Capture (a saved R:\MindAttic\Capture, the old default, moves to it), or Pictures\MindAttic Browser on a machine without that drive. Recordings pick up a new folder at the next launch. Unstarring a favorite marks it removed instead of deleting it, so starring the page again restores it.

Limits

  • Recordings capture the whole browser window, toolbar included; screenshots capture only the page.
  • Video can't sit on the clipboard as data, so a recording is copied as a file: paste it into a folder, chat or uploader.
  • When a site folder is served, only that site can use the page capture bridge (window.mindattic.capture), and other websites can't read the folder.

Project layout

MindAttic.Browser/
  src/MindAttic.Browser/        the WPF app: MainWindow, CropWindow, SettingsWindow, settings, favorites, naming
  tests/MindAttic.Browser.Tests NUnit: targets, search, favorites, settings round-trip, file names, crop geometry
  run.ps1, run.bat              the run menu: Redeploy to R:\MindAttic\Apps\MindAttic.Browser\{Debug,Release}, Run Debug, Run Release
  docs/images/                  README screenshots

Testing

dotnet test

The suite covers command-line targets and address-bar search, favorites (including soft removal), the Vault settings round-trip keeping unknown keys, capture file naming, and the crop lightbox geometry.

License

This repo has no LICENSE file. All rights reserved.

Part of MindAttic: see more projects at github.com/mindattic. Related: MindAttic.Media.Capture, MindAttic.Vault, MindAttic.Web.

Pages in this repository

From MindAttic.Browser/docs/overview.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.