protocol0 0.1 e6aeb8 GitHub Get started

Specification version 0.1

An open protocol for online communities

Community rights built into code

Any app can run protocol0 for its communities. Each community keeps its rules and its record on its members' computers. No server and no maker of an app can overrule what the members sign.

$ pnpm install$ pnpm attack15 of 15 attacks were refused as the rules say.

1Why it matters

Large platforms have overruled the communities they host. protocol0 exists so that the members of a community hold it themselves.

  • 1.1

    Reddit June to July 2023

    Reddit took over communities that had closed in protest and replaced their volunteer moderators with people it chose.

  • 1.2

    Yahoo Groups October 2019 to January 2020

    Yahoo hid every message that its members had posted over nearly 20 years. It hid them on 14 December 2019 and deleted them after 31 January 2020.

  • 1.3

    What protocol0 changes

    The members hold every copy of their community and no maker or host can switch it off. Moderators change only when enough members sign and the members can open their community in another app.

Where it stands

protocol0 is at version 0.1 and nobody outside the project has reviewed it yet. Its first pilot will run with 5 to 10 people.

2Quick start

An app needs only a few lines to start a community, propose a change and send it to the other copies.

import { ready, newKeyPair, publicOf, Copy, HttpRelay, sync } from 'protocol0'

await ready()
const bob = newKeyPair()
const cat = newKeyPair()

const relief = Copy.start({
  key: newKeyPair(),
  me: { name: 'Ann' },
  name: 'Flood Relief Network',
  founders: [
    { name: 'Bob', key: publicOf(bob) },
    { name: 'Cat', key: publicOf(cat) },
  ],
  pages: [{ id: 'fund', name: 'Relief fund', content: 'The fund holds $90,000.' }],
})

const code = relief.propose({
  title: 'Send $40,000 to Hill End',
  change: { type: 'page', page: 'fund', content: 'The fund holds $50,000.' },
})

await sync(relief, [new HttpRelay('https://relay.protocol0.org')])
const [p] = relief.view().proposals
console.log(p.count, 'of', p.size, 'signed so it stays', p.status)
It prints
1 of 3 signed so it stays open

These calls come from the protocol0 package as it is today.

3The 18 rules

Every community on protocol0 runs the same 18 rules and no community can vote any of them away. These 4 carry the main promise of the protocol.

  • More than half decides

    A change to the rules, the pages or the member list counts only when more than half sign it.

  • A record nobody can rewrite

    Every entry names the entries before it by their codes so a changed entry no longer matches.

  • No member above the others

    The person who started the community and the maker of the app sign like everyone else.

  • Every copy checks

    Each member's computer checks every entry and refuses one that breaks a rule.

All 18 rules of version 0.1

  • P1The record
  • P2Keys
  • P3No special member
  • P4The fixed rule
  • P5Decisions
  • P6Final means final
  • P7Objections
  • P8Teams
  • P9Communities
  • P10Talk
  • P11Keep
  • P12The constitution
  • P13Guests
  • P14Leaving
  • P15The helper
  • P16Sealing
  • P17Moving
  • P18Versions

Nobody can push a new version onto a community. A community moves to a new version only by a decision that reaches its constitution number.

Flood Relief Network charter in short
  • Change a network rule or page4 of 6 towns
  • Change the charter4 of 6 towns
  • Add a town4 of 6 towns
  • Volunteers a town needs to signmore than half

4The record

Every entry names the entries before it by their codes and a code is a fingerprint of its entry. A changed old entry no longer matches its code and every copy sees the change at once.

  1. Entry 564
    9f04a1
  2. Entry 565
    30212d
  3. Entry 566
    changed

Refused by 5 of 5 copies

5Every copy checks

Each member's computer keeps a full copy of the community and checks every entry itself so no server decides what counts.

A decision of a community of 12

Pause a member's posting for 30 days

7 of 12 signed

Every copy checks the 7 signatures and takes the decision.

R
Took it
O
Took it
I
Took it
J
Took it
YS
Took it

Every copy refuses a change that carries 1 signature.

R
Refused
O
Refused
I
Refused
J
Refused
YS
Refused

6The 15 attack tests

The 15 tests attack a community with changed entries, forged signatures, a silent relay and orders from its maker. Anyone can run the tests with 1 command in the protocol0 project folder.

$ pnpm attack1. Copies go silent                 Held2. A changed old entry              Held3. A decision with 1 signature      Held4. The maker tries to rule          Held5. The helper reads a closed page   Held6. The helper tries to sign         Held7. 2 versions signed                Held8. A removed member                 Held9. A relay fails                    Held10. An objection to a team          Held11. The maker is gone               Held12. Final means final               Held13. A community of 5 groups         Held14. A pause and an appeal           Held15. 2 rival moderator lists         Held15 of 15 attacks were refused as the rules say.

7Apps on protocol0

Any maker can build an app on protocol0 without asking anyone. A community made in 1 app opens in every other app that runs protocol0.

p0protocol0PubstadTiny exampleYour appPubstadThis desktop app gives acommunity talk, decide and keep.Tiny exampleThis small program shows anothermaker how to build on protocol0.Your appAny maker can build an appon protocol0 without asking us.protocol0Every app above runs onthe same open protocol.
p0protocol0PubstadTiny exampleYour app
  • Pubstad

    This desktop app gives a community talk, decide and keep.

  • Tiny example

    This small program shows another maker how to build on protocol0.

  • Your app

    Any maker can build an app on protocol0 without asking us.

  • protocol0

    Every app above runs on the same open protocol.

8Inspired by PolicyKit

PolicyKit (Zhang, Hugh and Bernstein, 2020) lets online communities write their own rules as code. protocol0 keeps that idea and removes the server it ran on.

  • 8.1

    No server to switch off

    The rules run on the members' own computers.

  • 8.2

    No act before the check

    An entry that breaks a rule never counts in any copy.

  • 8.3

    No special person

    The maker of an app has 1 signature like every other member.

The paper

Amy X. Zhang, Grant Hugh and Michael S. Bernstein. PolicyKit: Building Governance in Online Communities. UIST 2020.

9What it cannot do yet

We list these limits so that builders and researchers know where protocol0 stops.

  • 9.1

    It runs a fixed set of rules

    protocol0 checks a fixed set of rule kinds. It cannot run rule code that a community writes for itself.

  • 9.2

    It cannot erase an entry

    A hidden post loses its words in every copy and its entry stays in the record. Nobody can remove the entry from all the copies.

  • 9.3

    It is new

    No real community has used protocol0 so far. The first pilot with a small group comes after the next build.

Read the threat model

Start building on protocol0

The code is open and every app on protocol0 gives its communities the same rights.

npm install protocol0Read the documentation

The package goes on npm when the first version is published.