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

waggle

Package Overview
Dependencies
Maintainers
5
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waggle

tlg-manager

  • 4.3.13
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

Waggle

Communication manager for Zbay project. Uses OrbitDB, Libp2p, Tor and websockets.

Installation

Requirements:

  • node@12
  • typescript
  • ts-node

Install dependencies:

npm install

Running waggle separately (without ZbayLite)

Run entryNode.ts

ts-node entryNode.ts

With logs:

DEBUG=waggle:* ts-node entryNode.ts

By default each run will create new onion address and new peerId. If you want to keep them persistent, set env variables:

PEERID_FILE=myPeerId.json
HIDDEN_SERVICE_SECRET=<myHiddenTorServiceSecret>

PEERID_FILE must point to .json file with peer data (see entryNodePeerId.json). Peer data can be obtained by:

import PeerId from 'peer-id'
const peerId = await PeerId.create()
peerId.toJSON()

HIDDEN_SERVICE_SECRET can be retrieved from Tor.createNewHiddenService.

If you don't want to connect to our entry node, set also BOOTSTRAP_ADDRS env variable. It's a multiaddrs of one of your local nodes:

BOOTSTRAP_ADDRS=/dns4/<yourBootstrapNodeOnionAddress>/tcp/<yourBootstrapNodePort>/ws/p2p/<yourBootstrapNodePeerId>

Local separated network of waggle's

docker-compose helps to create a local network of nodes (waggles). This is purely for testing purposes. By default it creates 3 services, one of them being the entry node and the rest regular nodes.

docker-compose build
docker-compose up  // Run default - 3 peers

docker-compose up --scale peer=3  // Run with scaled number of regular peers 

Currently there is no db data in this network - to be added.

Architecture

// TODO

FAQs

Package last updated on 16 Nov 2021

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