Skip to content
JavaScript Remote Web Console
JavaScript HTML CSS
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Console.IO is a NodeJS project. It provides Remote Web Console for websites and web applications. It uses (express & to provide user real time experience.

It works pretty much on all modern browsers, mobile devices, Smart TVs, etc

Tested on:

  • Toshiba TV (2011, 2012, 2013)
  • LG NetCast TV (2011, 2012, 2013)
  • Philips NetTV (2011, 2012)
  • Samsung TV (2010, 2011, 2012, 2013)
  • Panasonic TV (2013)
  • Technika Avtrex STB
  • Firefox, Safari, Opera, Chrome, Maple, PhantomJS and IE
  • iPhone, iPod, iPad, Android browser, windows 8 phone etc

Node NPM package

Install and start Console.IO server

npm install -g

Install from Source

Install and start or execute install.bat and start.bat (window user only)

npm install request
node ./server/main.js

Include scripts in your web page

include inject.js scripts with config parameters

<script type="text/javascript" src="inject.js?url=http://nodeserver:port&web=true&..."></script>

OR create a create ConfigIO global object with config options

<script type="text/javascript" src="configIO.js"></script>
<script type="text/javascript" src="inject.js"></script>


window.ConfigIO = {
    //URL to connect back
    url: 'http://nodeserver:port/',

    // default is true if not defined, No connection will be made to server if set to false
    socket: true,

    // set it to true to enable WebIO (web console)  (optional)
    web: true,

    // WebIO config (optional)
    filters: ['log','error'],
    search: 'test',
    pageSize: 100,

    // WebIO UI config (optional)
    docked: false,
    position: 'bottom',
    height: '300px',
    width: '99%'

OR you can include all files individually

<script type="text/javascript" src="<Local Folder OR Node Server/"></script>
<script type="text/javascript" src="<Local Folder OR Node Server>/addons/"></script>
<script type="text/javascript" src="<Local Folder OR Node Server>/addons/socket.js"></script>
<script type="text/javascript" src="<Local Folder OR Node Server>/addons/web.js"></script>
<script type="text/javascript" src="<Local Folder OR Node Server>/addons/inject.js?url=http://nodeserver:port"></script>
<link type="text/css" media="all" href="<Local Folder OR Node Server>/resources/console.css" />

You can also capture iframe console logs. To do that just include inject.js script file in child document.

Visit http://nodeserver:port/ for ConsoleIO interface (Tested on Chrome Browsers)

Screen shot


  • Online icons Device is registered and connected.
  • Offline icons Device is registered but offline.
  • Subscribe icons Device is subscribed (double click on Online icon to subscribe).
  • WebIO icons WebIO (web console) icon to enable/disable WebIO remotely.

Console.IO Web only

Console.IO now also support web only mode. It allow user to access console logs on the device without any need of node server.

Include following script in the web page to auto inject files

    <script type="text/javascript" src="inject.js?web=true&socket=false"></script>

Files can be included manually in the web page as well, steps are given below.

define ConfigIO object to set web only mode

window.ConfigIO = {
    socket: false,
    web: true,

and include following scripts in the web page

    <script type="text/javascript" src="inject.js"></script>
    <script type="text/javascript" src="console.js"></script>
    <script type="text/javascript" src="web.js"></script>
    <link type="text/css" media="all" href="app/resources/console.css" />

Console.IO Editor

You can execute commands on remote client from Console.IO. You can execute single & multilines javascript code.


  • Ctrl+Enter: execute command
  • Ctrl+Space: autocomplate
  • Ctrl-Q: toggle comments
  • Shift-Ctrl-Q: fold/unfold code
  • Ctrl-F / Cmd-F: Start searching
  • Ctrl-G / Cmd-G: Find next
  • Shift-Ctrl-G / Shift-Cmd-G: Find previous
  • Shift-Ctrl-F / Cmd-Option-F: Replace
  • Shift-Ctrl-R / Shift-Cmd-Option-F: Replace all

Note: All multilines code should be wrapped within self executable function. E.G

(function doSomeThing(){

Console.IO Device and Tabs

  • Files: Show all attached javascript and css files in the web page
  • Status: Device Status and some basic information
  • Source: Double click on a file in file explorer to view file content
  • Preview: HTML dom structure
  • Console: Remote console
    • Pause incoming logs
    • Clear logs
    • Export logs
    • Change page size
    • Search word or use regex to filter logs
    • Filter logs by type

Console.IO WebIO (web console)

  • Control it remotely
    • Pause incoming logs
    • Clear logs
    • Change page size
    • Search word or use regex to filter logs
    • Filter logs by type
  • TODO
    • Ability to configure height, width, position & remote control.
    • Control logging speed
    • Scroll through logs (Smart Tv/mobile/tablets)

Console API methods supported

  • console.assert(x)
  • console.count(key)
  • console.time(name, reset)
  • console.timeEnd(name)
  • console.debug(arguments...)
  • console.warn(arguments...)
  • console.log(arguments...)
  • console.dir(object)
  • console.dirxml(HTML Element)
  • console.error(error)
  • console.exception(error)
  • console.trace()
  • TODO
    • console.groupCollapsed()
    • console.groupEnd()
    • console.markTimeline()
    • console.timestamp()
    • console.profiles
    • console.profile()
    • console.profileEnd()

Configure Console.IO Server

All server side configurations are defined in server/config.js file. If you have install using npm -g then you will find it in C:\Users[USERNAME]\AppData\Roaming\npm\node_modules\\server folder

Server Port

You can change default (8082) port number

express: {
    production: {
        { 'port-number': 8082 },
        { 'session-key': '' },

SSL Support

Change following in server side config file to enable server to run over SSL and use "https" instead of "http" to inject files on client. To generate your own SSL Certificate please check this How to generate custom SSL certificates.

var config = {
    https: {
        enable: true, // change true/false to enable and disable SSL
        key: './certificates/server.key',
        certificate: './certificates/server.crt',
        ca: './certificates/ca.crt'
<script type="text/javascript" src="inject.js?url=https://nodeserver:port&web=true&..."></script>

Example to setup AngularJS global $http error handler

angular.module('app', ['ngResource',])
    .config(function ($httpProvider)
        $httpProvider.responseInterceptors.push(function globalErrorHandling($q) {
            return function(promise) {
                return promise.then(function(successResponse) {
                    return successResponse;

                }, function(errorResponse) {
                    return $q.reject(errorResponse);


  • Update Readme with full feature list
  • Add JSDoc & Unit Tests
  • Add IISNode configuration steps
  • Support scaling

Copyright and license



Something went wrong with that request. Please try again.