Giter VIP home page Giter VIP logo

sockethub's Introduction

Sockethub

The polyglot approach to the federated social web.

Build Status devDependency Status Code Climate

Flattr this

about

Sockethub is a polyglot (speaking many different protocols and APIs) messaging service for social and other interactive messaging applications. Not only does it assist unhosted and noBackend web application developers by providing server-independent, server-side functionality, but it also can be used as a back-end tool (invisible to the user) for many different applications, large and small.

Example uses of sockethub are: writing and receiving messages (SMTP, Facebook, Twitter, Diaspora), instant messaging (XMPP, AIM, MSN, IRC), discovery (WebFinger, RDF(a)). The architecture of sockethub is extensible and supports easy implementation of additional 'platforms' to carry out tasks, sockethub can be run on your own server, or provided as a service by a service provider, or app store.

status

Sockethub is currently under active development, several platforms are being worked on (details below) and are at varying levels of completeness.

For more information on platform development, see the platform overview.

features

We use Activity Streams to map the various social networks terms to a set of 'verbs' which identify the underlying action. For example,for a facebook friend request/accept cycle, we would use the activity stream verbs 'request-friend', 'remove-friend', 'make-friend'.

Below is a list of platforms we're currently working on and their activity stream verbs (when appropriate) or verbs that are specific to sockethub, both the completed and not yet implemented ones. They all map to the platforms actions.

[platform] - [verbs]
  • Email - completed send completed fetch (imap)
  • XMPP - completed send completed request-friend completed remove-friend completed make-friend
  • Facebook - completed post send completedfetch request-friend remove-friend make-friend like
  • Twitter - completed post follow unfollow send completed fetch
  • RSS - completed fetch
  • IRC - completed send join leave
  • pump.io - post follow unfollow send fetch
  • WebFinger - search
  • RDF - search fetch
  • Bitcoin - (to be evaluated) send receive ...
  • FireFoxSync - (to be evaluated)
  • WebRTC - (to be evaluated)

architecture overview

Check out the architecture overview for a little more information ("under the hood") on the implementation details of Sockethub.

installation & setup

prerequisites

  • redis server

You will need to have a redis server (version 2.x or greater) up and running.

NOTE: redis version 2.x or greater required as Sockethub makes extensive use of the BLPOP and RPUSH commands.

  • node.js package dependencies

Some of the node.js packages require operating system libraries in order to function correctly. - simple-xmpp : libexpat1 libicu-dev - node-stringprep (dependency of several packages) : libicu-dev

NOTE: node version v0.10.x or greater required due to module dependencies.

Instructions on installing node v0.10.x on Ubuntu 12.04 LTS see this

	$ sudo apt-get update
	$ sudo apt-get install python-software-properties python g++ make
	$ sudo add-apt-repository ppa:chris-lea/node.js
	$ sudo apt-get update
	$ sudo apt-get install nodejs

(from: http://kb.solarvps.com/node-js/installing-node-js-on-ubuntu-12-04-lts/)

install

$ git clone [email protected]:sockethub/sockethub.git

setup

[sockethub]$ npm install
[sockethub]$ cp config.js.template config.js
[sockethub]$ cp config.secrets.js.template config.secrets.js

You will want to edit your config.secrets.js file and add your own secret string to use during the register command to ensure only apps can connect that have the right secret.

[sockethub]$ git submodule init && git submodule update

You'll need the submodules for the examples to run (uses sockethub-client)

[sockethub]$ npm test

Verify all tests pass, then you should be good to go.

[sockethub]$ bin/sockethub

Once sockethub is running, you can visit http://localhost:10550/examples/ to see some example apps (under development).

remoteStorage.js note: trying to use a file:// URL for this will not work because remoteStorage.js depends on having a localStorage origin available.

docs

The Getting Started Guide is a good starting place to find links to more specific documentation about Sockethub or SockethubClient.

license

Sockethub is licensed under the AGPLv3

credits

Project maintained by Nick Jennings

Logo design by Jan-Christoph Borchardt

Sponsored by NLNET

NLNET Logo

Bitdeli Badge

sockethub's People

Contributors

silverbucket avatar michielbdejong avatar nilclass avatar tosbackcrawler avatar bitdeli-chef avatar mscdex avatar ggrin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.