Softwr
LittleJS logo

LittleJS

Tiny, fast, fully open-source HTML5 game engine for 2D and 3D

LittleJS is free to use. LittleJS is a lightweight open-source HTML5 game engine with 2D and 3D rendering, physics, audio, particles and input, released under the MIT licence. Softwr lists it under Game Development. LittleJS is available on Web.

Overview

What is LittleJS?

LittleJS is a fast, lightweight, fully open-source JavaScript game engine for the browser, designed for simplicity and performance. Rendering mixes WebGL2 and Canvas2D, with Shadertoy-style shaders, 2D lights with soft shadows, normal maps, particle effects, parallax layers and follow cameras. A built-in 3D renderer shares the canvas with the 2D game and loads OBJ and glTF models, with terrain, shadows and a 3D level editor. Audio supports mp3, ogg and wave files plus the ZzFX sound generator, input covers mouse, keyboard, gamepad and touch with an on-screen gamepad, and physics includes arcade collision, tilemap raycasting and Box2D integration. Further systems cover UI, tweens, scenes, timers, A* pathfinding and Newgrounds and Wavedash medals and leaderboards. It works in modern desktop and mobile browsers, supports TypeScript and modules, and has an example browser, docs and Discord. It is code-first: there is no visual editor for 2D scenes, and games are written in JavaScript or TypeScript. The licence is MIT, and there is no cost.

What people use it for

  • Game jam entries
  • Small browser arcade games
  • Size-conscious web games
  • Learning game programming in JavaScript
  • Mobile-friendly web games

The honest half

Where does LittleJS fall short?

The limits buyers hit most with LittleJS: code-first with no visual scene editor for 2D games; and no visual editor or asset pipeline beyond the code and examples. Each is concrete and checkable: the half of a review a vendor will not write.

  • Code-first with no visual scene editor for 2D games
  • No visual editor or asset pipeline beyond the code and examples
  • Targets browsers, so native console builds need extra work
  • Games are written in JavaScript or TypeScript, so coding skill is needed

Cross-shopped

What are the alternatives to LittleJS?

The closest alternatives to LittleJS are Phaser, Babylon.js and Three.js. Each is a tool buyers genuinely weigh against it, with the reason why.

Capabilities

What can LittleJS do?

LittleJS lists 9 features, including WebGL2 and Canvas2D rendering; built-in 3D renderer; and 2D lights and shadows.

  • WebGL2 and Canvas2D rendering

  • Built-in 3D renderer

  • 2D lights and shadows

  • Particle system

  • Arcade physics and Box2D

  • Audio with ZzFX

  • Mouse, keyboard, gamepad and touch input

  • UI and tween systems

  • TypeScript and Vite support

Answered, with sources

Questions people ask

Each answer names the page it came from, so you can check it rather than take our word for it.

Is LittleJS free?

Yes. It is fully open source under the MIT licence.

Source
Does LittleJS support 3D?

Yes. A built-in 3D renderer shares the canvas with the 2D game and loads OBJ and glTF models.

Source
Can I use TypeScript?

Yes. LittleJS has full TypeScript and module support with example projects for both.

Source
Does it include physics?

Yes. It has an arcade physics system and Box2D integration for realistic physics.

Source

Checked against

Sources

The pages the facts above were read from. Prices and limits change, so the vendor's own page is the final word.

Share

Keep looking

Where to go from LittleJS

Best Game Development software for

Compare LittleJS with

Other Game Development software

  • Fast, free, and fun open source framework for Canvas and WebGL

    Free, then $12/mo17 researched notes
  • Cloud-based WebGL game development platform

    Free plan15 researched notes
  • Lightweight open-source HTML5 game engine for 2D and 3D games on the web

    Free plan10 researched notes
  • Open-source HTML5 creation engine with WebGPU and WebGL rendering, now in 2D and 3D

    Free plan10 researched notes
  • Visual desktop editor for building Phaser 4 games, from $12 a month

    From $12/mo13 researched notes
  • Create games without coding. Powered by the Scirra engine.

    Free plan13 researched notes
  • The next generation RPG creation software

    From $99.99/one-time13 researched notes
  • Free open-source JavaScript and TypeScript library for making HTML5 games

    Free plan11 researched notes
  • Free open-source 2D game engine and editor for JavaScript and TypeScript games

    Free plan11 researched notes
  • Free TypeScript 2D game engine for the web, released under a BSD 2-Clause licence

    Free plan10 researched notes
  • Open-source narrative scripting language and Inky editor for branching game stories

    Free plan12 researched notes
  • Create cross-platform 2D games and apps

    Free plan10 researched notes
  • Open-source 3D game engine integrated with Blender

    Free plan9 researched notes
  • MIT-licensed modern C++ game engine for mobile, desktop, Xbox and WebAssembly

    Free plan11 researched notes
  • Free open-source 3D and 2D game engine with a visual editor and a Pascal API

    Free plan11 researched notes
  • Open-source Node.js framework for real-time multiplayer games, with managed hosting

    Free plan12 researched notes
  • Free Godot plugin for dialogue, characters and visual novels

    Free plan12 researched notes
  • Create 2D RPGs with ease. The perfect tool for indie developers

    From $79.99/one-time13 researched notes

Softwr does not host reviews and shows no star rating for LittleJS, because a rating we did not collect is not ours to publish. What is here is the pricing and platform detail from the vendor’s own pages, limitations we could state concretely, and alternatives a reviewer confirmed people weigh against it. Tell us if any of it is wrong.

More on LittleJS

Best Game Development software alternatives

Free open-source browser tool for animation and simple games

open-source

Drag-and-drop visual novel studio with browser export and no royalties

one-time

Free cross-platform level editor for Quake-engine games

open-source

Free open-source pixel art multitool made with Godot

open-source

Visual desktop editor for building Phaser 4 games, from $12 a month

subscription

Open-source high-level multiplayer networking library for Unity

open-source

Free open-source sprite editor and animation tool, forked from Aseprite

open-source

Compare LittleJS with alternatives