Code Monkey home page Code Monkey logo

viraljs's Issues

Improve P2P stability

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.

Blank page

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

rfc for ViralJS?

Hi all.

1. concept

I would like to create an RFC type technical document about ViralJS.

2. why?

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.

3. question/feedback

What do you all think of the idea?

Is it possible to have decentralized web components with ViralJS?

Hi all.

concept

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).

Example

<!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

question/feedback

What do you all think of the idea?

can not find a module 'viraljs'

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.