You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
quadrismegistus 80045fe3e2 bootstrap issues? 4 years ago
docs readme 4 years ago
komrade updates 4 years ago
script bootstrap issues? 4 years ago
.gitignore resetting builtin keys 4 years ago
.python-version chore: py3.7 instead of 3.8+ 4 years ago
README.md r 4 years ago
requirements.txt updates 4 years ago

README.md

Komrade

Komrade is a socialist network. It seizes the means of digital production.

Why another social network?

Is a 'socialist network' possible? Although the internet began with anarchic design principles, it quickly consolidated into the hands of a few of the largest corporations in the world. It has effectively recreated the capitalist mode of production within itself: the means of content production (social media platforms) are privatized while the work of production (posting) remains socially distributed. Exploitation inheres in that relation, whether in the industrial factory or the digital platform, because the value you produce is taken from you, concentrated and privatized.

But a digital network can be redesigned. The technology behind these social media platforms is actually quite simple. We can easily build our own social network, one which is secure, insurveillable, and unmonetizable—one which would give people the security they need to communicate about whatever they want, including protesting against capital and the state..

Core principles

Illegible

All of your data are strongly encrypted end-to-end: only you and those you write to can decrypt and read it. To anyone without the right decryption 'key', the data is nonsense.

Untraceable

All network traffic is routed through Tor, a "deep web" of computers so dense even the FBI can't follow you through it. Komrade's "Operator" or central server is accessible only from Tor. It's impossible to tell who is sending what to whom, or even who is using the app at all.

Unmonetizable

What's untraceable is also unmonetizable: your data can't be harvested by technology companies and used for advertising algorithms. You're protected from both surveillance capitalism and the surveillance state.

Democratized

Group accounts or 'collectives', like @portland or @socialists, grow as existing members 'vouch for' new ones, forming webs of trust. Other komrades can see how many times a given person has been vouched for, both within a group and overall, but not who has vouched for them. In order to join a group, at least one member must vouch for you; this minimum (or 'quorum') may grow as the group grows.

(Semi-)decentralized

Data is deleted as soon as possible from Komrade. Komrade's "Operator" simply sorts and holds the mail temporarily: as soon as users log in to download their mail, the messages are deleted from the server and network forever.

Anti-profit

Not just non-profit, we're anti-profit.

Open-source

Information wants to be communist.

Social media features

We present a simplified set of social media features drawn from everything that's out there:

Profile

  • Curate a profile with photo and posts (e.g. Twitter)
  • Show profile to world (e.g. Twitter)
  • Show profile only to those you trust (e.g. Facebook)
  • Show profile only to your local area (e.g. Nextdoor)

Posting

  • Post up to 1 image and/or 1000 characters
  • Post to the entire world (e.g. Twitter)
  • Post to those you trust (e.g. Facebook)
  • Post to your surrounding area by a distance radius (e.g. Nextdoor)
  • Anonymously up-vote or down-vote posts (e.g. Reddit)
  • Post anonymously or from your account

Organizing

  • Host events and invite others (e.g. Facebook)
  • Host events like protests anonymously (new)
  • Anonymously pin on a map sites of danger, like police (e.g. Waze)

Messaging

  • Message securely with encrypted contents (e.g. Signal)
  • Message securely with untraceable metadata (new)

Progress

Preview animation

As of the 23rd of August.

GIF animation

Backend preview

See here.

Install

With installer

Coming soon.

From source

(1) Make sure pyenv is installed

Pyenv is a virtual environment manager that helps you keep track of Python versions. Komrade requires exactly 3.7, for idiosyncracies owing to Kivy.

You can install pyenv using the auto installer:

curl https://pyenv.run | bash

Then add pyenv to your $PATH (replace .bashrc with .bash_profile if on Mac), and restart bash:

echo 'export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
bash

(2) Clone and bootstrap

Now that pyenv is installed, just clone and bootstrap (thanks to Komrade @mcataford):

git clone https://github.com/Komrade/Komrade.git
cd Komrade
. script/bootstrap

Usage

Terminal interface

To run Komrade using the terminal interface:

cd [path to Komrade repo]
python komrade/cli/cli.py

Mobile interface

To run Komrade using the mobile interface (this is broken at the moment):

cd [path to Komrade repo]
python komrade/app/main.py

Details

Frontend

Mobile app

The mobile app is made with KivyMD, a variant of Kivy, a cross-platform mobile development framework in Python. Python is an easy and versatile progamming language to learn, which keeps the code accessible to as many people as possible.

Code for the mobile app is in komrade/app.

Terminal app

Vanilla Python, but eventually using the curses module. Code is in komrade/cli.

Backend

Ontology

All plain object-oriented stuff in Python. The root entity is a "Keymaker": anyone from @Telephone, to @Operator, to users, to groups, who has a public/private key pair.

The database uses a simple file-based key-value store, written in Python (simplekv).

Code is in komrade/backend.

Cryptography

We are using Themis, a high-level cross-platform cryptography library, for all cryptographic functions, rather than handling any primitives ourselves.

Code is primarily in: