SingleFile is a browser-based utility designed to preserve the visual state and functional integrity of web pages by capturing them as self-contained HTML files. It functions by traversing the document object model to embed external assets, such as images, stylesheets, and scripts, directly into a single document for reliable offline viewing.
The tool distinguishes itself through its ability to handle complex, dynamic web content by executing custom scripts and managing cross-origin resource requests during the capture process. It utilizes isolated execution environments and shadow document fragments to ensure that annotations, highlights, and custom modifications remain intact and conflict-free within the archived file.
Beyond basic archiving, the software supports automated workflows, including the scheduling of recurring page captures and the synchronization of saved files to remote cloud storage providers. These capabilities facilitate long-term content preservation and integration with personal knowledge management systems. The project is available as a browser extension and provides a command-line interface for automated web scraping and content management tasks.