How conanzhangtech/mkstick works
mkstick is a browser-based tool for turning Windows or Linux ISO images into bootable FAT32 USB sticks. Users choose an installer or local ISO, the page reads the image and plans its files, then writes and verifies them on a selected drive. Linux images can be streamed through the Worker and checksum-checked; Windows links are refreshed by a scheduled job. The graph preserves the documented catalogue, mirror, and installer-format capabilities. Some UI handlers and Worker routes were not fully sampled, so those links rely on the README rather than inferred source calls.
Main entry points: flash.js Plan and write · index.js API Worker · app.js Page controller · source.js Image sources
Components 19
Browser workflow
- Installer page
public/index.html - Page controller
public/app.js - USB drive
Image engine
- Image sources
public/lib/source.js - Plan and write
public/lib/flash.js - UDF reader
public/lib/udf.js - ISO reader
public/lib/iso9660.js - Boot-menu patches
public/lib/patches.js - WIM splitter
public/lib/wim.js
Worker services
- API Worker
src/index.js - Installer catalogue
src/index.js - Linux image mirror
src/index.js - Windows link API
src/index.js - Link storage
src/index.js
Windows link refresh
- Scheduled link fetch
jobs/fetch-links.mjs - Microsoft link client
jobs/mslink.js
Other components
- User
- Linux publishers
- Microsoft downloads
Connections 22
- User → Installer page: opens
README.md - Installer page → Page controller: loads
README.md - Page controller → Image sources: opens image
public/app.js - Page controller → Plan and write: builds plan
public/app.js - Plan and write → UDF reader: tries first
public/lib/flash.js - Plan and write → ISO reader: falls back
public/lib/flash.js - Plan and write → Boot-menu patches: gets patch
public/lib/flash.js - Plan and write → WIM splitter: plans split
public/lib/flash.js - Plan and write → Image sources: streams extents
public/lib/flash.js - Plan and write → USB drive: writes and verifies
README.md - Page controller → API Worker: requests catalogue
README.md - API Worker → Installer catalogue: serves
src/index.js - Page controller → API Worker: requests image ranges
README.md - API Worker → Linux image mirror: routes mirror requests
src/index.js - Linux image mirror → Linux publishers: passes through ranges
README.md - Image sources → API Worker: reads remote pieces
README.md - Page controller → Windows link API: requests Windows link
README.md - Windows link API → Link storage: reads stored links
src/index.js - Scheduled link fetch → Microsoft link client: fetches links
jobs/fetch-links.mjs - Microsoft link client → Microsoft downloads: requests download links
jobs/mslink.js - Scheduled link fetch → API Worker: posts fresh links
jobs/fetch-links.mjs - API Worker → Link storage: stores links
src/index.js