Skip to content

boilerplate for swarmlog-connected frontend apps

Notifications You must be signed in to change notification settings

du5t/hyperplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyperplate

boilerplate for swarmlog-connected webapps

swarmlog-app

what

basically just a cobbled-together mush of substack's views (as received) on life, the internet, and everything, in code form. let's all be hyperminimalist hackertrons.

no but seriously, i needed to find a calm place with web frontend technology and decentralization. this is that place.

run it

  1. npm install -g signalhub
  2. signalhub listen -p 8080
  3. start another terminal sesh
  4. npm start (also inits a keypair)
  5. start another terminal sesh
  6. npm run serve-broadcaster

this gets you to a couple of swarmlog peers, one of which pushes data once per second and runs in a headless electron session. the other one runs in your browser and reactively updates with new data from the swarmlog, including data you input through a text box.

shipping with hyperboot

checkout the "bootable" branch to see how it works. substack is changing hyperboot pretty quickly, but you can ship a bundled webapp with the current version like so:

  1. npm install -g hyperboot
  2. cd src
  3. browserify -d index.js > bundle.js
  4. bump the <meta> version tag in index.html
  5. html-inline index.html > app.html
  6. modify the bundled copy of the GSS engine as detailed in gss#206 so your browser can parse it
  7. hyperboot commit app.html
  8. serve the ./hyperboot directory: ecstatic --cors -p 8000 .hyperboot

a working example is in the bootable branch, under the ./hyperboot directory. you can also pull the bundled app from this gist and test with hyperboot alone.

bits

i'm not planning on adding a router, but if you need a minimal one, something trie-based might be cool.

TODO

  • hook up hyperkv
  • stub controls
  • input+put
  • add stream multiplexing (multiplexing!) w/ dataplex
  • add simple gss styling
  • build hyperbooted version

About

boilerplate for swarmlog-connected frontend apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published