Sign inSign up

luopio/foghorn

By luopio

Updated over 5 years ago

Foghorn notifies your javascript when tables change in your database

Image
1

10K+

luopio/foghorn repository overview

Watches your database for changes and notifies listening clients through websockets.

In other words, you do this in your client javascript:

  Foghorn.listen(
    'users',
    function(tablename, type, id) {
      console.log('notified on', tablename, 'of a', type, 'for the id', id);
    });

And when the table changes the Foghorn server will tell your javascript what happened to which ID. Go update your view, re-render your React, play the gong or what ever it is that you do when data changes.

https://github.com/luopio/foghorn

Tag summary

Content type

Image

Digest

Size

18.1 MB

Last updated

over 6 years ago

docker pull luopio/foghorn