Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here


Incus.js front-end JavaScript bindings to Incus websocket and long-polling server

Subscribe to updates I use incusjs

Statistics on incusjs

Number of watchers on Github 4
Number of open issues 2
Main language JavaScript
Average time to merge a PR less than a minute
Open pull requests 0+
Closed pull requests 1+
Last commit about 4 years ago
Repo Created about 4 years ago
Repo Last Updated over 2 years ago
Size 260 KB
Organization / Authorimgur
Latest Release1.1.0
Page Updated
Do you use incusjs? Leave a review!
View open issues (2)
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating incusjs for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Incus.js Build Status NPM

JavaScript bindings for talking to an Incus server in the browser or on the server-side.

Example 1: Reacting to incoming events

var incus = new Incus.Client('http://localhost:4000', 'UID', '/page/path');

incus.on('connect', function() {

incus.on('Event1', function (data) {

Example 2: Updating the page

Incus keeps track of which page a user is currently on, for the page message events. A page is just an arbitrary string. Use this to, for example, provide real-time updates only to users viewing particular content at a particular URL:

$(function() {

Example 3: User messaging

Incus supports user-generated messages. You could use this to, for example, implement a simple chat system:

<div id="chat">
    <div id="messages"></div>

    <form id="input">
        <input type="text" class="input" placeholder="Say something." />

$("#input form").on("submit", function(e) {

    incus.MessageAll("chatmessage", {
        "message": $("#chat .input").text()

incus.on("chatmessage", function(msg) {
    $("#chat #messages").append($('<div>').text(msg.message));

Example 4: Browserify

Incus.js is distributed as a NPM module. If you already use node, using Incus is easy! Just add incusjs to your package.json and off you go:

    "dependencies": {
        "incusjs": "1.*"
var IncusClient = require('incus');

var incus = new IncusClient('http://localhost:4000', 'UID', '/page/path');

incus.MessageUser('event1', 'uid1', {foo: 3});
incusjs open issues Ask a question     (View All Issues)
  • almost 4 years dist folder empty
  • about 4 years Readme should include documentation around presence
incusjs list of languages used
Other projects in JavaScript