CircuitJS standalone editor — downstream corresponding source and rebuild Fixed upstream commit: 8ac55f22a03606579b822b3dccd4dc10de1ddc5b Upstream: https://github.com/pfalstad/circuitjs1 Source package: circuitjs1-8ac55f22-corresponding-source.zip Source package SHA-256: de48917ab70f2c30fde20a30974ca38caadc2c26e0e99847c624e4ae81502102 This is an Electronics Workbench downstream TS-build source package, NOT the unmodified official archive. It retains complete TypeScript/build source, the lockfile/configuration and original root README/COPYING. It replaces the mixed font directory with EW Circuit Icons and complete editable generation sources. Readable lz-string 1.5.0 runtime implementation and MIT notices are included. Unused Java/war/cxx/app resources, six old PNGs, original mixed font binaries, node_modules, generated dist and caches are excluded. Original upstream archive provenance only (not distributed by this package): https://codeload.github.com/pfalstad/circuitjs1/zip/8ac55f22a03606579b822b3dccd4dc10de1ddc5b Original official ZIP SHA-256: a4ce8ee4a3f969902e4b6041ac76cf43ea536dcb00891b4fa74ce49c0c41d014 The ZIP holds original, UNPATCHED main.ts, UIManager.ts, CircuitElm.ts and style.css. The separate rebuild.py applies the documented source transformations once. Each modified file starts with Electronics Workbench, modification date 2026-11-19, its changes and GPL-2.0-or-later; original author headers remain. Readable workbench.html/js/css, engine-theme.css, source patches, rebuild.py and package-source.py are supplied beside the package. The standalone editor needs no site framework checkout or production credentials. Rebuild using Node v24.13.0, npm 11.6.2, Python 3.9+, fonttools 4.60.2, brotli 1.2.1 (font binary toolchain details are in icon-source/verification.json): 1. Download circuitjs1-8ac55f22-corresponding-source.zip, BUILD.txt, rebuild.py, package-source.py, workbench.html, workbench.js, workbench.css, engine-theme.css, NOTICE.html, ASSET-PROVENANCE.json, hosting.patch, engine.patch, main.ts.txt, UIManager.ts.txt, CircuitElm.ts.txt, style.css.txt and the licenses directory together. The ZIP already includes icon-source/ and third-party-source/. 2. Install the fixed icon build dependencies in the Python interpreter you use: python3 -m venv /tmp/ew-circuit-build /tmp/ew-circuit-build/bin/pip install fonttools==4.60.2 brotli==1.2.1 3. /tmp/ew-circuit-build/bin/python rebuild.py --source circuitjs1-8ac55f22-corresponding-source.zip --output ./rebuilt Use a NEW or EMPTY output directory. The script refuses a nonempty directory so an older build cannot silently retain removed fonts, images or source ZIPs. The script verifies the source package SHA, regenerates all seven font assets offline and verifies their bytes, applies exact source changes, runs npm ci --ignore-scripts --no-audit --no-fund, checks the installed lz-string source against the offered source, then runs npm run build in ts/. 4. Serve rebuilt/ over HTTP, e.g. python3 -m http.server 8080 --directory rebuilt Open http://127.0.0.1:8080/workbench.html Independent font regeneration after extracting the source package: cd circuitjs1-8ac55f22-corresponding-source /tmp/ew-circuit-build/bin/python icon-source/build-icons.py --output ts/public/circuitjs/font The original mixed font is not needed. All seven replacement custom SVGs, the 33 retained OFL glyphs as editable TTX, codepoint/family attribution, cleaned config, OFL text and the generation script/requirements are included. Manual source build after extracting the package: git apply --unidiff-zero /path/to/engine.patch mkdir -p ts/public/images cd ts npm ci --ignore-scripts --no-audit --no-fund npm run build The upstream copy hook expects an images directory; the automated script creates an EMPTY temporary directory for that step. No legacy PNG or empty directory needs to be published. Full modified main.ts.txt, UIManager.ts.txt, CircuitElm.ts.txt and style.css.txt are also supplied for direct comparison. Apply hosting.patch to the generated HTML or use hosted_html() from rebuild.py. Repackage from original upstream source and the reviewed resource directory: python3 package-source.py --upstream-source /path/to/original-upstream.zip --resources . --output /tmp/circuitjs1-8ac55f22-corresponding-source.zip This also works from inside the extracted source root. ZIP entry ordering, timestamps and permissions are fixed. The original upstream archive is checked against its provenance hash before packaging. This does not relabel the revised package as an official upstream release. Recorded changes, 2026-11-19: - main.ts: remove optional offline service-worker registration. - UIManager.ts: side-control padding geometry, explanatory power-colour help, light canvas #e2eaf4 and information panel colours. Dark mode is unchanged. - CircuitElm.ts: same-centred 6x6 copper outline around the original 4x4 moving current dot core in light mode. Current/phase/spacing and dark mode unchanged. - style.css: remove old hborder image URL, preserving original solid background. - Static source: replace original custom font artwork with independent geometric SVGs and a renamed EW Circuit Icons font, retaining 33 credited OFL glyphs; remove six unnecessary legacy PNGs. Generation sources and licences retained. - Hosted HTML: dated modification comment, remove optional external Dropbox loader/key and incorrect manifest link, add viewport/robots/resource policy and the separate local editor theme. Numerical algorithms are unchanged. - Separate hosting controls: examples, run/pause, readings, local draft and native XML/legacy text import/export; no production account or database dependency. Licence and source references: - licenses/GPL-2.0.txt and original README/COPYING in the source package. - icon-source/OFL.txt, retained-ofl-glyphs.json, README.txt and verification.json. - licenses/EW-Circuit-Icons-OFL.txt and current font author attribution pages. - third-party-source/lz-string/libs/lz-string.js, LICENSE and SOURCE.json. - circuitjs/about.html retains upstream notices, including canvas2svg/Berkeley; canvas2svg.js and matrix sources are in ts/ within the corresponding package. - ASSET-PROVENANCE.json identifies supplied asset groups and licences. Upstream ts/package.json says ISC while its README and engine source headers say GPL v2 or later; this distribution follows the source GPL declarations, not that metadata field. Each font/dependency retains its separate terms. The engine is third-party software, not presented as an Electronics Workbench invention. This records what is distributed; it makes no legal conclusion about unrelated website code and gives no warranty for physical circuit design.