Everything will make sense once there is a v1-release and a video describing everything. Hang tight.
Ok that is very wonderful I was thinking from the earlier update message that you share that it is a website, thank you for clearing me
The end to the wait:
Here is a demo showing the power of ZAP-BTFS-injections repo link : Demo-code-repo
What is it?
It is a simple demo page that uses the two injection swarm.peers and ping to show how easy it is to integrate BTFS into you web-applications.
The rest of the injection-function are under development. while you can checkout the permission object with which own can request permission to their own sites: injection-permission-object-refrence
How it works:
- You allow a specific site to access the injection funcitons like swarm.peers and ping using the injection page in ZAP,
- And next use the injection out of the window object and wallaha!! you have access to BTFS in you Web-pages.
A video showing the demo is THIS.
Alert: A release has not been made public for zap yet.
This is very amazing work, keep it up
I just saved to my “watch later”, kudos!!
One injection at a time.
Showing the pub-sub injection:
What exactly are injections??
Well, the BTFS commands like “btfs swarm ping” or “btfs upload <cid>” can only be run in a command line. Via the Zap browser those commands and functionality comes right to your fingertips. As easy as : window.btfs.ping(peerId)
Or in this post’s context window.pubsub.sub(topic, cbSuccess, cbError)
- See these function calls in code base @ ping-pong demo codebase and @ pub sub demo codebase
In BTFS version 3 they released --experimental-pub-sub which allows to populate pubs all over the network. and exposes these as commands: " btfs pubsub pus <topic> <message> " again injecting these into the webpages as: window.btfs.pubsub.pub(topic, message)
just feels like magic, thinking that using and integrating btfs could have been this easy.
A demo to pub-sub is here: pub-sub Demo
Code Base to demo: pub/sub demo codebase
@TMMS @leohymon @Relate101 @fabsltsa @Zapo @HODL @Youngyuppie @constantinpricope201 @AInsure_CORA @manfred_jr @ines_valerie @Prince-Onscolo @Nweke-nature1.com @Gordian @Lumison @SimbadMarino
Ok ok nice demo, love the colors!
I got it a bit, I mean I see the purpose of the work, yet some terms are very confusing to me.
I see the key term is injection
Injections = commands?
The terms are kinda confusing, I absolutely would’ve to really take my time to understand, nice video btw.
Nice one
I love the looks
Well to simplefy everything: zap is browser built o BTFS infra, and it exposes and handles the core commands like “btfs pin”, “btfs uplaod ” … in to the webpages, so that a simple webpage can very easily utilize the core btfs functionalities.
When we speak of injections: they are the btfs commands injecteed as js functions to be called in the “window-object” of webpage
eg: window.btfs.peers()
and the demos above are examples of how one can use the injected functions to do something that was merely impossible before. This really opens new areas of Dapps that utilizes btfs’s decentralized nature at its core.
Thanks for your answer, I got a better idea now. Cheers!
This is nice demo, congratulations
Here is the usage page on onbording new users..: