Archive UI to run in Browser
npm install @internetarchive/dweb-archivePlease see the installation instructions in the
dweb-mirror repo
They are much more recent than the ones below.
git clone https://git@github.com/internetarchive/dweb-archive.git
cd dweb-archiveinstall the dependencies including IPFS & WebTorrent and dweb-transports
npm install
`
$3
Do the "All Case install above"
Install a simple http-server, this may require sudo depending on permissions
`
npm run setuphttp
npm install -g http-server
Now open a browser page.Note: Firefox works better than Chrome for local usage as Chrome limits cross-origin
http to 6 streams and we need to implement a limited http pool to fix this.
open "http://localhost:8080/archive.html"To test with limited transports, for example HTTP only, add the transport parameter.
open "http://localhost:8080/archive.html?transport=HTTP"To test against dweb-mirror you can pass a parameter e.g.
open "http://localhost:8080/archive.html?mirror=localhost:4244&transport=HTTP"
$3
Note that the only reason to do this would be to work on the code,Do the "All Case install above"
Build (webpack) the bundles and copy needed files to dist/
webpack --mode developmentSee related:
* Archive.org bootstrap into the Archive's page
$3
dweb-transports:* Common API to underlying transports (http, webtorrent, ipfs, yjs)
dweb-archive:* Decentralized Archive webpage and bootstrapping
dweb-transport:* Original Repo, still has some half-complete projects
dweb-archivecontroller:* Object model for archive, includes routing tableDirectory structure here
##### Directories
* components - React components used by the UI (see also ia-components)
* dist - all that is needed to run the UI - this is also in its own npm package.
* docs - should be some documentation, but its a bit out of date
* ia-components - More React components, these are dual purpose, they don't depend on Dweb
* images - extra images used (there are also ones in dist/images copied from archive.org)
* includes - files copied over from internet archive, where we build the CSS and JS
* node_modules - installed from the dependencies in package.json by yarn install`