Skip to content

An experiment to see if it's possible to create Dat web pages from the old web.

Notifications You must be signed in to change notification settings

jimpick/codemirror-multicore

Repository files navigation

codemirror-multicore

An experiment to see if it's possible to create Dat web pages from the old web.

This is a prototype for doing one-click publishing of Dat websites from a regular web browser.

https://codemirror-multicore.glitch.me/

Overview

This is a work-in-progress. This version is a technical prototype.

Uses indexeddb in the browser to store the master copy. Syncs via websocket to a node.js gateway running on glitch that can talk to the swarm. Supports multiple Dat archives ... you can republish, delete and also export them.

There's also a hard-coded connection to sync to a pixelpusherd instance I have running on a virtual machine on AWS, so the published Dats will stay online even when glitch puts the node.js gateway to sleep.

It works really well with Hashbase. Just publish a quick website with this tool, and then go to hashbase to map it to a regular https url.

The UX on this version is really simple. I'm going to make another version with gentler onboard for those that are unfamiliar with Dat / Beaker / Hashbase.

I think the biggest missing feature is the ability to upload attachments for images, etc.

It's probably not a good idea to open the editor in multiple tabs in your browser ... the hypercores in the indexeddb might get corrupted.

For this style of publishing to be successful, I think there needs to be a way for users to publish from multiple devices. Right now, the master copy is stored in a single web browser, and it is pretty easy to forget which web browser / computer / website combo you used to publish from, which can be an issue if you want to update.

Deploy to Glitch

Remix on Glitch

Note: Some of the dependencies don't work with pnpm, which glitch will use by default. To use regular npm, open up a console and type: enable-npm

License

MIT

About

An experiment to see if it's possible to create Dat web pages from the old web.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages