EEG2BIDS Wizard is a GUI for converting continuous EEG and iEEG recordings to
BIDS. Recordings are opened through MNE-Python's mne.io.read_raw(), so any
continuous format MNE can read may work; EDF and continuous EEGLAB SET
(embedded-data .set and .set/.fdt pairs) are the verified formats. It can
also de-identify EDF headers and use LORIS credentials to retrieve metadata.
Remove saved credentials after using EEG2BIDS on a shared computer.
See the user guide for supported formats, recording, metadata, events, validation, and optional LORIS workflows.
Linux is the supported development target. Production packages are supported for Ubuntu and Windows 11 x64. The Python backend was modernized in #135 (uv-managed package) and the Electron/renderer toolchain in #137 (Electron 43, Vite, sandboxed renderer, safeStorage credentials, Electron-owned backend process).
A supported Linux production build landed in
#170: a .deb that bundles the
Electron app and the PyInstaller-frozen Python backend, with Chromium sandbox
integration for Ubuntu 24.04+. See Packaging to build it and the
installation guide to install it. A Windows 11 x64 NSIS
build landed in #188, including a
frozen backend, Windows process lifecycle support, and native CI smoke testing.
See the Windows packaging guide. An ad-hoc signed
Apple Silicon .dmg covers macOS
(#189); see the
macOS packaging guide. Release
automation (#190) is described in
the release-candidate guide.
Automated backend and Electron integration suites are available for the supported Linux environment; see the testing guide.
Frontend dependency versions are defined by package.json and
package-lock.json; the supported Node.js version by .nvmrc and the
engines field. The Python backend is defined solely by pyproject.toml
and uv.lock; these are the only authoritative Python dependency
definitions. See the dependency inventory and audit guide
for runtime/development classification and security-check commands.
The backend is the first-party eeg2bids package. It is managed with
uv and targets Python 3.11+. During
development, Electron launches it automatically (see Development below); to
run it manually:
uv sync --frozen # create ./.venv and install the locked dependencies
uv run python -m eeg2bids # start the local Socket.IO service on 127.0.0.1:7301uv sync creates a root .venv; there is no virtual environment inside the
package directory. Do not add a requirements.txt or install dependencies with
pip — change pyproject.toml and run uv lock instead.
The Socket.IO service runs on the standard-threading runtime (Werkzeug +
simple-websocket); the previous eventlet runtime has been removed.
See docs/development.md for the full workflow: debugging tools, logging, backend connection states, generating synthetic development data, and the manual verification procedure.
- Node.js 24 (declared in
.nvmrc; anything satisfying theenginesfield, Node >= 22.12, works). With nvm:nvm install. - uv on
PATHfor the Python backend (uv resolves the required Python 3.11+ itself). - A secret service — GNOME Keyring or KWallet — for secure LORIS credential storage. Without one the app still runs but warns that stored credentials are only obfuscated (see Credential storage below).
npm ci # install frontend dependencies from the lockfile
npm run dev # renderer (Vite on port 3000) + Electron + Python backendSee Launching for how Electron owns the backend process and how to run the pieces separately.
See docs/testing.md for test dependencies, fixture policy, troubleshooting, and guidance on which suites a change requires. The complete automated suites run with:
uv run pytest
npm run test:electronOn headless Linux, run the Electron suite with
xvfb-run -a npm run test:electron.
src/— the React renderer (Vite root:index.html+src/index.jsx)electron/main/— the Electron main process, split by concern: lifecycle (index.js), window creation (windows.js), IPC registration and the external-link allowlist (ipc.js), credential persistence (credentials.js), and backend process ownership (backend-service.js)electron/preload/— thewindow.eeg2bidscontext bridge, the only renderer/main interface: fixed IPC channels, serializable values, no Electron objects exposed to the rendererpublic/— static assets copied verbatim into the buildeeg2bids/— the Python backend package
LORIS credentials (URL, username, and password) are encrypted with Electron
safeStorage and persisted under the application userData directory
(~/.config/eeg2bids/ on Linux, %APPDATA%\eeg2bids\ on Windows,
~/Library/Application Support/eeg2bids/ on macOS). On Linux,
secure encryption
requires a secret service (GNOME Keyring or KWallet). When only the
basic_text fallback is available, the app logs an explicit warning that
credentials are obfuscated rather than encrypted; when no backend exists at
all, it refuses to store them. Credentials saved by older keytar-based
builds are not migrated — sign in again.
Ubuntu 24.04+ restricts unprivileged user namespaces, so Electron can abort
at startup with The SUID sandbox helper binary was found, but is not configured correctly. Either grant the setuid bit (must be redone after
every Electron install or upgrade):
sudo chown root:root node_modules/electron/dist/chrome-sandbox
sudo chmod 4755 node_modules/electron/dist/chrome-sandboxor install a persistent AppArmor profile that survives reinstalls (adjust the checkout path):
sudo tee /etc/apparmor.d/electron-eeg2bids <<'EOF'
abi <abi/4.0>,
include <tunables/global>
profile electron-eeg2bids /path/to/EEG2BIDS/node_modules/electron/dist/electron flags=(unconfined) {
userns,
}
EOF
sudo apparmor_parser -r /etc/apparmor.d/electron-eeg2bidsDo not work around it with --no-sandbox.
Supported production packages bundle the Electron app, renderer, and PyInstaller-frozen Python backend, so end users need neither Node, npm, uv, nor a Python interpreter:
- Ubuntu amd64:
.deb - Windows 11 x64: unsigned, per-user NSIS installer
- macOS 15+ on Apple Silicon: ad-hoc signed, not notarized
.dmg
Build natively from the authoritative lockfiles:
npm run dist:linux # on Linux: .deb
npm run dist:windows # on Windows: x64 NSIS installer
npm run dist:mac # on an Apple Silicon Mac: arm64 dmgArtifacts are written to dist/electron/. PyInstaller must run on the target
operating system; the Windows and macOS backends cannot be cross-compiled from Linux. The
freeze step alone is npm run freeze:backend, using
tools/eeg2bids-backend.spec and the locked packaging dependency group.
The Package GitHub Actions workflow builds all three platforms natively, smoke
tests the installed Windows and macOS applications and managed backend, generates
platform-specific SHA-256 files, and uploads workflow artifacts. Immutable RC
tags invoke that workflow and publish a GitHub prerelease for manual QA; see the
release-candidate guide. Final promotion remains a separate,
protected manual operation.
See the installation guide, the Windows packaging guide, the macOS packaging guide, and the historical Linux packaging design.
