
Webarchive
If you've ever saved a webpage as a .webarchive in Safari and then needed to actually use those files outside of macOS, this skill wraps the WebArchiveExtractor CLI to unpack them into plain HTML and assets. It handles the typical macOS sandboxing quirks by defaulting output to ~/Downloads where the app can actually write, checks that the binary exists before attempting extraction, and can optionally prepend URL paths if you're hosting the result in a subdirectory. One honest take: it's solving a very specific Apple format problem that mostly exists because Safari decided to use binary plist for web archives instead of something portable.
- GitHub stars
- 344
- last updated
- Mar 20, 2026
Install
$ npx -y skills add robrohan/webarchiveextractor --skill webarchive --agent claude-codeInstalls into .claude/skills of the current project.
Files
The user wants to extract a .webarchive file using WebArchiveExtractor.
If arguments were provided ($ARGUMENTS), use them to infer the input file and optionally the output directory or URL prepend. Otherwise, ask the user for the path to the .webarchive file.
How to run WebArchiveExtractor
/Applications/WebArchiveExtractor.app/Contents/MacOS/WebArchiveExtractor [-h] [-o <OutputDirectory>] [-p <URLPrepend>] -i <WebArchiveFile>
Options:
-i <WebArchiveFile>— required — path to the.webarchivefile-o <OutputDirectory>— directory to write extracted files into (optional; defaults to a directory named after the archive next to it)-p <URLPrepend>— URI prefix to prepend to all asset URLs in the extracted HTML (optional; useful when serving the result from a subdirectory)
Shorthand (no flag):
WebArchiveExtractor website.webarchive
A positional argument is treated as the -i value.
Prerequisites
The app must be installed at /Applications/WebArchiveExtractor.app. Check with:
test -x /Applications/WebArchiveExtractor.app/Contents/MacOS/WebArchiveExtractor && echo "found" || echo "not installed"
Sponsors
Details
- Repository
- github.com/robrohan/webarchiveextractor
- Categories
- Frontend Development, CLI & Terminal
- First seen
- Jun 11, 2026