4 Installing
akib-cdda edited this page 2026-11-11 15:22:15 +06:00

Installing

For anyone who wants BlockFlow running in their own browser. BlockFlow is not in any extension store yet, so you build it from the source and load it as an unpacked (developer) extension. It takes about five minutes.

What works where

Be clear about this before you start. The table follows the README's What has been verified section.

Browser Status
Brave, Chromium Built, loaded and driven end to end many times (Brave Origin 155, Playwright's Chromium 131). This is the reference browser.
Chrome, Edge Same build as Brave/Chromium (.output/chrome-mv3). Expected to work, but no test run is recorded on them specifically.
Firefox Builds, passes web-ext lint (0 errors), and passes the Firefox e2e smoke test (npm run e2e:firefox, Firefox 159, installed as a temporary add-on). Granting site access by hand on a normal install hasn't been tried yet. Real mouse/keyboard input and Run Script are not available in Firefox.
Safari The build exists, but converting it into a Safari app has not been tried. Treat it as unknown.

If you just want to try BlockFlow, use a Chromium browser.

You need

  • Node.js 20 or newer and npm.
  • The repository: git clone it and cd into it.
  • For Safari only: a Mac with Xcode.

Build

npm install          # installs dependencies and runs `wxt prepare`
npm run build        # Chrome, Brave, Edge, Chromium  ->  .output/chrome-mv3
npm run build:firefox  # Firefox                      ->  .output/firefox-mv3
npm run build:safari   # Safari                       ->  .output/safari-mv3

npm run build:all does all three. If you plan to change the code, npm run dev opens a separate Chrome with the extension loaded and reloads it on every save (see Build and Release). That browser uses a temporary profile, so your normal logins are not there.

Load it

Chrome, Brave, Edge, Chromium

  1. Open chrome://extensions (Edge: edge://extensions, Brave: brave://extensions).
  2. Switch on Developer mode (top right).
  3. Click Load unpacked and choose the .output/chrome-mv3 folder.
  4. Pin the BlockFlow icon to the toolbar (puzzle-piece menu → pin). Clicking it opens the editor.

On first install BlockFlow creates two example workflows, both Off: "Example: open a page every 5 minutes" and "Example: open the page when part of it changes".

Firefox

  1. Open about:debugging → This Firefox → Load Temporary Add-on…
  2. Choose any file inside .output/firefox-mv3 (for example manifest.json).
  3. Grant site access. Firefox does not give Manifest V3 extensions their site permissions on install. Open about:addons → BlockFlow → Permissions and allow access to all websites. Without it, Watch Element, Read Element, the picker and every page block fail with a permission error.

A temporary add-on is removed when Firefox closes, so you load it again after every restart. Installing it permanently needs a signed build from addons.mozilla.org, which does not exist yet.

Safari (untested)

  1. npm run build:safari
  2. xcrun safari-web-extension-converter .output/safari-mv3
  3. Open the generated Xcode project, build and run the app.
  4. Safari → Settings → Extensions → enable BlockFlow, and allow it on websites. For an unsigned build you may need Safari's Develop menu → "Allow Unsigned Extensions".

Nobody has run these steps yet. If you do, please report what happened.

Permissions, and why each one is there

BlockFlow asks for these when you load it. Nothing is sent off your device: workflows, runs, secrets and datasets stay in the browser profile. (The HTTP Request block calls whatever URL you give it.)

Permission What BlockFlow uses it for
Site access (optional, per workflow) Reading and acting on the pages your workflows name. Nothing is granted at install: when you run or switch on a workflow, BlockFlow asks for the sites it uses (or Grant access on the workflow). Background runs (timers, Watch Element) cannot show a prompt, so they fail with permission.missing until you granted the site. Full list with reasons: PRIVACY
tabs Opening, switching and closing tabs; reading their URL and title; screenshots
scripting Putting the page agent, the element picker and the recorder into a page when needed. Nothing is injected into pages otherwise
storage, unlimitedStorage Workflows, run history, logs, secrets; screenshots and datasets can grow past the default quota
alarms Timers and schedules that survive the background worker sleeping
notifications The Notify block, and Manual Step's "Continue / Fail" prompt
webRequest Wait For "network is quiet" and "a network request finishes"
webNavigation The Page Visited trigger, single-page-app URL changes, popups, iframes
contextMenus The Context Menu trigger
downloads The Download block
offscreen (Chrome, Safari) Parsing fetched HTML for Extract List / Extract Table without a tab (Firefox does not need it)

Optional permissions (asked only when you need them)

Some permissions come with a strong install warning or reach beyond pages, so BlockFlow asks for them only when you use the feature. Browsers only show the prompt after a click, so you grant them from the editor:

Permission Feature How to grant
debugger Use real mouse and keyboard for sites that ignore synthetic clicks and typing; also screenshots of background tabs Select the block, open Step settings, tick Use real mouse and keyboard (debugger). The browser asks; accept. While it acts, Chrome shows a "BlockFlow started debugging this browser" bar.
cookies The Cookies & Storage block on cookies (read HttpOnly cookies, set, delete, clear) Add a Cookies & Storage block with "In: cookies". The settings panel shows "Needs the cookies permission…" with a Grant button. Chrome and Firefox. localStorage / sessionStorage need nothing.
debugger (again) Screenshot of the full page or an element, Wait For with "Capture the response body", Route mocking/modifying (CDP), Emulate, HAR Record, Assert on console errors The Grant button on those blocks (Chromium only; Firefox takes these screenshots without it).
declarativeNetRequest Route with browser rules: block (abort) or redirect requests in the workflow's tab The Grant button on the Route block (shown for "browser rules", or "automatic" when every rule is abort/redirect without a delay). Chrome and Firefox; on Firefox it is granted at install (Firefox does not allow asking for it later), so no Grant button appears.
browsingData The Clear Site Data block: deletes cookies, local storage, IndexedDB, Cache Storage and service workers of the listed sites (cookies for their whole registrable domain) The Grant button on the block. Chromium only.
userScripts The Run Script block Add a Run Script block. The settings panel shows "Needs the userScripts permission…" with a Grant button. Then, in chrome://extensions → BlockFlow → Details, switch on Allow User Scripts (on some Chrome versions this is the Developer mode switch instead). Needs Chrome 135 or newer.

debugger, userScripts and browsingData are Chromium only: in Firefox the Grant button explains that the browser does not offer them (the Screenshot block does not show it there); Firefox's browsingData cannot filter by exact origin, so the build does not ask for it. cookies and declarativeNetRequest work in both; Firefox asks for declarativeNetRequest at install ("Block content on any page") because it cannot be an optional permission there.

To take a permission back: chrome://extensions → BlockFlow → Details → Permissions / Site access.

Updating

git pull
npm install
npm run build

Then press the reload arrow (↻) on BlockFlow's card in chrome://extensions. Your workflows, secrets and history stay, because they belong to the extension, not to the build folder.

Things to know:

  • Keep loading the same folder. Chrome derives an unpacked extension's id from its folder path. Load a copy from another folder and you get a second, empty BlockFlow.
  • Reload any open editor tab after reloading the extension. An old editor tab can no longer reach the background worker ("Could not reach the background worker. Try reloading the extension.").
  • Workflows that are On start again after the reload.
  • Firefox: load the temporary add-on again from about:debugging (its Reload button).

Backing up, uninstalling and your data

Everything BlockFlow keeps lives in the browser profile's extension storage and IndexedDB: workflows, run history (last 40 runs), logs, screenshots, secrets and datasets.

  • Back up workflows with All workflows → Export all (one .blockflow.json file). See Using the Editor.
  • Secrets are never exported. Write them down somewhere safe (a password manager) if you need them again.
  • Datasets: download them as CSV/JSON from the Data page.
  • Uninstall: chrome://extensions → BlockFlow → Remove. The browser deletes all of the data above with it. Re-installing starts empty (with the two examples).

See also