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 1,000,000+ packages pre-installed, including splatjs with all npm packages installed. Try it out:

var splatjs = require("splatjs")

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

splatjs v3.1.0

A 2D HTML5 Canvas game engine


A 2d HTML5 Canvas game engine

SplatJS is a 2d game engine made for creating multi-platform games entirely in JavaScript.


  • Rectangles!
  • Keyboard, mouse, and touch input
  • Sounds and music (Web Audio API and HTML5 Audio)
  • Sprite animation
  • Asset loading, and built-in loading screen
  • Games work well on phones, tablets, and desktop browsers.
  • A* Pathfinding
  • Particles

Supported Platforms

  • Chrome (desktop & mobile)
  • Firefox
  • Internet Explorer (desktop & mobile)
  • Safari (desktop & mobile)
  • iOS using Ejecta
  • Chrome Web Store

SplatJS works in PhoneGap/Cordova, but it seems like the apps it produces lack hardware acceleration, making games unplayable.

Download a standalone SplatJS:

Install through NPM

$ npm install --save splatjs

Then require SplatJS into your game:

var Splat = require("splat");

Then use browserify to bundle your game as a single JavaScript file for the browser.

Games using SplatJS

Send a pull request to add your game to the list!


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