HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
gildas-lormeau
SingleFile
JavaScript2018–2026
gildas-lormeau / SingleFile

SingleFile

Web Extension for saving a faithful copy of a complete web page in a single HTML file

66Distinct people
113Mentions
1Explicit recommenders
22.9KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Web Extension for saving a faithful copy of a complete web page in a single HTML file

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

Personally, I prefer VimWiki for taking notes during my work. So it is a place to mix ideas, small documentations and snippets of things I found on the web. Since I most of the…

zirkuswurstikus used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 9–Nov 16 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/16/2026, 5:58:53 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year113 dated mentions

Observed mentions: 2018-07-04 16:05:39 UTC to 2026-10-27 01:32:30 UTC.

05101520252018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 4 mentions; 1 submissions, 3 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 18 mentions; 3 submissions, 15 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 12 mentions; 1 submissions, 11 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 9 mentions; 0 submissions, 9 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 23 mentions; 1 submissions, 22 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 9 mentions; 0 submissions, 9 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 23 mentions; 1 submissions, 22 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 11 mentions; 0 submissions, 11 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC413
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC18315
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC12111
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC909
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC23122
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC909
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC23122
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC11011
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC404

From the project README

An excerpt from the repository, fetched Nov 13, 2026.

Read the project’s introduction
SingleFile SingleFile helps you to save a complete web page into a single HTML file. SingleFile is a Web Extension (and a CLI tool) compatible with Chrome, Firefox (Desktop and Mobile), Microsoft Edge, Safari, Vivaldi, Brave, Waterfox, Yandex browser, and Opera. Table of Contents SingleFile Table of Contents Demo Install Getting started Additional notes FAQ Release notes Known Issues and Troubleshooting Command Line Interface (SingleFile CLI) Integration with user scripts File format comparison Projects using/compatible with SingleFile Privacy Policy Contributors Code derived from third party projects Icons License Demo Demo.SingleFile.mp4 Install SingleFile can be installed from the store of: All browsers: https://www.getsinglefile.com Firefox: https://addons.mozilla.org/firefox/addon/single-file Firefox for Android: https://addons.mozilla.org/android/addon/single-file Chrome: https://chromewebstore.google.com/detail/singlefile/mpiodijhokgodhhofbcjdecpffjipkle Safari (macOS and iOS): https://apps.apple.com/us/app/singlefile-for-safari/id6444322545 Microsoft Edge: https://microsoftedge.microsoft.com/addons/detail/efnbkdcfmcmnhlkaijjjmhjjgladedno You can also download the zip file (https://github.com/gildas-lormeau/SingleFile/archive/main.zip) of the project and install it manually by unzipping it somewhere on your disk and following these instructions: Firefox: https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox Chrome and Microsoft Edge: https://github.com/gildas-lormeau/SingleFile-MV3 Safari: https://github.com/gildas-lormeau/SingleFile-Safari-Extension Getting started Click on the SingleFile button in the extension toolbar to save the page. You can click again on the button to cancel the action when processing a page. Additional notes Open the context menu by right-clicking the SingleFile button in the extension toolbar or on the webpage. It allows you to save: the current tab, the selected content, the selected frame. You can also process multiple tabs in one click and save: the selected tabs, the unpinned tabs, all the tabs. Select "Annotate and save the page..." in the context menu to: highlight text, add notes, remove content. The context menu also allows you to activate the auto-save of: the current tab, the unpinned tabs, all the tabs. With auto-save active, pages are automatically saved every time after being loaded (or before being unloaded if not). Right-click on the SingleFile button and select "Manage extension" (Firefox) / "Options" (Chrome) to open the options page. Enable the option "Destination > save to Google Drive" or "Destination > upload to GitHub" to upload pages to Google Drive or GitHub respectively. Enable the option "Misc. > add proof of existence" to prove the existence of saved pages by linking the SHA256 of the pages into the blockchain. You can use the customizable shortkey Ctrl+Shift+Y to save the current tab or the selected tabs. Go to about:addons and select "Manage extension shortcuts" in the cogwheel menu to change it in Firefox. Go to chrome://extensions/shortcuts to change it in Chrome. The default save folder is the download folder configured in your browser, cf. about:addons in Firefox and chrome://settings in Chrome. See the extension help in the options page for more detailed information about the options and technical notes. FAQ See https://github.com/gildas-lormeau/SingleFile/blob/main/faq.md Release notes See https://addons.mozilla.org/firefox/addon/single-file/versions/ Known Issues and Troubleshooting See https://github.com/gildas-lormeau/SingleFile/blob/main/known-issues.md Command Line Interface (SingleFile CLI) You can save web pages to HTML from the command line interface. See here for more info: https://github.com/gildas-lormeau/single-file-cli. Integration with user scripts You can execute a user script just before (and after) SingleFile saves a page. For more info, see https://github.com/gildas-lormeau/SingleFile/wiki/How-to-execute-a-user-script-before-a-page-is-saved. File format comparison HTML Self-extracting ZIP MHTML Webarchive (Safari) HTML+folder Pages are saved as a single file ✓ ✓ ✓ ✓ HTML and styles are minified ✓ ✓ Unused HTML and styles are removed from files ✓ ✓ Binary resources are not encoded in base 64 ✓ ✓ ✓ Files are compressed ✓ Files can be viewed without installing any extension ✓ ✓¹ ✓² ✓³ ✓ Files can be viewed without running JavaScript ✓ ✓ ✓ ✓ Files can be unzipped to extract page resources ✓ n/a Files contains the text of the page (plain or formatted) which can be indexed ✓ ✓⁴ ✓ ✓ ✓ Footnotes: ¹ When using the "universal" self-extracting file format ² Only in Chromium-based browsers, and Internet Explorer ³ Only in Safari ⁴ An option must be enabled in the extension Projects using/compatible with SingleFile ArchiveBox - Open-source self-hosted web archiving: https://github.com/ArchiveBox/ArchiveBox htmls-to-datasette - Tool to index HTML files into a Sqlite database: https://github.com/pjamar/htmls-to-datasette Karakeep - Self-hostable bookmark-everything app with a touch of AI: https://karakeep.app KOReader - Document viewer primarily aimed at e-ink readers: https://github.com/koreader/koreader linkding - Bookmark manager that you can host yourself. It's designed be to be minimal, fast, and easy to set up using Docker: https://github.com/sissbruecker/linkding Linkwarden - Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place: https://github.com/linkwarden/linkwarden obsidian-html-plugin - Plugin for reading HTML pages in Obsidian: https://github.com/nuthrash/obsidian-html-plugin Org-Dex.el - Emacs package designed to enhance Org-mode by integrating SingleFile CLI: https://github.com/nitincodery/org-dex.el Petal Cite Web Importer - Browser extension to save PDFs and capture web pages in Petal Cite: https:/
Read the full README on GitHub

What Hacker News says

23 sources
seems there was some robust discussion on the 2022 submission https://news.ycombinator.com/item?id=30527999 but I didn't dig into it to discover "but, why?" as compared to the "save" built into the browsers having said that, this here is an instant "nope" for me https://github.com/gildas-lormeau/SingleFile/blob/master/faq... > By default, SingleFile removes scripts because they can alter the rendering and there is no guarantee they will work offline. so, not complete; got it
In Singlefile: A web extension to save a complete web page into a single HTML file
For saving a webpage you have open, I use a browser extension called SingleFile, I've been using it for a while (IIRC I discovered it on HN's front page a few years ago), in my experience it "just works", works really well. You click the "browser action" icon/button of the extension and it saves a single HTML file that looks exactly like the webpage you have open. From its FAQ[1] on GitHub: # What does SingleFile do? SingleFile is a browser extension designed to help users save web pages as complete, self-contained files. The extension's primary function is to capture an entire web page, including its HTML, CSS, JavaScript, images, and other resources, and package them into a single HTML file. # I am a web archivist, is it ok to use SingleFile to archive content? No, SingleFile is not a tool used by professionals to archive conte
Read the rest
nt on the Web, especially in the academic field. Professionals prefer to rely on tools based on the WARC specification instead. [1] https://github.com/gildas-lormeau/SingleFile/blob/master/faq...
In Is stuff online worth saving?
zirkuswurstikus·Oct 18, 2024Recommendation phrase
Personally, I prefer VimWiki for taking notes during my work. So it is a place to mix ideas, small documentations and snippets of things I found on the web. Since I most of the time like to store articles, tutorial or nifty tricks, I like to store the entire website. For this task, my favorite Tool is SingleFile[1]. With SingleFile you can save a Website with embedded images. Also, you can add annotations, and cut away annoying Ads etc. Besides, it supports a distraction free copy of the website. I can highly recommend taking a look. [1]https://github.com/gildas-lormeau/SingleFile
In Using static websites for tiny archives
> But I don't think they're around anymore and have no idea how you could achieve similar functionality with dynamic pages anyway. Chromium's MHTML "Save as…" and the SingleFile WebExtension should both save copies of the rendered DOM. Apparently Safari has WebArchive and Mozilla had MAFF for similar use cases. I think WARC is supposed to save enough data about network streams for dynamic pages to work. At least on the Wayback Machine, infinite scrolling and "Load More" buttons do kinda work sometimes. You may have to load the archived pages in a browser and try to use each dynamic feature at least once, to trigger requests for needed resources. SingleFile: https://github.com/gildas-lormeau/SingleFile LWN on WARC, tools: https://anarc.at/blog/2018-10-04-archiving-web-sites/ Self-hostable web archives: https://awesome-selfhosted.net/tags/a
Read the rest
In The Internet Archive is under a DDoS attack

Showing the 15 most recent of 23 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.