Liwe

an open source remote control for web applications

WARNING
This talk is not technical.
It is subject to troll.
A lot of NodeJS code were harmed in the making of this project.

tv.js by SamiPresse

That's cool!
I want to create my own.

Me. (being silly)

defining protocol

setup a node repo

choose which packages to use

sketch remote web app

choose a JS framework to build it

make it responsive and simple

build a client for the webapp

debugging

realise that some cases are missing

rebuild the protocol

debugging

make your node server cleaner

debugging

discover that you don't handle disconnection correctly

come back to conception

cross the castle

kill the boss

then realise that your princess is in another castle

It suuuucks

Because,
it need conception
it need time
it require a server

OK,
there is something to do.

Something,
accessible for n00bs

Something,
using the most of smartphone sensors

Something,
open source

Server

NodeJS (of course)
Built with Express and SockJS
liwe.co is hosting the project

the WebApp

the client side

no plugin,
no servers,
just JavaScript

With a lovelay API.

the API

Insert Liwe script

            
<script src="http://liwe.co/api/liwe.js">
</script>
            
          

Create a Liwe object

            
var myLiwe = new Liwe({
  key: 'tr0l0l0lOl0Ol0Lo0000ooOo',
  maxRemoteConn: 4
});
            
          

Listen for connection

            
myLiwe.on('connect', function (info) {
  promptr('Grab your smartphone and go on ' +
          info.url);
});
            
          

Wait for a remote

            
myLiwe.on('new_remote', function (remote) {
  remote.setUI('button');
  remote.on('button', function (e) {
    ...
  });
});
            
          

the Remote

the final user

no app,
no form,
just a URL

It's HTML only.

Now,
the dark side.

No proper protocol defined

Old package dependencies

Lack of flexibility and component

Massive lack of security

NO UNIT/E2E TESTS!

YES I KNOW OMG WHADAFOLK AND STUFF

This is why I need your help

Feedback, improve code and new ideas

DEMO

(who bet I'm going to fail?)

Please mind the gap between the n00b and the NodeJS dev.

Thanks everybody

github.com/liwe
gitter.im/liwe/liwe
liwe.co

Questions?