https://github.com/rangermauve/load-dat-page
Load a dat webpage in a regular browser using dat-js
https://github.com/rangermauve/load-dat-page
Last synced: 16 days ago
JSON representation
Load a dat webpage in a regular browser using dat-js
- Host: GitHub
- URL: https://github.com/rangermauve/load-dat-page
- Owner: RangerMauve
- License: mit
- Created: 2019-03-02T00:57:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-30T18:35:36.000Z (about 6 years ago)
- Last Synced: 2025-03-30T23:51:07.833Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://ranger.mauve.moe/load-dat-page/
- Size: 1.9 MB
- Stars: 20
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# load-dat-page
Load a dat webpage in a regular browser using [dat-js](https://github.com/datproject/dat-js/).[Try it out!](https://ranger.mauve.moe/load-dat-page/)
- Loads pages off the [Dat](https://datproject.org/) network
- Fully client-side single page application
- Use `?url=someurl` in the address bar to load a `dat://` URL
- Automatically rewrites links to `dat://` URLs to load through the page
- Detects images and loads them from Dat as `blob:` URLs## TODO:
- [x] Intercept `XMLHTTPRequest.prototype.open`
- [ ] Intercept `fetch()``
- [ ] Support arraybuffer responseType
- [ ] DatArchive API
- [ ] `experimental.datPeers` API
- [ ] Use streaming for resource rewriting