Skip to content
A helpful widget for viewing the source of a dat site.
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor/highlight
.datignore
LICENSE
README.md
dat.json
docs.css
explorer.css
explorer.js
index.html
index.js
util.js

README.md

Dat Source Explorer

A helpful widget for viewing the source of a dat site.

dat://source-explorer.hashbase.io

Usage

Import the CSS and Javascript into your site. In your HTML:

<link rel="stylesheet" href="dat://source-explorer.hashbase.io/explorer.css">

In your Javascript:

import * as explorer from 'dat://source-explorer.hashbase.io/explorer.js'

explorer.setup(document.body, {
  url: window.location.toString(), // defaults to window.location
  folder: '/',                     // defaults to '/'
  file: 'index.html'               // defaults to 'index.html'
})
You can’t perform that action at this time.