tsmap

A desktop and web application for loading and visualising semiconductor wafer map data. Built with Tauri v2 (Rust backend), a WASM parser for the browser, and wafermap (canvas rendering).
Documentation & web app →
New to wafer maps or to tsmap? Learn tsmap → is fourteen short lessons, each a set of slides with a lab in the web app.
Desktop builds for Linux, macOS and Windows are attached to every
release, alongside
tsmap-<version>-web.zip — the browser version as a static bundle you can host on your own
intranet, for sites with no external internet access. See
Hosting tsmap on your own server.
Building your own tool? The wafer rendering and analysis engine is available on its
own as wafermap
(@wafertools/wafermap on npm) — the same maps, findings and charts you see here,
embeddable in your application. Use tsmap if you want to look at wafer data; use
wafermap if you need wafer maps inside something you are building.
Questions or ideas? Use GitHub
Discussions.
Features
- Open STDF, ATDF, CSV, JSON, and Parquet wafer map files, including
.gz, .bz2 and .zip containers
- Scan a folder — point tsmap at a directory of hundreds of files (or drop the folder on the window) and it scans only their header metadata (lot ID, part type, tester, wafer count, dates) into a sortable, filterable table, so you load just the handful you actually want. Subfolders are opt-in; mixed formats scan together; a filter can be saved and reloaded
- Multi-wafer — all formats support multiple wafers; renders as a gallery automatically
- Stats & findings — yield, bin breakdown, ring/quadrant analysis, and spatial findings
- Coordinate-less dies — X/Y position is optional; a wafer with no reported position shows a CSV-exportable die list instead of a fabricated map, and a partly-positioned wafer shows both
- Charts & Insights — yield by wafer, bin pareto, per-test box plots and histograms, and a cross-test correlation matrix
- Your own charts — Insights has a Chart tab, a chart builder (scatter, histogram, box, bar, line and response-curve sweeps over any test, die field or wafer attribute); the charts are kept between sessions and move between machines with Export charts… / Import charts…
- Data tables — the lot as sortable tables (statistics, every die, one row per wafer) with CSV export, from Insights’ Data tab or Data tables in the Reports menu; right-click a selection, a card or a chart mark to chart or tabulate just those dies
- Reticle and multi-project wafers — Setup ▾ → Reticle… draws the stepper field grid and finds failures that repeat in every field; a multi-project wafer can be drawn on a Compact layout
- Validity limits — a long-format file or a test-definitions file can carry the range a real measurement lies in; Setup ▾ → Exclude values outside limits… keeps tester clamps and open-circuit readings out of the map, statistics and charts, and counts them
- Wafer splits — attach a process corner or experiment group to each wafer, load and save the assignment as CSV, and group every chart by it
- Test selector — for files with many tests, a two-pass flow lets you choose which tests to import before the full parse; Setup ▾ → Tests… re-opens the selector after load
- Open from a URL —
tsmap --url <url> --url-format <format> on desktop, ?dataUrl=&dataFormat= on the browser build, or a tsmap://open?url=… deep link from your own web page. --url-headers <file> covers data APIs that authenticate via a header. See Integrations and the live demo
- File associations — Preferences → File associations… (desktop) registers tsmap as the default handler for
.stdf/.atdf/.parquet, so double-clicking one in a file manager opens it here
- PNG export — save any wafer map from the toolbar
- Cross-platform — Linux (Wayland/X11), macOS, Windows 11; also runs in the browser via WASM
| Format |
Parsing |
Notes |
| STDF |
Rust |
Binary V4; MIR (lot meta), SDR (site map), WIR/WRR (wafer), PIR/PRR (die — hbin, sbin, x, y), PTR/FTR (parametric/functional test values) |
| ATDF |
Rust |
ASCII V4; MIR (lot meta), WIR/WRR (wafer), PIR/PRR (die — hbin, sbin, x, y), PTR/FTR (parametric/functional test values) |
| CSV |
Rust |
Column mapping step before render; supports wide and long (pivot) formats |
| JSON |
Rust |
Flat array or nested [{ wafer fields, results: [{die}] }]; same mapping step as CSV |
| Parquet |
Rust |
Typed, columnar; same mapping step as CSV/JSON with a type-mismatch hint. snappy/gzip/lz4/brotli on desktop and web; zstd desktop-only |
Installing past security warnings
tsmap is free and open source, but its installers are not code-signed — signing certificates cost money and grant no extra safety, only a vendor’s stamp. As a result, your OS may warn that the app is from an “unknown publisher” or is “possibly dangerous.” This is expected. The steps below let you install anyway. If you’d rather avoid installing at all, the web version runs entirely in your browser with no download.
Windows
Running tsmap-<version>-windows-x64.msi (or the -setup.exe installer) triggers a blue “Windows protected your PC” SmartScreen dialog:
- Click More info.
- Click Run anyway.
The warning appears because the installer has no signature and no download reputation yet; it will fade as more people install the app.
macOS
macOS Gatekeeper blocks unsigned apps by default with “tsmap can’t be opened because it is from an unidentified developer.” To open it:
- In Finder, locate tsmap in Applications.
- Right-click (or Control-click) the app and choose Open.
- Click Open in the dialog that appears.
You only need to do this once — macOS remembers the choice.
If macOS instead says the app is “damaged and can’t be opened” (common on Apple Silicon for downloaded unsigned apps), clear the quarantine flag in Terminal:
xattr -dr com.apple.quarantine /Applications/tsmap.app
Linux
.AppImage, .deb, and .rpm builds run normally; any warning is just a browser download nag. For .AppImage, mark it executable first:
chmod +x tsmap-*-linux-x86_64.AppImage
./tsmap-*-linux-x86_64.AppImage
To verify a download is intact, compare its checksum against the one published on the releases page.
Development
npm install
npm run tauri dev # full Tauri app (Rust + frontend)
npm run dev:web # web version at http://localhost:5301 (uses WASM parser)
cargo check # type-check Rust (run from src-tauri/)
npx tsc --noEmit # type-check TypeScript
cargo test # run parser tests (run from packages/parsers/)
Generating test files
python3 scripts/generate_stdf.py # synthetic STDF — 3 wafers, 4 tests
python3 scripts/generate_stdf_large.py # large STDF — 25 wafers, 50 tests, ~10k dies/wafer (341 MB)
python3 scripts/generate_atdf.py # synthetic ATDF — same structure
Files land in ~/.cache/wafertools/fixtures/ — override with WAFERTOOLS_FIXTURES, or pass a path as the first argument. Not /tmp: that is a RAM-backed tmpfs on systemd distros, and these files are large (the STDF one is 341 MB).
Building and publishing the WASM parser package
The parsers compile to a shared crate (packages/parsers) that targets both native Tauri and WASM. The published npm package is @wafertools/testdata-parser.
Prerequisites: wasm-pack (cargo install wasm-pack) and the wasm32-unknown-unknown target (rustup target add wasm32-unknown-unknown).
Bump the version in packages/parsers/Cargo.toml, then, from the repo root:
npm run parser:publish -- --otp=YOUR_6_DIGIT_CODE
Do not build it with a bare wasm-pack build, and do not publish by hand from pkg/.
pkg/ is generated output whose package.json lists the files npm will ship; a bare build
regenerates that list and drops llms.txt, and the publish then succeeds without it.
parser:publish runs the optimised build, the sync, and a guard that refuses to publish an
incomplete pkg/. See docs/development.md for the full reasoning.
After publishing a new version, update tsmap to use it:
# from repo root
npm install @wafertools/testdata-parser@^NEW_VERSION # pin what you published
npx tsc --noEmit # verify types still resolve
Architecture
src/
main.ts — app entry: file open, two-pass test selector, renderWafers, chart view
platform.ts — platform adapter: Tauri IPC (desktop) or WASM-in-a-Worker (browser)
parserWorker.ts — web-only module worker running the WASM parsers off the UI thread
lib.ts — pure, DOM-free helpers extracted from main.ts for testability
columns.ts — reads and edits a wafer's records as columns (bins, positions, test selection, unit scaling)
types.ts — shared types: ParsedFile, WaferData, TestDef, LotMeta
guideExtension.ts — GENERATED (scripts/build-user-guide.mjs): tsmap's own guide
content, folded into wmap's guide window via userGuideExtension
mappingUI.ts — CSV/JSON/Parquet column mapping overlay
multiFileUI.ts — multi-file rename and append confirmation
testSelectorUI.ts — test selector overlay for large STDF/ATDF files
fileFilterUI.ts — folder/batch scan: header-only metadata into a filter table
filterTable.ts — generic sortable/filterable table behind the file filter
toggleGroup.ts — shared segmented toggle (file-kind buttons, test-type filter)
listSelection.ts — shared multi-row range selection (shift-click, keyboard)
fileAssociationsUI.ts — "File associations…" dialog (Tauri only)
splits.ts / splitsUI.ts — wafer splits: a user-assigned grouping axis over metadata
waferGeometry.ts / waferGeometryUI.ts — wmap's wafer diameter + edge-exclusion band (mm), global values
reticle.ts / reticleUI.ts — the stepper field size (dies) behind the reticle grid and reticle-position findings
valueFilter.ts / valueFilterUI.ts — which limit set a test value must lie inside to be used (validity limits by default); wmap applies it and counts what it excludes
retestPolicy.ts / retestPolicyUI.ts — which result counts for a die probed more than once (the last by default); wmap applies it
mapPrefs.ts — remembered wafer-map preferences (every key wmap classes as one)
plotPrefs.ts — the saved charts behind Insights' My charts tab (as wmap's own plots file) and the filter and the saved filters
reportConfigs.ts — the report configurations (sections, charts, order, title) by name, the two standard ones always there
reportDialogUI.ts — Presentation…: choose a presentation's sections and charts, keep the choice by name, present it or save it as HTML or PowerPoint
reportPptx.ts — writes a report's slides (wmap's layout) as a PowerPoint file with pptxgenjs, loaded on first use
binDefs.ts — hard/soft bin names + pass/fail flags, overriding HBR/SBR or supplying them for CSV/JSON/Parquet
savedMappings.ts / settingsFile.ts / settingsFilesUI.ts — the saved column mappings and the other saved settings as files (export, import), with Preferences → Export or import settings…
setupFile.ts / setupFileUI.ts — the setup file: diameter, edge exclusion, reticle, retest policy and value filter in one CSV, with its Setup ▾ dialog and --setup
derivedEditor.ts / derivedEditorUI.ts — the Derived tests… table in the test selector: add, edit and delete derived tests, each expression checked by wmap
testEditor.ts / testEditorUI.ts — the Edit limits… table in the test selector: the model (rows, what differs from the data, overrides) and its dialog
binEditor.ts / binEditorUI.ts — the Bin definitions… editor: the model (rows, loaded file as edits, pass bins, yield) and its dialog
definitionsTable.ts — the editable table the definitions dialogs share: edited markers, per-row revert, range selection
limitNames.ts — the one table of limit column names (test vs spec limits), shared by the definitions reader and the column mapping
headerKey.ts — the header normalisation every column-name alias table is keyed by
definitionsTemplatesUI.ts — "Definitions file formats…": save example test/splits/bin-definitions files with nothing loaded
metadata.ts — faceting metadata: distinct wafer-provenance values to group by
wcr.ts — STDF wafer configuration record code tables, shared by geometry and display
units.ts — converts a test recorded in another SI prefix (mV vs V) to the lot's unit on load
webLimits.ts — the browser build's size limit (test values its WASM parser can hold)
recentFiles.ts — recently opened file sets on the empty state (desktop only)
storageKeys.ts — the registry of every persisted preference, + legacy-key migration
session.ts — the loaded lot (wafers, test/bin definitions, derived tests, scan state) as one object
loadPipeline.ts — the load flow (`runLoad`): archives, mapping, test scan + selector, parse, naming, append, render — dialogs and platform injected
logBadge.ts — the Log button's new-warning/new-error counts
logContextMenu.ts — the log panel's right-click menu: Select all, Copy all
resetSettingsUI.ts — Preferences ▸ Reset saved settings…
提示:代码过长已自动截断
Dependencies
Seven npm runtime dependencies, and no bundled UI framework or third-party charting library.
Frontend (npm)
Rust — shared parser crate (packages/parsers, published to npm as @wafertools/testdata-parser; builds for both native and wasm32)
parquet — Parquet reader, used through its row-oriented record API (no arrow dependency, which keeps the wasm bundle small). zstd is enabled on native only, since its C library needs a cross-compiler toolchain the wasm build can’t assume
csv — CSV/TSV reader
flate2 — transparent .gz decompression (pure-Rust backend, so it builds for wasm)
bzip2 — transparent .bz2 decompression (pure-Rust libbz2-rs-sys backend, so it builds for wasm)
serde · serde_json · indexmap — data model and JSON parsing
wasm-bindgen · serde-wasm-bindgen — the browser build’s bridge
The STDF and ATDF parsers are written in this crate, not taken from a library — rust-stdf was the original STDF dependency but its ATDF support proved unusable, so both formats are now parsed here.
Rust — desktop shell (src-tauri)
tauri v2 — application shell
tauri-plugin-dialog — native file open/save dialogs (all platforms). On Linux its rfd backend uses the XDG desktop portal, falling back to zenity if present
tauri-plugin-fs · tauri-plugin-opener — filesystem access and opening files/URLs in the OS default handler
tauri-plugin-single-instance — forwards a second launch (file double-click, deep link) into the running window
tauri-plugin-window-state — remembers the main window’s size, position and maximised state between launches (Rust side only; restored by hand in lib.rs’s setup so a first run keeps the 80%-of-screen default)
tauri-plugin-deep-link — the tsmap://open?url=… URL scheme
reqwest — fetches --url data (rustls, no OpenSSL system dependency). Deliberately used instead of tauri-plugin-http, whose scope system needs a pre-configured allow-list and can’t express “fetch whatever URL the caller supplies”
zip — .zip archive extraction
winreg (Windows only) — file-association registration under HKEY_CURRENT_USER\Software\Classes
Support
tsmap is free, open-source and MIT-licensed, and will stay that way. If it saves you time,
you can support it on Ko-fi. If your company relies on it,
please consider sponsoring it monthly: how to support wafertools.
Bug reports and sample files help just as much.
Licence
MIT — © 2026 Paul Robins. The shared parser crate published as
@wafertools/testdata-parser
is covered by the same licence.
评论