Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/KilzaNiko/WimExplorer/llms.txt

Use this file to discover all available pages before exploring further.

WimExplorer exposes a local REST API served by an Express.js process running on your machine. The frontend communicates with this API exclusively; you can also call it directly from scripts or tools like curl.

Base URL

http://localhost:3000
The server only binds to localhost. It is not reachable from other machines on your network and requires no authentication.

Data formats

DirectionFormat
Request body (most endpoints)application/json
Request body (file uploads)multipart/form-data
Responseapplication/json
Log streamtext/event-stream (SSE)

Error format

All error responses use a consistent JSON body with an HTTP 4xx or 5xx status code:
{
  "error": "Descriptive error message"
}
Common status codes:
CodeMeaning
400Missing or invalid request parameter
404File or resource not found
500Internal server error or wimlib/7-Zip failure

Server state

The server maintains a currentWim state object in memory:
FieldTypeDescription
pathstring | nullAbsolute path of the currently open WIM/ESD/SWM file
imageIndexnumberIndex of the currently selected image (1-based)
imagesarrayMetadata for all images in the open file
Most endpoints operate on currentWim. Open a WIM file with POST /api/open before calling browse or file-operation endpoints.

Endpoint quick reference

WIM Operations

MethodEndpointDescription
POST/api/openOpen a WIM/ESD/SWM file and load its image metadata
GET/api/browseReturn a recursive file tree for the current image

File Operations

MethodEndpointDescription
POST/api/extractExtract files or directories to a local folder
POST/api/addUpload and add files into the WIM
POST/api/deleteDelete files or directories from the WIM
POST/api/replaceReplace a single file in-place
POST/api/batch-importBulk-upload files with automatic conflict handling
POST/api/check-conflictsCheck which files already exist in the current image

System & Utility

MethodEndpointDescription
GET/api/statusActive operation count and current WIM path
GET/api/wimlib-versionInstalled wimlib-imagex version
GET/api/7z-statusCurrent 7-Zip detection status
POST/api/7z-testRe-detect and verify 7-Zip
POST/api/7z-installInstall 7-Zip via winget
POST/api/7z-set-pathSet a custom 7-Zip directory
GET/api/pick-fileOpen a native Windows file picker dialog
GET/api/pick-folderOpen a native Windows folder picker dialog
POST/api/wimlib-cmdRun an arbitrary wimlib-imagex command
GET/api/logs/streamSubscribe to the real-time SSE log stream
GET/api/logs/historyRetrieve the last 200 log entries
POST/api/exitShut down the WimExplorer server process

Build docs developers (and LLMs) love