Need help with untrusted?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

4.2K Stars 686 Forks 1.2K Commits 51 Opened issues


A meta-JavaScript adventure game by Alex Nisnevich and Greg Shuflin.

Services available


Need anything else?

Contributors list

Untrusted —or— the Continuing Adventures of Dr. Eval is an exciting Meta-JavaScript Adventure Game wherein you guide the dashing, steadfast Dr. Eval through a mysterious MACHINE CONTINUUM, wherein, using only his trusty computer and the TURING-COMPLETE power of JavaScript, he must literally ALTER HIS REALITY in order to find his freedom! You must literally edit and re-execute the very JavaScript running the game in your browser to save Dr. Eval from this dark and confusing reality!


The game presents you with a roguelike-like playing environment and a console window with the JavaScript code generating each level. As loaded, each level is unbeatable, and most of the JavaScript is blocked from editing. The challenge is to open a path to the next level using only the limited tools left open to you.



to merge the JavaScript files into
(and enables debug features).
make release

merges and minifies the JavaScript files into

(and disables debug features).

To run the game locally, you need to set up a local server to serve

(this step is necessary due to Access-Control-Allow-Origin restrictions).

First install http-server if you haven't already:

npm install http-server

Then run:

make runlocal

Build your own mod in the

make mod=example_mod

Contributing Levels

To add a new level, create a jsx file in /levels/bonus and add the level filename to the

array in game.js.

If you are adding any new commands that the player can use, make sure to add them to


The .jsx file format

jsx files are like regular JavaScript files, but have some additional syntax: -

surround editable lines -
wrap editable sections (parts of lines) -
surround the properties object at the start of the file. Available properties include: -
: array of new commands introduced in the level (see
) -
: optionally contains any of the following: -
: if true, placed static objects can be overwritten by other objects -
: specifies the lag, in milliseconds, between player keystrokes (default: 0) -
: the refresh rate of the level, in milliseconds (required for dynamic objects with
properties to work correctly) -
: if true, the drawing canvas overlay is displayed -
: if true, a dummy DOM will be displayed instead of the regular map -
: name of the background track for the level (see
) -
: message displayed at the bottom of the screen when the level starts (if any) -
: increase the level version whenever you update a level -
: load another level automatically when this one is solved -
should be the first and last line of the
method, respectively

Adding music

To add a new background music track, add an MP3 file (that you have permission to use) to the /music and add a new entry to the

array in sound.js.


Untrusted is a game by Alex Nisnevich and Greg Shuflin.

We'd like to thank:

  • Dmitry Mazin for design assistance and for the implementation of multiline editing
  • Jordan Arnesen for playtesting and design of lvl17
  • Natasha Hull-Richter for extensive playtesting and assistance in level design
  • Alex Bolotov, Colin Curtin, Conrad Irwin, Devin C-R, Eugene Evans, Gilbert Hsyu, Jacob Nisnevich, James Silvey, Jason Jiang, Jimmy Hack, Philip Shao, Ryan Fitzgerald, Stephen Liu, Yayoi Ukai, and Yuval Gnessin for playtesting and feedback
  • Ondřej Žára for his rot.js library
  • Marijn Haverbeke for his CodeMirror library
  • Brian Harvey for allowing us to use his likeness in lvl19


You can listen to the full soundtrack here.

The music that appears in Untrusted, in order, is:


This work is dual-licensed.

  • Untrusted and the Untrusted soundtrack are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License (CC-BY-NC-SA 3.0). In other words, you are free to use and modify Untrusted for non-commercial purposes, provided that you credit us and your work is also licensed under CC-BY-NC-SA.
  • Additionally, the Untrusted code without the soundtrack is licenced under a commercial license. This means that you are able to use Untrusted for commercial purposes under some conditions, provided that you do not use any of the music. Please contact us for details.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.