Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appnet.io-controller

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appnet.io-controller

AppNet.io protocol controller service for node.js

  • 4.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

appnet.io-controller

AppNet.IO controller serivices to support AppNet.io protocol

Prerequest

  • Build Neo4j 2.1.8 on Linux with Docker, then start Neo4j services

    ./neo4jpkg
    
  • Copy Neo4j packages out of Docker image to local

    ./neo4jpkg cp -rf /tmp/*.tar* .
    

Install

  • appnet.io-controller depends on node-httpp, please build it from repo node-httpp

  • clone this repo and install dependency modules

    npm config set strict-ssl false -g
    npm i npm@2.15.9 -g    
    npm i
    
  • generate SSL certs once for your own Domain Name, like

    ./tools/genSrvKey.bash 51dese.com

  • start controller services

    ~/node-httpp/node ./bin/srv.js

  • now ready to serve appnet.io client

Install on Linux with Docker
  • Build node-httpp docker images, refer to node-httpp

  • Clone this repo

  • Install dependency modules

    ./appbld npm i
    
  • Generate SSL certs once for your own Domain Name, like

    ./appbld ./tools/genSrvKey.bash 51dese.com
    
  • Packaging and start services

    ./apppkg 
    
    Start services ...
    name-server-0 listen on udp port 51686
    name-server-1 listen on udp port 51868
    agent-server listen on udp port 51866
    httpp proxy-server listen on udp port 51688
    http proxy-server listen on tcp port 51688
    
  • Testing service if start successfully

    ./apppkg node tests/connection.js 
    
    node tests/connection.js ...
    connecting to alternative name-server successfully
    connecting to primary name-server successfully
    

Code structure


* sdp.js                 - Session Desription implementation
* stun.js                - STUN protcol implementation
* turn.js                - TURN protocl implementation
* db/sdp.js.             - Session data model persistent in GraphDB
* vurl.js.               - Virtual URL implementation

* appnet.io-server.js    - AppNet.io protocol controller implementation
* appnet.io-server-v2.js - AppNet.io protocol controller V2 implementation using SecureWebsocket and NaclCert

* ssl.js                 - SSL/RSA certs generate utils
* demos/                 - demos
* ca-certs               - your own Root CA certs
* certs                  - dynamical generated SSL/RSA certs for connections
* routepath.js           - pure JS tracerouter implementation using UDP/TTL probe. TBD

More demos:

Look on demos/

TODO:

  • User authentication
  • Domain authorization
  • Improve documents, Protocol Spec, RFC draft

Support us

  • Welcome contributing on document, codes, tests and issues

License

(The MIT License)

Copyright (c) 2012-present Tom Zhou(appnet.link@gmail.com)

FAQs

Package last updated on 30 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc