Skip to content
FlawlessHexagonPublic

About

Experimental local CLI for archiving, mirroring, extracting, and replaying public websites.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

WRelic

WRelic is a local archive console for capturing, extracting, mirroring, and replaying public websites on macOS, Linux, and Windows through WSL2. One arrow-key interface coordinates four specialized engines while keeping captures and private configuration on your computer.

VAULT LOCAL  |  ENGINE READY  |  RELEASE 1.1.0
CAPTURE / PRESERVE / REPLAY

WRelic is an independent project. It is not affiliated with Firecrawl, Webrecorder, or the maintainers of its other upstream engines.

What it creates

  • Preservation archive — replayable WACZ/WARC records with rendered pages, responses, screenshots, text, crawl state, and replay QA.
  • Semantic dataset — clean Markdown, rendered HTML, raw HTML, links, and metadata for reading, analysis, search, or model training.
  • Offline mirror — ordinary HTML, CSS, JavaScript, fonts, images, and other files with links rewritten for local inspection.
  • Media collection — discoverable non-DRM video, audio, subtitles, thumbnails, and metadata.
  • Complete capture — all four layers in one dated Vault record.

No crawler can retrieve server-side source code, databases, unpublished files, inaccessible private content, DRM-protected streams, or resources it cannot discover. COMPLETE WITHIN CONFIGURED SCOPE means the selected scope and safety limits completed; it does not claim mathematical completeness for an infinite or changing website.

Requirements

  • macOS with Docker Desktop, Linux with Docker Engine, or WSL2 with Docker Desktop integration
  • Python 3.9 or newer
  • curl, jq, OpenSSL, and tar
  • Approximately 4–8 GB of free memory for larger captures
  • Enough disk space for your selected capture limit

No LLM, OAuth connection, paid API, or API key is required.

Install

git clone https://github.com/FlawlessHexagon/WRelic.git
cd WRelic
./install.sh
wrelic doctor
wrelic

The installer downloads the latest stable extraction-engine source archive, verifies its layout, creates private runtime configuration, and links the wrelic command into ~/.local/bin. It does not create a nested Git repository.

If your terminal cannot find wrelic, add this to ~/.zshrc or ~/.bashrc and open a new terminal:

export PATH="$HOME/.local/bin:$PATH"

Commands

wrelic                 Open the interactive archive console
wrelic capture         Choose a capture mode
wrelic complete        Run the complete-capture workflow
wrelic scrape          Extract one page
wrelic crawl           Build a multi-page text dataset
wrelic open [JOB]      Replay a local WACZ
wrelic recent          Show recent Vault records
wrelic resume JOB      Resume an interrupted record
wrelic status          Show service and latest-record state
wrelic doctor          Check the complete local installation
wrelic update          Install official stable engine updates

The TUI supports arrow keys, j/k, Enter, numeric shortcuts, Escape, and q. It adapts to narrow terminals, uses synchronized updates to prevent flashing, and respects NO_COLOR.

Local replay

Run:

wrelic open

WRelic selects the primary WACZ rather than its QA archive. On macOS it uses the official ReplayWeb.page desktop app. On Linux it opens ReplayWeb.page and the archive folder. Under WSL2 it opens the Windows browser and reveals the converted Windows archive path. Select the shown WACZ when the browser asks for a file; it is read locally and not uploaded. The viewer is optional and captures remain valid without it.

Platform notes

  • macOS: Docker Desktop and the native ReplayWeb.page app.
  • Linux: Docker Engine or Docker Desktop, plus xdg-open for replay.
  • Windows: run WRelic inside WSL2 with Docker Desktop integration enabled. Native Command Prompt and PowerShell are not supported.

Keep a WSL Vault inside its Linux filesystem for better container and archive performance. WRelic converts paths only when handing a WACZ to Windows.

Project layout

WRelic/
├── .git/                       one project history
├── bin/wrelic                  public command and TUI
├── libexec/                    capture and engine coordinators
├── docker/capture-tools/       mirror/media utility image
├── config/                     publishable configuration templates
├── tests/                      CLI, installer, capture, and release contracts
├── runtime/                    ignored engines, secrets, state, and logs
└── vault/                      ignored captures and extracts

runtime/ and vault/ never belong in a commit. The root .git/ is the only Git repository in the project.

Complete records are stored as:

vault/captures/YYYY-MM-DD/HHMMSS-name/
├── capture.json
├── archive/collections/website/website.wacz
├── semantic/
├── mirror/
├── media/
├── inventory/
├── reports/
└── logs/

Each run creates a new dated directory and never overwrites an older record. capture.json stores scope, safety limits, engine versions, layer attempts, warnings, and resumable state. reports/summary.json gives the final result.

Development

bash -n bin/wrelic install.sh libexec/engine.sh
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tests -v

The suite runs on macOS and Linux and covers public commands, responsive terminal rendering, flicker-free navigation, platform adapters, offline installation, private-data exclusion, WACZ resolution, resource discovery, reporting, and resume behavior.

Responsible use

WRelic provides page, time, and storage limits and can honor robots.txt. You remain responsible for permission, copyright, privacy, site terms, rate limits, and material you redistribute or use for training.

The software is free. Running it still consumes electricity, bandwidth, Docker storage, memory, and disk space. Docker Desktop may require a paid subscription for some commercial organizations under Docker's own terms; Docker Engine has separate licensing and packaging.

License

WRelic is licensed under GNU AGPL-3.0-or-later. See LICENSE and NOTICE. Upstream engines retain their own copyrights and licenses.

About

Experimental local CLI for archiving, mirroring, extracting, and replaying public websites.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages