whatisgithub

What is z-babel?

wisec/z-babel — explained in plain English

Analysis updated 2026-07-26

1CAudience · generalComplexity · 4/5Setup · moderate

In one sentence

Z-Babel lets you play classic text adventure games in 20 languages by translating your commands to English and the game's responses back to you, all in your browser.

Mindmap

mindmap
  root((repo))
    What it does
      Translates game text
      Voice input and output
      Runs in browser
    How it works
      WebAssembly game engine
      AI language layer
      Local storage only
    Use cases
      Play games in your language
      Voice-controlled adventures
      Explore text game history
    Tech stack
      C and WebAssembly
      JavaScript
      Google Gemini API
    Audience
      Text adventure fans
      Non-English speakers
      Accessibility users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Play classic text adventures in your native language instead of English.

USE CASE 2

Use voice commands to control a text adventure game hands-free.

USE CASE 3

Experience retro games with spoken narration and localized interface.

USE CASE 4

Run a fully local text adventure player with save and map tracking.

What is it built with?

CWebAssemblyJavaScriptEmscriptenNode.jsGoogle Gemini

How does it compare?

wisec/z-babelabrown/aomadroxz1122/injected-host-enumeration
Stars111
LanguageCCC
Last pushed2020-03-11
MaintenanceDormant
Setup difficultymoderatehardmoderate
Complexity4/55/53/5
Audiencegeneraldeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Playing in a non-English language requires a Google Gemini API key, while building from source needs Emscripten and Node.js.

So what is it?

Z-Babel is a browser-based tool that makes classic text adventure games playable in languages other than English. Text adventures are story-driven games where you type commands to interact with a world, like "take lamp" or "go north." The original games were written with terse English commands in mind, which can frustrate players who prefer their own language. Z-Babel sits between you and the game, translating your natural or spoken instructions into the exact English commands the game expects, then translating the game's responses back to you. The underlying game engine is not replaced by AI. The original adventure logic runs exactly as written inside a WebAssembly build of the Frotz and Jericho interpreter. The AI layer only handles language: translating your commands, normalizing conversational phrasing into proper parser commands, handling speech input, generating spoken narration, and localizing the interface. This means the game still behaves like the original, but you can interact with it in a more natural way. Z-Babel uses a bring-your-own-key model with Google Gemini. You provide your own Gemini API key for translation, speech-to-text, and text-to-speech. Google offers a small free tier that may cover light testing. If you play in typed English, no API key is needed. The app runs entirely in your browser: there is no server backend, and your story files, saves, transcripts, map state, translation cache, and generated speech audio all stay local. The interface supports 20 target languages plus a matching set of UI locale files that switch buttons, help text, and status messages. You can save, restore, export, import, and restart games. A map tracks explored rooms, and the app keeps both an autosave and a manual checkpoint. Voice input works by holding the left Shift key while speaking or using a Speak button, with a 15-second recording limit. For developers, the project requires Emscripten, Make, and Node.js to build. The interpreter is compiled from vendored Jericho and Frotz source into WebAssembly, and a JavaScript wrapper exposes the browser API used by the app. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
How do I set up and use Z-Babel to play a classic text adventure game in my own language using my Gemini API key?
Prompt 2
How can I add a new target language for game translation in Z-Babel, including the UI locale file?
Prompt 3
Explain how Z-Babel uses WebAssembly to run the original game engine while the AI layer only handles translation.
Prompt 4
How do I build the Z-Babel interpreter from source using Emscripten, Make, and Node.js?

Frequently asked questions

What is z-babel?

Z-Babel lets you play classic text adventure games in 20 languages by translating your commands to English and the game's responses back to you, all in your browser.

What language is z-babel written in?

Mainly C. The stack also includes C, WebAssembly, JavaScript.

How hard is z-babel to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is z-babel for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.