|
4 years ago | |
---|---|---|
bin | 4 years ago | |
docs | 4 years ago | |
komrade | 4 years ago | |
script | 4 years ago | |
.gitignore | 4 years ago | |
.python-version | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
requirements.txt | 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
Confidential
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. In order to join a group, at least one member must vouch for you; this minimum (or 'quorum') may grow as the group grows, or in accordance with a 'constitution' which the group votes upon.
(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)
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 with untraceable metadata via Tor (new) ✔
How is this different from ...?
See "Comparison of alternative social networks" on the wiki for an attempt at a systematic comparison. (And please help edit, if you can! The data there is a little incomplete and probably a little inaccurate.) But here are some imagined differences:
-
It's not (fully) decentralized. Who's afraid of a little central planning? In contrast to Secure Scuttlebutt and Cabal Chat, which are 100% decentralized, subsisting only through peer-to-peer connections, Komrade sticks with the old, client/server model. Why?
-
It is anonymous. Because P2P networks almost always expose your IP address: they privilege decentralization over anonymity -- and, potentially, safety. By contrast, lying hidden within the deep web of Tor, accessible only from this application and its built-in Tor client, Komrade will never reveal who is accessing it and its encrypted information. This is important for komrades organizing protests against the surveillance state, and to protect our social media traffic from being harvested and monetized by surveillance capitalism.
-
It's 100% end-to-end encrypted. Unlike Mastodon or Diaspora, direct messages between users and within groups remain encrypted 1:1 end-to-end among users. Posts to the public are encrypted to @komrades, a special account which automatically re-encrypts its messages back to any key-registered requester of them.
-
It verifies identities. Komrade's server, "The Operator", keeps a permanent record of one thing only: every komrade's name and public key, and requires that new komrades choose a unique name. Whenever you send or receive mail, the Operator will make sure that the name and public key on the letter matches what it has on file, verifying the identity of both parties.
-
It's (semi-)ephemeral. Data, like all natural things, should not last forever. Direct messages auto-delete from the server as soon as they are downloaded. Group messages are sent as direct messages through the "web of trust" of the group membership network. Posts to the world auto-delete in however many days you specify. By contrast, data on both SSB and Matrix is undeletable.
-
It's easy to use. No invitation or server is needed on startup, unlike SSB, Mastodon, Diaspora, or Briar. It's basically a Twitter clone, but one where you can also post to a universal feed shared by the entire world (@komrades), so that you can make yourself known, participate in general discussions, find new contacts, and organize new groups.
Progress
Animations from mobile/desktop app
Registering and connecting through Tor
![GIF animation](/Archives/Comrad/media/commit/b2c073fe4fb7492735cf28000f31693898a91124/komrade/app/assets/komrade-screen-preview-2020-09-27.gif)
Navigating posts
![GIF animation](/Archives/Comrad/media/commit/b2c073fe4fb7492735cf28000f31693898a91124/komrade/app/assets/komrade-screen-preview-2020-08-23.gif)
Animations from terminal app
Connecting through Tor
![GIF animation of Tor connection](/Archives/Comrad/media/commit/b2c073fe4fb7492735cf28000f31693898a91124/komrade/app/assets/komrade-terminal-preview--2020-09-20--tor.gif)
"Meeting" (exchanging public keys)
![GIF animation of meeting process](/Archives/Comrad/media/commit/b2c073fe4fb7492735cf28000f31693898a91124/komrade/app/assets/komrade-terminal-preview--2020-09-16--meet.gif)
Messaging
![GIF animation of messaging](/Archives/Comrad/media/commit/b2c073fe4fb7492735cf28000f31693898a91124/komrade/app/assets/komrade-terminal-preview--2020-09-16--msg.gif)
Posting
![GIF animation of posting](/Archives/Comrad/media/commit/b2c073fe4fb7492735cf28000f31693898a91124/komrade/app/assets/komrade-terminal-preview--2020-09-19--posting.gif)
Usage
Install
...on Mac OSX
Download and run this installer.
...on Linux or Windows
Open a terminal in Linux, or a Cygwin shell in Windows, and copy and paste the following line into it:
bash <(curl -s https://komrade.app/run)
That's a shortcut to this auto-installer script. It installs Komrade in a virtual Python environment in the folder "komrade" in your home directory.
Run
...on Mac OSX
Install as above.
Run "Komrade.app" in your Applications folder.
...on Linux or Windows
Open a terminal in Linux, or a Cygwin shell in Windows, and type:
komrade-app
If that doesn't work, try:
~/komrade/code/bin/komrade-app
If that still doesn't work, try pasting the following lines:
source ~/komrade/lib/miniconda3/etc/profile.d/conda.sh
export PATH="~/komrade/lib/miniconda3/bin:$PATH"
conda activate ~/komrade/code/venv
python -m pip install -r ~/komrade/code/requirements.txt
python ~/komrade/code/komrade/app/main.py
Running terminal client
For the terminal client (which may be broken at the moment), run:
komrade-cli # or: ~/komrade/code/bin/komrade-cli
or, if necessary, paste the following lines:
source ~/komrade/lib/miniconda3/etc/profile.d/conda.sh
export PATH="~/komrade/lib/miniconda3/bin:$PATH"
conda activate ~/komrade/code/venv
python -m pip install -r ~/komrade/code/requirements.txt
python ~/komrade/code/komrade/cli/cli.py
Running server (development only)
To run The Operator server (for development purposes only), run:
komrade-op # or: ~/komrade/code/bin/komrade-op
or, if necessary, paste the following lines:
source ~/komrade/lib/miniconda3/etc/profile.d/conda.sh
export PATH="~/komrade/lib/miniconda3/bin:$PATH"
conda activate ~/komrade/code/venv
python -m pip install -r ~/komrade/code/requirements.txt
python ~/komrade/code/komrade/backend/switchboard.py
Details
Frontend
Mobile/desktop
The mobile/desktop app is made with KivyMD, a variant of Kivy, a cross-platform app 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 app is in komrade/app.
Terminal app
Vanilla Python. Code is in komrade/cli.
Backend
API
Plain old object-oriented code 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 using the Redis protocol: rlite, via its rlite-py Python bindings. All code for backend/API 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. Installing it from packages is tricky, so right now the auto-installer builds it from sources.
Crypto-related code is primarily in: