pixelscommander / viraljs Goto Github PK
View Code? Open in Web Editor NEWExpress.JS middleware to enable P2P distribution for your app. Your decentralized CDN made easy.
Express.JS middleware to enable P2P distribution for your app. Your decentralized CDN made easy.
Currently there is a big chance that establishing connection with P2P will fail because of network cnfiguration.
The issue is to research ways of how stability could be improved. Just getting a 100% stable connection on desktop + android phone from another network (wifi / 3g) is a step forward.
You may be interested in disabling forceDIrect which guarantees direct HTTP delivery if there is a timeout on P2P. Try to increase a timeout to 20 000 https://github.com/PixelsCommander/ViralJS/blob/master/src/client-scripts-templates/thin-client-template.js#L13
One more idea of possible improvement is WebRTC layer which is Socket.IO P2P for now. It could be improved, upgraded or changed.
Hello.
Is the development still in progress or has the "for fun" already ended? ๐
I get a blank page.
1|test | Viral container socket is listening on 3030
1|test | Middleware worked
1|test | Sending real app + addition
1|test | https://test.com/: 203.570ms
Once logged on Facebook, the page will refresh and become empty http://pixelscommander.com:3000/. Also started work computer terribly slow.
I can't access anything on the internet on port 3000. Sorry.
Are data being checked in order to prevent bad nodes from sending other peers invalid or corrupted data? Also, if it is implemented or if it will be implemented: how it works (or will work)?
For the demo seems HTTPS isn't being used. It can improve security and will allow some new Web Platform features to be used, like Service Workers.
Hi all.
I would like to create an RFC type technical document about ViralJS.
I would like to create an rfc about cdn p2p and I believe that ViralJS can be a good use case commented in the technical document.
What do you all think of the idea?
How do you use this useful looking repository?
Hi all.
I'm studying ViralJS and it might be interesting for this use case that I'm studying for academic and non-commercial purposes. So... I would like to know if it is possible in addition to decentralizing cdn, it would be possible to decentralize the ui part as well. Is it possible to have decentralized web components with ViralJS?
For example, it's very common today to use things like block-protocol, web components to modulate the html parts. But until today I've never seen a cdn focused on block-protocol or web components. This would be interesting to provide a 100% decentralized application or program.
A good use case would be, an application that works on a blockchain, but the logic or modules part is stored on a decentralized cdn also decentralized. In this way, its interoperability is achieved from all sides from its internal and external functioning. In addition, its content is also decentralized. That is, in this hypothetical example we have 3 decentralizations: content(example:"IPFS"), internal modules(example:ViralJS), part of ui that I mentioned(example: ViralJS).
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Concept</title>
<!-- Imports polyfill with cdn external 1 -->
<script src="https://cdn.sample1.com/ajax/libs/webcomponents/webcomponents-lite.min.js"></script>
<!-- Imports custom element with cdn external 2 -->
<link rel="import" href="https://cdn.sample2.com/ajax/libs/webcomponents/hello-world.html">
</head>
<body>
<!-- Runs custom element from cdn1, cdn2 -->
<hello-world who="Unicorn"></hello-world>
</body>
</html>
fork from source-code: webcomponents/hello-world-polymer
What do you all think of the idea?
After npm installing i am getting this error :
npm ERR! TypeError: Object.keys called on non-object
npm ERR! at Function.keys (native)
npm ERR! at installTargetsError (/usr/share/npm/lib/cache.js:708:24)
npm ERR! at /usr/share/npm/lib/cache.js:638:10
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR! at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]
npm ERR! System Linux 3.13.0-52-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "viraljs"
Content is doubled when there are two or more seeds
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.