An electron app (and webpage) for studying how people design trusses
Install dependencies with npm and run the quality gates headlessly:
npm run lintto enforce ESLint and Prettier checks.npm testto execute Jest unit tests against renderer helpers.npm run test:uito launch Playwright browser and Electron flows in headless mode. The pre-test helper installs the libXcursor, libxss, libxtst, libgdk-pixbuf, and libgtk runtime dependencies when apt-get is available and writable; otherwise it warns and continues. It always downloads the Electron binary (even when install scripts are skipped) and ensures Playwright Chromium is present before executing tests.
- Electron windows are created with
contextIsolationenabled and the remote module disabled. KeepELECTRUSS_ENABLE_DEVTOOLSunset (or set tofalse) to block DevTools in production binaries; opt in explicitly during development when debugging is required. - Provide a preload script at
preload.jsto expose only the IPC handlers you need. The bundled preload surface currently exposes metadata viawindow.electruss.app.getMetadata()to avoid leaking powerful Electron primitives into the renderer.