Skip to content

Holo-Host/loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Holo.host Loader

This is Pre-Alpha software only for testing purposes.

Description

This is a repository of the JavaScript tool which run on initial load of a web application running on Holo.Host P2P infrastructure.

Every Holo web application starts from the hLoader index.html and index.js. The loader function initHapp reads the current URL and uses this to query the resolver service for Hosts which can provide the static assets and also a holochain node for the app that is registered at this URL.

The resolved returns a collection of host URLs, currently the first one is selected.

The loader then loads content of the hApp into the iFrame. This is also used to configure the websocket connection in hClient.js, the client side holo library, so that it can redirect holochain calls to the holo host.

In the next iteration iFrame will communicate with parent window to update page title, update url and handle browsing history.

Deployment

TODO: Set up automatic deployment to holo infrastructure

About

A JavaScript framework to bootstrap loading of a P2P Holochain app in a web browser via Holo hosting services.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published