0.2.50 • Published 2 years ago

@dstack-js/relay v0.2.50

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
2 years ago

@dstack-js/relay

Relay provides DStack peer with libp2p-webrtc-star compatible signaling server written with multi-tenancy support using redis

Metrics (Grafana Dashboard)

Login into Grafana using your GitHub, Grafana can be only accessed by organization members, remember to grant access to dstack-js organization while logging in.

Supported transport versions

  • libp2p-webrtc-star@0.20.1
  • libp2p-websockets@0.15.0

Public relay

PeerId - QmV2uXBKbii29iJKHKVy8sx5m49qdDTBYNybVoa5uLJtrf

Signaling - /dns4/relay.dstack.dev/tcp/443/wss/p2p-webrtc-star/

Bootstrap - ['/dns4/relay.dstack.dev/tcp/443/wss/p2p-webrtc-star/p2p/QmV2uXBKbii29iJKHKVy8sx5m49qdDTBYNybVoa5uLJtrf']

Using predefined peer id

Generate peer id private key using peer-id package

const PeerId = require('peer-id');

const id = await PeerId.create({ bits: 1024, keyType: 'RSA' });
console.log(JSON.stringify(id.toJSON(), null, 2));
{
  "id": "Qma9T5YraSnpRDZqRR4krcSJabThc8nwZuJV3LercPHufi",
  "privKey": "CAAS4AQwggJcAgEAAoGBAMBgbIqyOL26oV3nGPBYrdpbv..",
  "pubKey": "CAASogEwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMBgbIqyOL26oV3nGPBYrdpbvzCY..."
}

or generate in browser

Then you can store privKey in PRIVATE_KEY environment key

0.2.50

2 years ago

0.2.41

2 years ago

0.2.49

2 years ago

0.2.48

2 years ago

0.2.47

2 years ago

0.2.46

2 years ago

0.2.45

2 years ago

0.2.44

2 years ago

0.2.43

2 years ago

0.2.42

2 years ago

0.2.40

2 years ago

0.2.39

2 years ago

0.2.38

2 years ago

0.2.37

2 years ago

0.2.35

2 years ago

0.2.34

2 years ago

0.2.33

2 years ago

0.2.32

2 years ago

0.2.31

2 years ago

0.2.30

2 years ago

0.2.27

2 years ago

0.2.26

2 years ago

0.2.25

2 years ago

0.2.24

2 years ago

0.2.23

2 years ago

0.2.22

2 years ago

0.2.21

2 years ago

0.2.20

2 years ago

0.2.19

2 years ago

0.2.18

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago