Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including topcube with all npm packages installed. Try it out:

var topcube = require("topcube")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

topcube v0.0.7

Simple bindings to create a webkit window that node can control

WebApp

In the pursuit of making a gui toolkit for node and in a goal to better learn how to make node bindings, I present my first node extension, WebApp.

This is very much a work in progress.

Goals

Give node developers a way to have a desktop GUI to their node servers using HTML5 + CSS3 as the GUI platform.

Implementation Details

Currently I'm using webkitgtk since it comes with my linux desktop and is easy to bind to.

TODOS

  • Share the event loop between GTK's GLib and Node's libev. Tim Smart's node-gtk binding seems to implement this.
    • I'm running the webview in a child process currently as a workaround.
  • Provide a way for the JavaScript in the webview talk to the JavaScript in node.
    • Currently we can use websockets or normal ajax.
    • It would be neat if webkit got it's contexts from node's V8
  • provide some infrastructure to get html to the browser. Currently the sample app shows how this can be done app-side.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free