← Back to archive

Repo of the Day

AhmadIbrahiim/Website-downloader

Published: Nov 23, 2026

Open repository ↗

💡 Download the complete source code of any website (including all assets). [ Javascripts, Stylesheets, Images ] using Node.js

Summary

Website-downloader is a small Node.js web app that takes a site URL and mirrors it locally. It shells out to wget with --mirror, --convert-links, --adjust-extension, --page-requisites and --no-parent, then compresses the captured files with archiver and sends the archive back to the browser through a socket channel. The UI is plain HTML, and the project ships with a live demo plus deploy buttons for several cloud platforms.

What it is useful for

  • Offline copies of a page or site section. Because --convert-links rewrites links to relative paths and --page-requisites pulls in CSS and images, the downloaded folder can be opened locally and browsed without a network connection.
  • Grabbing front-end assets for inspection. When you need the raw HTML, stylesheets, and images behind a page — for example when debugging a layout or comparing markup versions — a single request gives you the whole set in one archive.
  • Sharing a snapshot with someone else. The app zips the result and streams it back, so you can hand someone a single archive instead of a folder of loose files.
  • Restricting the crawl. --no-parent means the download stays inside the starting directory instead of walking up the whole domain, which keeps the capture scoped to a section you care about.

The wget flags are the core of the behavior, and the README explains each one, so what ends up in the archive is determined by standard wget semantics rather than custom scraping logic.

How engineers can use it

Requirements, straight from the README: Node.js 16 or newer, and wget available on your PATH — the app shells out to it and nothing downloads without it (apt install wget on Debian/Ubuntu, brew install wget on macOS, winget install JernejSimoncic.Wget on Windows).

Running it locally:

git clone https://github.com/AhmadIbrahiim/Website-downloader.git
cd Website-downloader
npm install
npm start

Then open http://localhost:3000/.

Optional settings are read from environment variables:

VariableDefaultEffect
PORT3000Port the server listens on
DOWNLOAD_QUOTA100mSize ceiling passed to wget, so one request cannot fill the disk
DOWNLOAD_TIMEOUT_MS300000How long a single download may run before it is stopped

Limitations worth knowing before you rely on it: wget must be installed separately, the quota and timeout can cut off large crawls, and --no-parent keeps the crawl inside the starting path. The README does not describe any headless-browser rendering, so pages that only build their content in the browser are outside what this tool covers.

For shared or long-running use, the README lists one-click deploy options for Replit, Glitch, Railway, Cyclic, Koyeb, and Render, and invites issues and pull requests for contributions.