The JavaScript blog.


graphics testing games competitions angularjs biology

Js13kGames, Angular Plasmid

Posted on .


Andrzej Mazur wrote in to say that the Js13kGames competition has started. All entries must be in by the 13th of September. It's a competition to build HTML5 games in 13 kilobytes, and that includes all assets. If you want sounds and complex graphics then it might be advantageous to procedurally generate certain things.

All your code and game assets should be smaller than or equal to 13 kilobytes (that's exactly 13,312 bytes, because of 13 x 1024) when zipped. Your package should contain index.html file and when unzipped should work in the browser.

The competition has a theme, so entries should somehow encapsulate the elements:

The main theme of the competition in 2014 is The Elements: Earth, Water, Air and Fire. It is optional, so you can use it, use part of it (one Element), or drop it. Remember that there will be bonus points for implementing the theme in your game.

Andrzej wrote a tutorial for tuts+ about minifying games, and he created the game Triskaidekaphobia to promote the competition.

Angular Plasmid

Angular Plasmid

Angular Plasmid (GitHub: vixis / angularplasmid, License: MIT) by Rehan Chawdry is an AngularJS library for biological plasmid visualisation:

Rather than coding client-side JavaScript or other server-side programming languages, AngularPlasmid provides easy-to-use HTML markup, making plasmid generation as easy as creating a web page. In fact, you don't really neeed to know anything about AngularJS or JavaScript to use the components, as one of the download options bundles everything together for you.

The basic tutorial explains how to create a visualisation using markup rather than having to write JavaScript, so it should appeal to biologists who want to create rich HTML documents that aren't programmers. In fact, Angular seems like a good choice for this type of visualisation in that you can use it declaratively.


node modules streams biology

Node Roundup: 0.10.22, genome.js, Bellhop

Posted on .

Node 0.10.22

Node 0.10.22 was released this week. This version has fixes for process, the debugger and the repl, and a memory leak on closed handles.

There's also a fix for Mac OS 10.9: apparently "Not Responding" was displayed in Activity Monitor for Node processes.


DNA card

genome.js is an interesting project that proclaims "Welcome to the OpenDNA movement":

genome.js is a fully open source platform built on Node.js that utilizes streams for high-performance analysis of DNA SNPs

There are currently several related repositories for the overall project on GitHub:

Why is this useful? Perhaps you've had your genome sequenced by a site like 23andMe, and want to do something with the data. Apparently the cutting edge in web-based DNA browsing isn't particularly great, so there may be room for innovation.


Bellhop (GitHub: mscdex / bellhop, License: MIT, npm: bellhop) by Brian White is a stream for Pub/Sub and RPC. It can serialize data types that aren't supported by JSON. Bellhop streams should work over any transport, from HTTP to TCP sockets.

The project has tests, and the readme includes API examples.