Power Loader

Notes for add-on reviewers

Power Loader 1.0.0 · powerloader@surprisingly.ltd · distributed unlisted to organisations through Firefox enterprise policy.

What it does

Caseworkers start a case from one or more forms in their organisation’s forms library. They clip values from approved casework pages, review where sources agree and conflict, and fill target forms with the checked values. All application logic runs inside the extension. The optional AI features go only to the organisation’s own gateway, and only after the user has approved a redaction preview of the exact request.

No remotely hosted code

Content security policy

script-src 'self' 'wasm-unsafe-eval'; object-src 'none'; img-src 'self' data: blob:;
frame-src 'none'; media-src 'none'; style-src 'self' 'unsafe-inline'

Permissions

PermissionWhy
storage, unlimitedStorageThe active case, activity log, settings, profile drafts and the last good library copy are kept locally. The privacy model is cached locally with the Cache API, and can exceed the default quota.
scriptingInjects the packaged in-page agent (lib/extract.js, lib/capture.js, lib/agent.js) into a casework tab when the user clips, picks a field or fills a form.
tabsMatches the current tab’s address against the library’s approved page profiles, follows tab changes for the activity log (approved systems only), and opens the full case, library, log and readiness pages.
clipboardWriteThe user’s “Copy” buttons: values, the fill report, diagnostics.
downloadsThe user’s downloads of the activity log (CSV/JSON), settings and drafts backups, and exported profiles.
Host permissionsThe organisation’s casework systems, forms library and AI gateway. The model server (Hugging Face by default) is fetched with CORS and needs none.
<all_urls> (optional)Only for organisations that grant it by policy, so that newly approved systems work without a new release. It is never requested in normal use.

Updates

This add-on is self-distributed (unlisted). Its update_url is https://powerloader.surprisingly.ltd/updates.json, published by GitHub Pages from the public repository. It lists only Mozilla-signed XPIs, each with its SHA-256, served from https://powerloader.surprisingly.ltd/download/. Organisations install it by enterprise policy from https://powerloader.surprisingly.ltd/download/power-loader-latest.xpi. We lint with web-ext lint --self-hosted for this reason.

Data collection

Firefox 140 or newer is required for built-in data consent. The manifest declares website content, personally identifying information, financial/payment information and health information, as case text can contain all of these. Images cannot be sent to AI in this release. The Settings gateway test sends only the fixed text “Reply with OK.”

Power Loader declares its data categories in data_collection_permissions. Case data is stored locally and deleted when the case ends. The only transmissions are to the organisation-configured forms library and AI gateway, and model-file downloads from the model server (Hugging Face by default), which carry no case data. See the privacy policy. Every case-data AI request passes through previewBeforeSend() in lib/ai/boundary.js, and lib/ai/client.js refuses any payload that has not been approved. There is no analytics or telemetry, and no case data is sent to the publisher. If the user chooses our hosted demo library, our hosting service receives ordinary request metadata to serve its fictional files.

Third-party libraries

The PDF/OCR libraries and ONNX WASM/loader are unmodified files from npm releases, copied into vendor/ by tools/vendor.mjs. The same list ships in the package as vendor/SOURCES.tsv. Each checksum can be checked against the linked file:

curl -sL <url> | sha256sum
Filenpm releaseSHA-256
vendor/transformers.min.jsGenerated: Transformers.js 4.3.1 + ONNX Runtime 1.30.0; see BUNDLE.json and tools/vendor.mjsc3830506fc3b63e2bcb2f7626ea187aa18c4597c8155058957d5405b4b590464
vendor/ort-wasm-simd-threaded.asyncify.mjsonnxruntime-web@1.30.0/dist/ort-wasm-simd-threaded.asyncify.mjs3d1c85995364bb643302fc6fd877a0c3ba5ae72401815e0f24828a53d9191e28
vendor/ort-wasm-simd-threaded.asyncify.wasmonnxruntime-web@1.30.0/dist/ort-wasm-simd-threaded.asyncify.wasm39f9f0894d478800487ed9f7dbe92618498db320cf55c8e3d89adff8dce658da
vendor/pdfjs/pdf.min.mjspdfjs-dist@4.10.38/legacy/build/pdf.min.mjs44ec6f011027ee77791386b66c14876a5fc29e20bf0433c07c6726fff7212b72
vendor/pdfjs/pdf.worker.min.mjspdfjs-dist@4.10.38/legacy/build/pdf.worker.min.mjsbd88805178a26c729db8c0107a5b630cb900ec070f4d8c7529a3e45530afd41d
vendor/tesseract/tesseract.esm.min.jstesseract.js@5.1.1/dist/tesseract.esm.min.js2537be686335e4b2637e933cdc85a52dd80267a592689c1bd63235c8591540ae
vendor/tesseract/worker.min.jstesseract.js@5.1.1/dist/worker.min.jsaca1229639fc9907d86f96e825955a2b7c5716d17f3bc3acd71f9c7ab66181fc
vendor/tesseract/tesseract-core-simd-lstm.wasm.jstesseract.js-core@5.1.1/tesseract-core-simd-lstm.wasm.jsce20eda9533cbed1e6c2b4276fbae1e0adc61b6754b5513084be601787b457cf
vendor/tesseract/tesseract-core-simd-lstm.wasmtesseract.js-core@5.1.1/tesseract-core-simd-lstm.wasm66b601224a0c4a8977bc9d92dd39841189f9ca22cc4122fcd7208cdb0961eeef
vendor/tesseract/tesseract-core-simd-lstm.jstesseract.js-core@5.1.1/tesseract-core-simd-lstm.js4135a3f6f1cccf3bc92058c1273c49bb4cff6356e1ba15d1b8b4e76e9890526b
vendor/tesseract/tesseract-core-lstm.wasm.jstesseract.js-core@5.1.1/tesseract-core-lstm.wasm.js8f04aa0cc81e7bde33f80e92fa01a7a665f0b4884d098acf5de9c7104a11dfaa
vendor/tesseract/tesseract-core-lstm.wasmtesseract.js-core@5.1.1/tesseract-core-lstm.wasm5db58ea4d1bd4256be81e8ae3b4fa226c4625dfba1850b1b3308dbf3700e9929
vendor/tesseract/tesseract-core-lstm.jstesseract.js-core@5.1.1/tesseract-core-lstm.jsfc54a973687325599214294ec90ea9665309cbdf6ca727c43a64651f24e923f7
vendor/tessdata/eng.traineddata.gz@tesseract.js-data/eng@1.0.0/4.0.0_best_int/eng.traineddata.gz45b4cb346724ac1774f1c36f42f182b887bcdb28ebe63e6fff90ac41f3fcff91

The linter’s DANGEROUS_EVAL and UNSAFE_VAR_ASSIGNMENT warnings are all inside these library files. None comes from Power Loader’s own code.

Rebuilding from source

The source archive contains the current build inputs, with per-file SHA-256 hashes in SOURCE.json; it excludes local credentials, caches, dependencies and generated files. The build uses open-source tools only:

# Node.js 24.19.0, pnpm 11.3.0, on Linux, macOS or Windows
pnpm install --frozen-lockfile
pnpm build:ext            # runs tools/vendor.mjs, then web-ext build
# output: dist/power-loader-1.0.0.zip, and the packaged tree is extension/

Power Loader’s own code in extension/ is not minified, bundled or transpiled. The build copies the libraries listed above and bundles the unmodified Transformers.js web entry with released ONNX Runtime 1.30.0 using esbuild 0.27.2. The upstream all-in-one bundle embeds a prerelease runtime and is excluded. The exact inputs and generated bundle hash are in vendor/BUNDLE.json. Run pnpm vendor to reproduce it; the generated bundle will not match a CDN copy.

Trying it

The quickest way is the hosted demo: fictional casework pages and a forms library at https://powerloader.surprisingly.ltd/demo/. Try the demo walks through every feature step by step. In short:

  1. Open the sidebar. In Settings, enter the library address https://powerloader.surprisingly.ltd/demo/library/, press Connect and allow access to the site.
  2. On the Case tab, tick two forms and start a case.
  3. Open /demo/client-1042.html, press Allow on powerloader.surprisingly.ltd, then Clip this page. Clip the rent account (it produces a conflict) and client-2077 (a different person, which shows the identity warning).
  4. Open /demo/dhp.html and press Fill this form. The plan is shown before anything is filled, and Power Loader never submits.

Page and library access is asked for at run time, through the optional host permission, so the demo needs no extra permission in the manifest. The demo pages are static HTML and their forms only move between pages on this site. AI features need an organisation gateway, which the public demo doesn’t have. Without one, the preview still works and nothing is sent.

The same demo runs offline from the source archive with pnpm demo (library address http://localhost:8787/demo/library/). pnpm test runs the unit tests.

Contact

privacy@surprisingly.ltd