Source code
Post distribution uses kademlia DHT network and bittorrent-like swarms, both are provided by libtorrent. Both Bitcoin and libtorrent versions included here are highly patched and do not interoperate with existing networks (on purpose). Alternatively, you can run Twister on an isolated Linux container, using Docker. First, install Docker on your system. Then run: Leave out the "sudo -E" if you added yourself to the "docker" group sudo -E ./twister-on-docker run --remote The above command downloads and runs a pre-built image from the Docker index. You can also build and run your own container: twister specific code is released under the MIT license or BSD, you choose. (it shouldn't matter anyway, except for the "non-endorsement clause"). Developers of either bitcoin or libtorrent are welcomed and will be granted immediate write-access to the repository (a small retribution for bastardizing their codebases). Some security checks are disabled (temporarily) allowing multiple clients per IP. Therefore it is possible to run multiple twisterd instances at the same machine: Note: some features (like block generation and dht put/get) do now work unless the network has at least two nodes, like these two instances in the example above. The above command may take a few seconds to run, depending on your CPU. This is normal. Notes for newdirectmsg : The post number (2) follows the same numbering as newpostmsg , make sure they don't clash. The recipient must be your follower. Notes for getdirectmsgs : These direct message IDs (max id, since id etc) are not related to post numbers. The numbering is local and specific to this thread. This function will return messages which have been successfully decrypted upon receiving or that have been sent by this same computer. A different computer, sharing the same account, will see the same received, but not the same sent messages. Note: increase the revision number (the last parameter) whenever you want to update something using dhtput. Next, run the twister daemon. The RPC username and password are currently hard coded as "user" and "pwd" in the web client so you'll need to specify them: Visit in your web browser and you should see a page asking you to choose between the Desktop and Mobile interfaces. If you prefer new modern look of twister with new untested things, you can try twister-calm theme. But be careful, it is in beta stage.
Excerpt from the source-code README · 7,225 chars · not written by Vinony