git ssb

0+

farewellutopia-dev / deno-ssb-experiments



Tree:
📁.devcontainer
📁.github
📄.gitignore
📁.vscode
📄Dockerfile
📄FindPeers.ts
📄README.md
📄ScuttlebuttHost.ts
📁agents
📁comm
📄config.ts
📄docker-compose.yml
📄fsStorage.ts
📄get-followees.ts
📄get-peers.ts
📄main.ts
📄peer-feed-selection.md
📄udpPeerDiscoverer.ts
📄util.ts
README.md

Deno SSB Experiments

Both Deno and the Scuttlebutt Protocol are new to me. My primary goal of this project is to learn about them, so I'm trying to build things from scratch rather than porting ssb-server. Pratcical usability of the code is currently a subordinate goal.

Usage

The main executables is main.ts, executing it with

deno run --unstable -A main.ts

will start a host interacting on the Scuttlebut network according to the configuration files in ~/.ssb. By default feeds are stored in ~/.ssb/data/feeds, one folder per feed, e.g. all messages of @2NANnQVdsoqk0XPiJG2oMZqaEpTeoGrxOHJkLIqs7eY=.ed255 are in the folder data/feeds/2NANnQVdsoqk0XPiJG2oMZqaEpTeoGrxOHJkLIqs7eY=/:

FindPeers: listens for peers announcing themselves with UDP broadcast.

deno run --unstable -A FindPeers.ts

Using this project as a dev containers with VSCode:

  1. Install Docker
  2. Install the VSCode extension Remote Containers
  3. Clone the repo
  4. Open the repo in VSCode
  5. Click open in Dev Container

Built with git-ssb-web