@internetarchive/dweb-archive
Archive UI to run in Browser
Last updated 3 months ago by mitraardron .
AGPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @internetarchive/dweb-archive 
SYNC missed versions from official npm registry.

dweb-archive

User Interface to access the archive from the browser. Builds on dweb-transports and typically (currently) loaded from dweb-transport

Background

This library is part of a general project at the Internet Archive (archive.org) to support the decentralized web.

Goals

  • to allow unmodified browsers to access the Internet Archive's millions of items
  • to support as many of the IA's features as possible, adding them iteratively
  • to use decentralized platforms for as many features as possible, without sacrificing functionality
  • to avoid single points of failure where possible

Installation

Please see the installation instructions in the dweb-mirror repo They are much more recent than the ones below.

All cases

git clone https://git@github.com/internetarchive/dweb-archive.git
cd dweb-archive

# install the dependencies including IPFS & WebTorrent and dweb-transports
npm install  

Installation for testing in a browser

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` 
cd dist
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"

Node Installation to work on this repo

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 development

See related:

Repos:

  • 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 table

Directory 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
  • util - just has throttler.js and to be honest I can't remember why its off on its own
  • web_modules - compiled by pix for web components (radio-player is the only one, but that has dependencies)
Files
  • archive.html - main file for displaying archive (detail or search) pages
  • archive.js - top level for creating archive-bundle.js
  • dweb-archive-styles.css - CSS styles for dweb, note that it uses standard archive styles in includes/archive.css for most
  • LICENSE - standard GNU Affero licence
  • webpack.config.js - defines bundling, and in particular which files are needed for the distribution
  • ... some more TODO documentation

Class hierarchy

  • ArchiveFile - represents a single file
  • ArchiveItem - represents data structures for an item (a directory of files)
    • ArchiveBase - Subclass ArchiveItem to add functionality specific to this UI
  • ArchiveMember - represents a listing for an item (e.g. in a search)
  • React.Component - Standard React class used for building components
    • Lots of stand-alone components
    • AVDWeb - Adds functionality common to adding content to media tags
      • AudioDweb, VideoDweb
  • Nav - common class for navigation structures (mostly at the top of the page) also maps item types to classes

Current Tags

  • 0.2.27                                ...           latest (3 months ago)

94 Versions

  • 0.2.27                                ...           3 months ago
  • 0.2.26                                ...           3 months ago
  • 0.2.25                                ...           3 months ago
  • 0.2.24                                ...           3 months ago
  • 0.2.23                                ...           4 months ago
  • 0.2.22                                ...           4 months ago
  • 0.2.21                                ...           4 months ago
  • 0.2.20                                ...           4 months ago
  • 0.2.19                                ...           4 months ago
  • 0.2.18                                ...           5 months ago
  • 0.2.17                                ...           5 months ago
  • 0.2.16                                ...           5 months ago
  • 0.2.15                                ...           5 months ago
  • 0.2.14                                ...           5 months ago
  • 0.2.13                                ...           5 months ago
  • 0.2.12                                ...           5 months ago
  • 0.2.11                                ...           5 months ago
  • 0.2.10                                ...           5 months ago
  • 0.2.9                                ...           6 months ago
  • 0.2.8                                ...           6 months ago
  • 0.2.7                                ...           6 months ago
  • 0.2.6                                ...           7 months ago
  • 0.2.5                                ...           7 months ago
  • 0.2.4                                ...           7 months ago
  • 0.2.3                                ...           7 months ago
  • 0.2.2                                ...           7 months ago
  • 0.2.1                                ...           8 months ago
  • 0.2.0                                ...           8 months ago
  • 0.1.99                                ...           8 months ago
  • 0.1.98                                ...           8 months ago
  • 0.1.97                                ...           9 months ago
  • 0.1.96                                ...           9 months ago
  • 0.1.95                                ...           9 months ago
  • 0.1.94                                ...           9 months ago
  • 0.1.93                                ...           9 months ago
  • 0.1.92                                ...           9 months ago
  • 0.1.91                                ...           10 months ago
  • 0.1.90                                ...           10 months ago
  • 0.1.89                                ...           10 months ago
  • 0.1.88                                ...           10 months ago
  • 0.1.87                                ...           10 months ago
  • 0.1.86                                ...           10 months ago
  • 0.1.85                                ...           a year ago
  • 0.1.84                                ...           a year ago
  • 0.1.83                                ...           a year ago
  • 0.1.82                                ...           a year ago
  • 0.1.81                                ...           a year ago
  • 0.1.80                                ...           a year ago
  • 0.1.79                                ...           a year ago
  • 0.1.78                                ...           a year ago
  • 0.1.77                                ...           a year ago
  • 0.1.76                                ...           a year ago
  • 0.1.75                                ...           a year ago
  • 0.1.74                                ...           a year ago
  • 0.1.73                                ...           a year ago
  • 0.1.72                                ...           a year ago
  • 0.1.71                                ...           a year ago
  • 0.1.70                                ...           a year ago
  • 0.1.69                                ...           a year ago
  • 0.1.67                                ...           a year ago
  • 0.1.66                                ...           a year ago
  • 0.1.65                                ...           a year ago
  • 0.1.64                                ...           a year ago
  • 0.1.62                                ...           a year ago
  • 0.1.61                                ...           a year ago
  • 0.1.60                                ...           a year ago
  • 0.1.59                                ...           a year ago
  • 0.1.58                                ...           a year ago
  • 0.1.57                                ...           a year ago
  • 0.1.55                                ...           a year ago
  • 0.1.54                                ...           a year ago
  • 0.1.53                                ...           a year ago
  • 0.1.52                                ...           a year ago
  • 0.1.51                                ...           a year ago
  • 0.1.50                                ...           a year ago
  • 0.1.49                                ...           a year ago
  • 0.1.48                                ...           a year ago
  • 0.1.47                                ...           a year ago
  • 0.1.46                                ...           a year ago
  • 0.1.44                                ...           a year ago
  • 0.1.42                                ...           a year ago
  • 0.1.40                                ...           a year ago
  • 0.1.38                                ...           2 years ago
  • 0.1.36                                ...           2 years ago
  • 0.1.34                                ...           2 years ago
  • 0.1.32                                ...           2 years ago
  • 0.1.30                                ...           2 years ago
  • 0.1.28                                ...           2 years ago
  • 0.1.26                                ...           2 years ago
  • 0.1.24                                ...           2 years ago
  • 0.1.22                                ...           2 years ago
  • 0.1.20                                ...           2 years ago
  • 0.1.18                                ...           2 years ago
  • 0.1.16                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 94
Last Month 94
Dependencies (25)

Copyright 2014 - 2016 © taobao.org |