Infomap Online is a client-side web application for running Infomap in the browser without any local installation. All computation runs on the user's machine; no network data is uploaded to a server. The browser runtime is built from the native Infomap code with Emscripten, so it is slower than the standalone CLI.
The JavaScript web worker used by this site is published as
@mapequation/infomap.
The public site lives at mapequation.org/infomap.
This repository targets Node.js 20 and npm.
nvm use
npm ci
npm run devRun the same checks locally as in CI:
npx playwright install chromium
npm run verifyCIruns on every push and pull request. It installs dependencies, runslintandtypecheck, builds the static export, and executes the Playwright smoke test against the exported site.Deployruns after a successfulCIrun onmasterand deploys the testedout/artifact over SSH withrsync --delete.Update @mapequation/infomaplistens for arepository_dispatchevent from theinfomaprepository, pins the new package version, verifies the app, and opens a PR.
Required configuration for infomap-online:
- Secrets:
SSH_HOST,SSH_USER,SSH_KEY,SSH_KNOWN_HOSTS - Optional secret:
SSH_PORT - Optional repository variable:
DEPLOY_BASE_URL
Required configuration for infomap:
- Secret:
INFOMAP_ONLINE_REPO_DISPATCH_TOKEN
Daniel Edler, Anton Holmgren, Martin Rosvall