13.2.2 • Published 5 years ago

scuttlebot v13.2.2

Weekly downloads
20
License
MIT
Repository
github
Last release
5 years ago

Scuttlebot

Scuttlebot is an open source peer-to-peer log store used as a database, identity provider, and messaging system. It has:

  • Global replication
  • File-synchronization
  • End-to-end encryption

Scuttlebot behaves just like a Kappa Architecture DB. In the background, it syncs with known peers. Peers do not have to be trusted, and can share logs and files on behalf of other peers, as each log is an unforgeable append-only message feed. This means Scuttlebots comprise a global gossip-protocol mesh without any host dependencies.

Join us in #scuttlebutt on freenode.

build status

Applications

There are already several applications built on scuttlebot, one of the best ways to learn about secure-scuttlebutt is to poke around in these applications.

  • patchwork is a discussion platform that we use to anything and everything concerning ssb and decentralization.
  • patchbay is another take on patchwork - it's compatible, less polished, but more modular. The main goal of patchbay is to be very easy to add features to.
  • git-ssb is git (& github!) on top of secure-scuttlebutt. Although we still keep our repos on github, primary development is via git-ssb.

it is recommended to get started with patchwork, and then look into git-ssb and patchbay.

Example Usage

# In bash:

# Start the server with extra log detail
# Leave this running in its own terminal/window
sbot server --logging.level=info

# publish a message
sbot publish --type post --text "My First Post!"

# stream all messages in all feeds, ordered by publish time
sbot feed

# stream all messages in all feeds, ordered by receive time
sbot log

# stream all messages by one feed, ordered by sequence number
sbot hist --id $FEED_ID
// In javascript:

var pull = require('pull-stream')
var ssbClient = require('ssb-client')

// create a scuttlebot client using default settings
// (server at localhost:8080, using key found at ~/.ssb/secret)
ssbClient(function (err, sbot) {
  if (err) throw err

  // publish a message
  sbot.publish({ type: 'post', text: 'My First Post!' }, function (err, msg) {
    // msg.key           == hash(msg.value)
    // msg.value.author  == your id
    // msg.value.content == { type: 'post', text: 'My First Post!' }
    // ...
  })

  // stream all messages in all feeds, ordered by publish time
  pull(
    sbot.createFeedStream(),
    pull.collect(function (err, msgs) {
      // msgs[0].key == hash(msgs[0].value)
      // msgs[0].value...
    })
  )

  // stream all messages in all feeds, ordered by receive time
  pull(
    sbot.createLogStream(),
    pull.collect(function (err, msgs) {
      // msgs[0].key == hash(msgs[0].value)
      // msgs[0].value...
    })
  )

  // stream all messages by one feed, ordered by sequence number
  pull(
    sbot.createHistoryStream({ id: < feedId > }),
    pull.collect(function (err, msgs) {
      // msgs[0].key == hash(msgs[0].value)
      // msgs[0].value...
    })
  )
})

Use-cases

Scuttlebot's message-based data structure makes it ideal for mail and forum applications (see Patchwork). However, it is sufficiently general to be used to build:

  • Office tools (calendars, document-sharing, tasklists)
  • Wikis
  • Package managers

Because Scuttlebot doesn't depend on hosts, its users can synchronize over WiFi or any other connective medium, making it great for Sneakernets.

Scuttlebot is eventually-consistent with peers, and requires exterior coordination to create strictly-ordered transactions. Therefore, by itself, it would probably make a poor choice for implementing a crypto-currency. (We get asked that a lot.)


Getting Started

Key Concepts

Further Reading

11.3.5

5 years ago

12.2.4

5 years ago

11.4.5

5 years ago

11.3.4

5 years ago

13.2.2

5 years ago

13.2.1

5 years ago

13.2.0

5 years ago

13.1.0

5 years ago

13.0.3

6 years ago

13.0.2

6 years ago

13.0.1

6 years ago

13.0.0

6 years ago

12.2.3

6 years ago

12.2.2

6 years ago

12.2.1

6 years ago

12.2.0

6 years ago

12.1.0

6 years ago

12.0.1

6 years ago

12.0.0

6 years ago

11.4.4

6 years ago

11.4.3

6 years ago

11.4.2

6 years ago

11.4.1

6 years ago

11.4.0

6 years ago

11.3.3

6 years ago

11.3.2

6 years ago

11.3.1

6 years ago

11.3.0

6 years ago

11.2.1

6 years ago

11.2.0

6 years ago

11.1.2

6 years ago

11.1.1

6 years ago

11.0.0

6 years ago

10.5.2

6 years ago

10.5.1

6 years ago

10.5.0

6 years ago

10.4.10

7 years ago

10.4.9

7 years ago

10.4.6

7 years ago

10.4.5

7 years ago

10.4.4

7 years ago

10.4.3

7 years ago

10.4.2

7 years ago

10.4.1

7 years ago

10.3.1

7 years ago

10.3.0

7 years ago

10.2.1

7 years ago

10.2.0

7 years ago

10.1.0

7 years ago

10.0.7

7 years ago

10.0.6

7 years ago

10.0.5

7 years ago

10.0.4

7 years ago

10.0.3

7 years ago

10.0.1

7 years ago

10.0.0

7 years ago

9.8.0

7 years ago

9.7.1

7 years ago

9.7.0

7 years ago

9.6.1

7 years ago

9.6.0

7 years ago

9.5.2

7 years ago

9.5.1

7 years ago

9.5.0

7 years ago

9.4.7

7 years ago

9.4.6

7 years ago

9.4.4

7 years ago

9.4.3

7 years ago

9.4.2

7 years ago

9.4.1

7 years ago

9.4.0

7 years ago

9.2.4

7 years ago

9.2.2

7 years ago

9.1.1

8 years ago

9.2.0

8 years ago

9.1.0

8 years ago

9.0.2

8 years ago

9.0.1

8 years ago

9.0.0

8 years ago

8.7.2

8 years ago

8.7.1

8 years ago

8.6.1

8 years ago

8.6.0

8 years ago

8.4.3

8 years ago

8.4.1

8 years ago

8.4.0

8 years ago

8.3.5

8 years ago

8.3.4

8 years ago

8.3.3

8 years ago

8.3.2

8 years ago

8.3.1

8 years ago

8.2.1

8 years ago

8.2.0

8 years ago

8.1.0

8 years ago

8.0.0

8 years ago

7.6.9

8 years ago

7.6.8

8 years ago

7.6.7

8 years ago

7.6.6

8 years ago

7.6.5

8 years ago

7.6.4

8 years ago

7.6.0

8 years ago

7.5.4

8 years ago

7.5.3

8 years ago

7.5.2

8 years ago

7.5.1

8 years ago

7.5.0

8 years ago

7.4.7

8 years ago

7.4.5

8 years ago

7.4.3

8 years ago

7.4.2

8 years ago

7.4.1

8 years ago

7.3.4

9 years ago

7.3.3

9 years ago

7.3.2

9 years ago

7.3.1

9 years ago

7.3.0

9 years ago

7.2.8

9 years ago

7.2.7

9 years ago

7.2.6

9 years ago

7.2.5

9 years ago

7.2.4

9 years ago

7.2.3

9 years ago

7.2.2

9 years ago

7.2.1

9 years ago

7.1.1

9 years ago

7.0.2

9 years ago

7.0.1

9 years ago

7.0.0

9 years ago

6.1.5

9 years ago

6.1.4

9 years ago

6.1.3

9 years ago

6.1.2

9 years ago

6.1.0

9 years ago

6.0.2

9 years ago

6.0.1

9 years ago

6.0.0

9 years ago

5.2.0

9 years ago

5.1.0

9 years ago

5.0.0

9 years ago

4.2.3

9 years ago

4.2.2

9 years ago

4.2.1

9 years ago

4.2.0

9 years ago

4.1.1

9 years ago

4.1.0

9 years ago

4.0.5

9 years ago

4.0.4

9 years ago

4.0.3

9 years ago

4.0.2

9 years ago

4.0.1

9 years ago

4.0.0

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.3.5

9 years ago

2.3.4

9 years ago

2.3.3

9 years ago

2.3.2

9 years ago

2.3.1

9 years ago

2.3.0

9 years ago

2.2.2

9 years ago

2.2.1

9 years ago

2.2.0

9 years ago

2.1.11

9 years ago

2.1.10

9 years ago

2.1.9

9 years ago

2.1.8

9 years ago

2.1.7

9 years ago

2.1.6

9 years ago

2.1.5

9 years ago

2.1.4

9 years ago

2.1.3

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.7

9 years ago

2.0.6

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.4.0

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago