scmJS docs

In the source

For developers. The extraction is one module shared by every route, and the drawing is under src/formats/.

File Does
src/gamedata/source.ts The search order above, as a chain over injected probes so tests/gamedata.test.ts can pin it without a browser.
src/gamedata/copies.ts What kind of thing a stored copy is (Blizzard's download, your own 1.16 files, Remastered, a mod), for the Game Data page.
src/pages/GameDataPage.tsx, src/pages/data.tsx The Game Data page (data.html), one of the build's three pages, around the dialog's own controls.
src/pages/install.ts The installer page (install.html), the third: the play page frames it to have a Remastered folder installed.
src/gamedata/store.ts The browser's copies, in the Origin Private File System: gamedata/ for the game's own, gamedata-profiles/<id>/ per data set, a stamp file written last so a half-written copy counts as nothing.
src/gamedata/install.ts, modInput.ts, zip.ts The install routes; a picked folder told into the game's archives and the mod (modInput.ts, loaded only when a data set is added). zip.ts reads a zip's directory and single members over HTTP ranges with no zip library; tests/zip.test.ts drives it over a zip built in the test.
src/gamedata/extract.ts The extraction: archives in as a ReadMember, a map of paths to bytes out, no file system and no network. It imports only the iscript and table codecs, so Node runs it without a build step.
src/gamedata/play.ts The files for playing: what the play page reads beyond the editor's files, copied after them.
src/gamedata/extract.worker.ts, scripts/extract-*.mjs, desktop/main.ts The three places the extraction runs: a browser worker, the Node scripts, the desktop's main process (which also holds the disk search and Test Map).
src/gamedata/remastered.ts A StarCraft: Remastered installation in the archives' place, over kascade; tests/remastered.test.ts checks the result against a direct extraction, and against a real installation when SCM_REMASTERED_DIR names one.
src/gamedata/remasteredFolder.ts Telling a Remastered installation folder from a folder pick (.build.info), kept apart so the extraction stays off the startup path.
src/gamedata/remasteredDefault.ts Turning Remastered graphics on after the installer page made a Remastered copy.
src/gamedata/archives.ts, scripts/lib/archives.mjs Opening the game's archives with mopaq, later archives winning, with a mod's files as an overlay; a data set's mod as the files @scm-js/mod reads; and finding the archives on disk.
src/gamedata/profiles.ts, src/services/gameData.ts Data sets: the id and name, the stored choice, and the switch that drops every decoded table and loads again.
src/gamedata/overCopy.ts A data set laid over a copy rather than the game's archives, and the images whose Remastered pictures it turns off.
src/services/mapDataSet.ts The note a map keeps of its data set, and the question asked when it opens elsewhere. tests/map-dataset.test.ts.
src/services/missingTerrain.ts, src/data/remasteredTiles.ts Whose a tile is (the game's, Remastered's additions, a mod's), the notice when the data set in use has not got some of a map's terrain, the installed data set it offers and the folder it draws from. tests/missing-terrain.test.ts.
src/gamedata/folderSet.ts A mod's folder as a data set in memory: its loose files by the game's names, read when asked for. tests/mod-folder.test.ts.
src/components/viewport/missingTile.ts The hatch drawn for a tile the data set has no picture for.
src/formats/dat/table.ts, src/formats/dat/schema.ts Every table at any width (the game's, DatExtend's expanded layout, .datex); the editor's readers in dat.ts pick their columns from it. tests/datasets-widths.test.ts, and tests/datasets-cosmonarchy.test.ts over a mod's maps where SCMJS_COSMONARCHY points at them.
src/data/gameNames.ts The per-entry naming rule; tests/names.test.ts pins the differences against the real files.
src/formats/tileset/hd.ts Remastered's 2x terrain and where its water and lava are. tests/hd-terrain.test.ts.
src/components/viewport/effectPass.ts The WebGL pass that moves Remastered's water and lava over the terrain layer.
src/formats/dat/anim.ts, src/formats/dds.ts Remastered's 2x sprites: the .anim tables and the cut-down copy the extraction keeps, and DXT1 / DXT5 decoding. tests/hd-sprites.test.ts.
src/formats/tileset/ decode.ts for the five files, atlas.ts for the atlas, terrain.ts for the terrain catalogue, palette.ts for the terrain names, cycle.ts for the palette bands, doodads.ts for dddata.bin, load.ts for fetching and the per-tileset cache.
src/formats/dat/ Decoders for the .dat tables, .tbl, GRP, PCX, .lo and the iscript bytecode.
src/formats/units/ The unit tables and lazy sprite loading, the per-frame canvas cache, team colours, and the animator.
src/services/testMap.ts Test Map's browser half.