0.5.2 • Public • Published

Emglken: Glk meets Emscripten

Over the years many Interactive Fiction interpreters have been written which use the Glk API, or have been adapted to do so. Emglken takes some of these interpreters, compiles them to use the RemGlk Glk library using Emscripten, and then outputs to Javascript and WebAssembly. These interpreters, which once needed to be compiled for each distinct operating system and CPU combination, can now be run anywhere there's a modern Javascript runtime: on the web with Parchment, in desktop apps like Lectrote, or in Node.js directly.

Emglken itself doesn't have a lot of code, RemGlk does most of the work for us. What Emglken does provide is a virtual file system for Emscripten which lets RemGlk think it is running on a normal Linux filesystem, but is actually transformed to use GlkOte's Dialog API. Emglken also provides a common interpreter interface to handle setting up the connections between each interpreter and GlkOte.

npm package and console app

Emglken has been published to the npm package repository. You can install the emglken package and use each interpreter as you wish. A basic console app is also provided, just run emglken with the path to the storyfile you want to run.

emglken storyfile.gblorb

Included Projects

Both RemGlk and the Emglken customisations are MIT licensed, as are some of the interpreters, but others are licensed under other Free Software licenses as listed below.

Name Upstream repo License
Bocfel garglk/garglk GPL-2.0/GPL-3.0
Git DavidKinder/Git MIT
Glulxe erkyrath/glulxe MIT
Hugo hugoif/hugo-unix BSD-2-Clause
RemGlk erkyrath/remglk MIT
Scare garglk/garglk GPL-2.0
TADS tads-intfic/tads-runner GPL-2.0


npm i emglken

DownloadsWeekly Downloads






Unpacked Size

6.7 MB

Total Files


Last publish


  • curiousdannii