A distributed social network for serious discussions and funny topiqs :). https://topiq.es
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
resources
src/topiq
test/topiq
.gitignore
README.md
project.clj Fix close-ch bug. Use replikativ 0.2.4. Jun 17, 2017

README.md

topiq

A social network application based on P2P replication with CRDTs.

Test p2p network at:

Usage

You can use the app in your browser all state changes are automatically synchronized and topiq reconnects automatically after you have been offline. Sometimes conflicts can happen and are resolved automatically atm. This will probably change at some point depending on the future feature set.

Deployment Gitter

We will be more than happy if you join the test network! Just drop into the replikativ channel of gitter and say hello :)

Atm. you need an SMTP server which can send messages to notify users about authentication requests.

Edit the config settings:

{:build :dev ;; or :prod
 :behind-proxy false
 :proto "http"
 :port 8080
 :host "localhost" ;; adjust hostname
 :user "mail:eve@your-isp.com"
 ;; only do this for CDVCS' you control and do it on one peer
 ;; to avoid server-side conflict management!
 :hooks {[#".*"
          #uuid "26558dfe-59bb-4de4-95c3-4028c56eb5b5"]
         [["mail:eve@your-isp.com"
           #uuid "26558dfe-59bb-4de4-95c3-4028c56eb5b5"]]}
 :connect ["wss://topiq.es/replikativ/ws"]
 :mail-config {:host "smtp.your-isp.com"}
 :trusted-hosts #{"topiq.es" "78.47.61.129"}
 }

Build an AOT-compiled jar file:

git clone https://github.com/whilo/topiq
lein uberjar # also compiles advanced cljs
java -jar target/topiq-standalone.jar resources/server-config.edn

You probably also have to add the letsencrypt tool chain to your JDK with keytool. You can see this when you get connection errors with ssl for topiq.es.

wget https://letsencrypt.org/certs/isrgrootx1.pem
wget https://letsencrypt.org/certs/letsencryptauthorityx1.der
sudo keytool -trustcacerts -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit -noprompt -importcert -alias isrgrootx1 -file ~/isrgrootx1.pem
sudo keytool -trustcacerts -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit -noprompt -importcert -alias letsencryptauthorityx1 -file ~/letsencryptauthorityx1.der

Roadmap

0.1.0 (first release)

  • build test network
  • fix HTML
  • Use dialogs for authentication
  • improve datascript queries and understanding, e.g. rank & sort in datascript
  • escape topiq text
  • Allow time travel
  • show only recent entries (how?), dynamically load more content

0.2.0

  • partition state space to allow embedding in different contexts
  • make layout embeddable as comment stream
  • better editor for markdown: ProseMirror?

TODO

  • remove navbar
  • use try for connect and then build up CDVCS directly instead of embedded store
  • organized in a discourse/conversation (branch?), e.g. private conversation "discourse" for each friend as "messaging"
  • support search by hash-tag, user
  • plugins to add data and structure to comments / social apps
  • individual up to collective help to summarize for new topic

The MIT License (MIT)

Copyright © 2014-2016 Christian Weilbach, Konrad Kühne

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.