Giter VIP home page Giter VIP logo

presence.js's Introduction

presence.js

This is an experiment

XXX just random notes below

The goal of presence.js is to provide a presence feature for web apps. Combined with plain webRTC, it can be used to write applications where you want several users to interact on web apps.

There are two components:

  • the server, that keeps track of who's present
  • the client, that tells the server about its presence

features:

  • the client can notify the app the user is present under a Persona-verified e-mail
  • the client can connect, disconnect and set a status (active, hidden, idle, etc)
  • the client can see who else is present, if it's a publicly available info. (think: the geolocation popup)

not in scope:

  • initiate a webrtc dialog between users
  • channels, etc
  • sessions

server API

  • POST /++presence++/ {'email': xxx, 'status': xxx, 'realm': xxx}
  • GET /++presence++/email => sends a 404 or some info if publicly available
  • GET /++presence++ => sends a batched list of users
  • GET /++presence++/search? search for online users

Scaling etc - the server can be backed by an XMPP server - but the initial implementation is a stupid node.js app

Demo app => a chat app based on presence.js and webrtc

presence.js's People

Contributors

tarekziade 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.