Skip to content

🏛️ 22120 - NodeJS product to self-host the Internet with an Offline Archive. Like binaries? https://github.com/dosyago/22120/releases Similar to ArchiveBox, SingleFile and WebMemex, but gooderer.

License

Notifications You must be signed in to change notification settings

joegle/22120-with-puppeteer

 
 

Repository files navigation

22120 with Puppeteer

About

  • Fork of 22120 project that integrates Puppeteer automation
  • See original 22120 README file at 22120_README.md
  • 22120 saves replayable “verbatim high-fidelity copy” of your browsing sesion to disk

Usage

  • 22120 has two modes: save and serve
  • Both modes start a local server and an isolated Chrome browser instance with debug port opened
  • The isolated Chrome instance will initialize 22120-chrome-dir folder
  • An archive_path folder will be created to save data
    • Web requests are saved in archive_path/public/library/ as base64 encoded blobs within JSON files
  • Original 22120 code is left in place
    • Parallel entry point starts with start_with_puppeteer npm script defined in package.json
  • Command line parameter format
    <server_port> <save|serve> <chrome_port> <archive_path>
        
  • Original save and serve mode example
    npm start 22120 save 9222 ARCHIVE_PATH/
    npm start 22120 serve 9222 ARCHIVE_PATH/
        
  • Run save mode with puppeteer script
    npm run start_with_puppeteer 22120 save 9222 ARCHIVE_PATH/
        
  • Serve mode to browse saved data at localhost:22120/archive_index.html
    npm run start_with_puppeteer 22120 serve 9222 ARCHIVE_PATH/
        
  • Set debug environment variable for more output
    export DEBUG_22120=True
        

About

🏛️ 22120 - NodeJS product to self-host the Internet with an Offline Archive. Like binaries? https://github.com/dosyago/22120/releases Similar to ArchiveBox, SingleFile and WebMemex, but gooderer.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 92.1%
  • HTML 5.9%
  • Shell 2.0%