{"_id":"@cllu/awp-sw","name":"@cllu/awp-sw","dist-tags":{"latest":"0.4.4"},"versions":{"0.4.4":{"name":"@cllu/awp-sw","browser":"dist/sw.js","version":"0.4.4","main":"index.js","type":"module","repository":{"type":"git","url":"git+https://github.com/webrecorder/awp-sw.git"},"license":"AGPL-3.0-or-later","exports":{".":"./src/index.js"},"dependencies":{"@ipld/car":"^5.1.1","@ipld/unixfs":"^2.1.1","@webrecorder/wabac":"2.17.3","auto-js-ipfs":"^2.3.0","client-zip":"^2.3.0","hash-wasm":"^4.9.0","idb":"^7.1.1","p-queue":"^7.3.4","uuid":"^9.0.0","warcio":"^2.2.1"},"scripts":{"build":"webpack --mode production","build-dev":"webpack --mode development","start-dev":"webpack serve --mode development --port 10001 --output-path ./dist --static ${PWD}","lint":"eslint ./src webpack.config.cjs"},"devDependencies":{"eslint":"^8.28.0","raw-loader":"^4.0.2","webpack":"^5.75.0","webpack-cli":"^5.0.0"},"description":"This library has been factored out of [ArchiveWeb.page](https://webrecorder/archiveweb.page) and represents the core service worker implementation necessarily for high-fidelity web archiving.","bugs":{"url":"https://github.com/webrecorder/awp-sw/issues"},"homepage":"https://github.com/webrecorder/awp-sw#readme","keywords":["web","archiving","webrecorder"],"author":{"name":"Ilya Kreymer"},"_id":"@cllu/awp-sw@0.4.4","gitHead":"17eea447eb13a3ea57f6939e21bd190d6f1bbed6","_nodeVersion":"22.2.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-rj4yDfl6jjbL56OmiS0na0RI2+Q6wfEOU4K2as4OnfiGMQyxD8daqx6EsRx4307covGpTT4JIb7TbE0XAUmXsg==","shasum":"84b85a343999a4eb57e63c9de26c806c3d3432e3","tarball":"https://registry.npmjs.org/@cllu/awp-sw/-/awp-sw-0.4.4.tgz","fileCount":10,"unpackedSize":849759,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNjvvmYD6oBQ0GI9yhVrJNhgGTim9fFgSGrgH5/ScCswIhANXRKoXYhbXkYQZnYah0WXi2T+Wvu4NXFmNEx/dFzlRn"}]},"_npmUser":{"name":"cllu","email":"hi@chunlianglyu.com"},"directories":{},"maintainers":[{"name":"cllu","email":"hi@chunlianglyu.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/awp-sw_0.4.4_1717107801678_0.6554149139330698"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-30T22:23:21.567Z","0.4.4":"2024-05-30T22:23:22.000Z","modified":"2024-05-30T22:23:22.293Z"},"maintainers":[{"name":"cllu","email":"hi@chunlianglyu.com"}],"description":"This library has been factored out of [ArchiveWeb.page](https://webrecorder/archiveweb.page) and represents the core service worker implementation necessarily for high-fidelity web archiving.","homepage":"https://github.com/webrecorder/awp-sw#readme","keywords":["web","archiving","webrecorder"],"repository":{"type":"git","url":"git+https://github.com/webrecorder/awp-sw.git"},"author":{"name":"Ilya Kreymer"},"bugs":{"url":"https://github.com/webrecorder/awp-sw/issues"},"license":"AGPL-3.0-or-later","readme":"## ArchiveWeb.page Service Worker (awp-sw)\n\nThis library has been factored out of [ArchiveWeb.page](https://webrecorder/archiveweb.page) and represents the core service worker implementation\nnecessarily for high-fidelity web archiving.\n\nIt extends the [wabac.js](https://webrecorder/wabac.js) library and includes utilities for:\n- Downloading a WARC or WACZ from IndexedDB\n- Signing of WACZ files\n- IPFS support: Uploading of loadable WACZ + replayable page (using ReplayWeb.page) template to IPFS, using [auto-js-ipfs](https://github.com/RangerMauve/auto-js-ipfs)\n- IPFS support: Experimental custom chunking of web archives to improve deduplication.\n- Extensible JSON API for clients using the service worker.\n\n\n## Usage\n\n```\nyarn install @webrecorder/awp-sw\n```\n\nThe library is designed to be used as part of ArchiveWeb.page or other tools that use web archives. It is designed to be used and extended\nas part of the service worker build.\n\n*TODO: provide examples*\n","readmeFilename":"README.md"}