INTERNALGuide

Develop the extension

Use this page only for internal extension maintenance; end users should follow Install and Connect.

Local build

bash
$ cd movitera-extension
$ npm install
$ npm run build
# dist/ contains manifest, service worker, content script, popup, and assets

Load in Chrome

  1. 1

    Open `chrome://extensions`.

    Enable Developer mode.

  2. 2

    Click `Load unpacked`.

    Select movitera-extension/dist.

  3. 3

    Test the popup and a login page.

    The default build talks to https://api.movitera.com.

Development commands

CommandUse
npm run watchRun esbuild in watch mode.
npm run build:localBuild against http://localhost.
npm testRun unit tests with Vitest.
npm run typecheckRun tsc --noEmit.

Manifest guardrail

build.mjs fails when code references a chrome.* namespace that the manifest does not cover. Update public/manifest.json before depending on a new API.

Next