Monogatari v2.9.0
November 28, 2026
Download Link: monogatari-v2.9.0.zip
v2.9.0 is the biggest fix release Monogatari 2 has had. While rewriting the documentation, every page was checked against the engine itself, and that turned up problems in every corner of it, from games that froze after a typo to music that didn’t play when a game was opened from its file. This release fixes them, each one with a test that fails without the fix.
Your script, your settings, your styles and your players’ saves keep working: nothing was renamed or removed, and for most games upgrading means replacing one folder.

Monogatari is free, open source, and built in the open: releases like this one are powered by the people who chip in to keep it going. If the engine helps you bring your stories to life, please consider sponsoring its development:
๐ A mistake no longer freezes your game
In 2.8, any statement that failed, like a jump to a label that doesn’t exist, left the game stuck on that line. In 2.9.0 the statement shows its error dialog, the next click goes on with the statement after it, and Back steps over it:
'y Come on, the lamps are about to come on!',
'jump Lamps', // There's no label called Lamps
'm Looks like that label isn\'t written yet...',
Problems that used to be silent open a dialog while you develop, too: an object statement no action knows (a misspelled Choice), a label that runs out of statements without an end or a jump, a jump to an empty label, an endless loop of jumps, and a wait whose time isn’t a number. A typo in any of your .js files opens one dialog that names the file and the line, where 2.8 left a blank page. Diagnosing Errors lists every dialog by its title.
โช Back undoes exactly what happened
Going back now undoes exactly what each statement did, for choices, music, sounds, videos, particles, the gallery, the text box, images, backgrounds, canvases and NVL pages. In 2.8, some of these brought back things that were never there, or removed more than they should. Back from the line an option showed returns to the choice menu and runs its onRevert.
๐พ Saves you can count on
js/storage.js declares, instead of carrying over variables from the last game or an older save.monogatari.upgrade() works with IndexedDB, the starter game’s storage.Version or changing your Store no longer hides your players’ saves. The game keeps using them, and a dialog tells you what to change back.โฉ Skip and auto-play
The quick menu’s Skip button and the S key turn skipping on and off whenever the Skip setting is above 0; in 2.8 they did nothing. Auto-play stops the moment the player turns it off, and a double click moves the game forward once.
๐ Audio that plays
delay, chorus, phaser, ringmod and autowah effects change the sound. In 2.8 they did nothing, so a game that used them will now hear them.โ๏ธ A typing cursor, and effects on every line
The new TypingCursor setting shows a blinking cursor after the last typed letter:
// js/options.js
'TypingCursor': true,Style it with --cursor-blinker, --cursor-speed and --cursor-easing (see Type Writer). Text effects also show on lines that appear at once, and the effects that reveal letters start as each letter is typed.
๐ Translations and right to left
monogatari.translations(object) adds strings to a language instead of replacing all of them.<html lang> and <html dir> follow the game’s language, so a game in Arabic is laid out right to left.๐จ Interface

/* style/main.css */
:root {
--text-box-text-color: #fff7e6;
--choice-text-color: #fff7e6;
--modal-background-color: #fdf6ec;
--loading-bar-color: #c28cf0;
}The full list is on CSS Variables.
โฟ Accessibility
Screen readers read every new line with its speaker, sprites by name and expression, and the name of every button and slider. The starter game allows pinch zoom on phones (Accessibility shows the one-line change for your own index.html), and the message asking players to rotate their phone has an OK button.
๐ฅ๏ธ Desktop apps
FileSystem storage works in both the Electron and the Electrobun apps: saves are files in the app’s data folder.package.json runs without Yarn, builds the Linux app and makes a smaller Electron app. Releasing for Desktop lists the lines to copy into yours.๐ Offline play on the web
With the new service-worker.js, a game in a sub-folder of a website (itch.io, GitHub Pages) plays offline, players get the scripts and stylesheets you change on their next visit, and two games on one website keep their offline copies apart.
๐ Live reload while you work
Serve your game with bun run serve and the page reloads by itself each time you save a file, showing the change, a replaced picture or sound included. In 2.8 it never did: the starter’s own security policy blocked the reload. Open Your Game shows how to start the server.
๐ New documentation, and art you can use
The docs at monogatari.io/v2 were rewritten and checked against the engine, from a Start Here tutorial that goes from the downloaded zip to a story shared online, using only a browser and a text editor, to a reference for every action, component, setting and engine method, and a path for people who want to work on Monogatari itself.
The tutorial and the docs use art by Queen BeeBee: the Palacio de Bellas Artes at four times of day, and Yui and Mio, remade from their original files. Two downloads bring them to your own projects:
monogatari-tutorial-assets-v2.9.0.zip: the tutorial’s scenes, characters, music and sound.monogatari-characters-v2.9.0.zip: Yui and Mio facing both ways, with every layer, 16 expressions in each of their two poses, side images, and declarations ready to paste for whole and layered sprites.
IMPORTANT
The art isn't covered by Monogatari's MIT license. It comes with its own terms, in TERMS.txt in both downloads: use it to learn and in games you give away for free, always credit Queen BeeBee with a link to her page, and never use it with AI or in anything that makes money. The FAQ has the details.
None of these need a change in your game, but they can make it look or behave a little differently:
<b>Kim</b> as their name, the line shows the tags instead of a bold name, so nothing a player types can change your page. If your own variables hold HTML on purpose, turn it back on:// js/options.js
'AllowHTMLInVariables': true,{{variable}} that doesn’t exist shows in the line as written. 2.8 emptied the whole line.js/storage.js.--effect-wave-amplitude to make them rise, use a positive value now.centered-dialog { background-color: transparent; color: var(--text-color); } to style/main.css.monogatari.configuration({ part: { โฆ } }) changes the configuration, and a menu on screen redraws when its configuration changes. Menu methods like addButton() work anywhere in your files, not only after init().onSave() on actions and components runs after every save.didApply() that returns nothing waits for the player instead of throwing.assetFailed event for each file that fails, and didPreloadAssets always fires.Component.get(id) and instance(id) find elements by data-instance, and a component registered for a tag that’s already in use keeps the first one.@monogatari/core (TypeScript 5.0 or later).2.9.0.Here is everything 2.9.0 fixes, area by area, the highlights above included. Open an area to read it.
didApply() that returns nothing waits for the player instead of throwing.end or jump, shows an error at its end.Skip setting is above 0.data-action inside the game screen no longer advances the game too.wait reads its time after extra spaces ('wait 500'), and a time that isn’t a number shows an error instead of waiting for a click.vibrate in a browser that can’t vibrate, and show notification in one without notifications, go on instead of holding the game, and a notification no longer waits for the player to answer the permission prompt.show scene or show background clears it, and its duration too.hide image brings back every copy it hid.show textbox hides the text box only if it was hidden before, and going back over a hide textbox that found it hidden keeps it hidden.gallery unlock only locks a picture that statement unlocked.hide particles or hide video only brings back what was showing, and videos no longer appear twice.particles restores the first system instead of removing every particle.hide canvas shows the canvas again in its own mode.show canvas removes and forgets only the most recent canvas with that name and mode.play resume no longer pauses tracks that were never paused, going back past a second play of a playing track no longer stops it, and going back past a stop no longer brings a paused track back playing.Reverse works after a load.Do is an object, or is missing, no longer leaves the game waiting.Condition no longer locks the game after the pick.Do showed returns to the menu, runs onRevert and forgets the pick, so picking again runs onChosen once.onChosen has no onRevert can’t be gone back past, every time. In 2.8, Back showed the menu again with the first pick’s changes still in place.Do failed shows the menu again, with onRevert run.Do showed loads on that line, instead of on the menu with the pick kept.Conditional with no branch for the result goes on to the next statement, and an error in the branch it ran no longer runs the other branch too.Validation returns neither true nor false shows an error, instead of leaving the player stuck.Default.js/storage.js declares: variables the game added without declaring them no longer carry over.monogatari.upgrade() works with IndexedDB, the starter’s storage, and from any of your files, after preferences() too. In 2.8 it left a blank page, or never ran.Version set lower than before, a Version of 0.0.0, or a changed Store no longer hides your players’ saves. The game goes on with the data they have, and a dialog says what to change back.Name with no Latin letters or digits, like ็ฉ่ช, gets a storage name of its own, so saves work. LocalStorage saves a 2.8 game made without a name prefix are copied over once.FileSystem storage runs its upgrade functions, and in a browser its dialog says it needs a desktop app.Screenshots setting no longer claims it needs IndexedDB: save pictures work with every storage.delay, chorus, phaser, ringmod and autowah effects change the sound. In 2.8 they did nothing.play music for a track that’s already playing keeps its loop, and a save restores the track once, even a 2.8 save that held it twice.play music with โฆ and stop music with fade โฆ without a track name no longer store a track called “with”, so saves and Back treat them right, and stopping several tracks fades them out together.play musik theme, stop musik, pause musik) shows an error instead of crashing, and a named pause of a track that isn’t playing no longer fails.monogatari.assets() is reported instead of skipped.show video intro with close), a modal video with close no longer skips the line behind it, and immersive and fullscreen videos without close let the player move on once they end.hide video on a modal, immersive or fullscreen video lets the game go on, and hide video rain fadeOut plays fadeOut.show scene black with fadeIn, show background red with fadeIn) shows the color, and with no longer ends up as a class.hide character and hide image with a class that isn’t an animation remove the sprite at once, instead of leaving it on screen.end- animations keep their whole name (end-shake-hard), and work for images too.sprites, or show character with no name, shows an error dialog instead of a TypeError.default_expression without expressions is used as the side image’s file, and the line shows. Preloading no longer asks for it as a file for every character.end- classes play, and a layer you removed stays gone.layer_assets, or listed there but not in layers, shows an error instead of throwing or never being drawn.hide textbox shows again in the next game.gallery unlock of a picture already unlocked no longer adds it twice.show canvas stars with fadeIn works without a mode, and each show gets its own copy of the canvas’s nested state.hide canvas stops, removes and forgets one canvas when an object was shown twice, takes classes written without with, and removes the canvas at once when its class animates nothing.--effect-reveal-duration sets how long the reveal effects take.didStartTyping fires once per line.TextSpeed set from code keeps working after the first line, and the Text Speed slider no longer drops a showCursor set in the type writer’s configuration.TypingCursor setting shows a blinking cursor after the last typed letter, and --cursor-color follows the text color.{{variable}} that doesn’t exist shows in the line as written. 2.8 emptied the whole line.'AllowHTMLInVariables': true brings back values as HTML. A value that refers back to itself stops with an error instead of overflowing the stack.monogatari.translations(object) adds strings to each language, instead of replacing the language’s whole table._(Key) markers work side by side and inside parentheses.actionString works and survives a language change, and so do the quick menu’s swapped labels.Language.SaveSlotName string.AllowPlayback.<html lang> and <html dir> follow the game’s language, so a right-to-left game is laid out right to left.rtl, the text box’s line is right-aligned, the side image is no longer mirrored twice, and the screens’ back button sits at the top right.side-image--non-independent and side-image--unconstrained classes do what they say.icon="undefined", and menu labels can be plain text as well as translation keys.addButton() and the others) work anywhere in your files, and configuration('main-menu', โฆ) or component('main-menu').configuration('buttons', โฆ) changes the menu on screen.index.html shows an error instead of an empty page.monogatari.alert() works before init(), and dismissing one alert leaves the others open.Orientation, the rotate message has an OK button..margin class has its unit.style/main.css match what the engine draws.index.html allows pinch zoom.js/main.js never sets a debug level..js files opens one dialog that names the file. A typo in js/main.js no longer leaves a blank page, and one in js/script.js no longer adds a second dialog about the Start label.http) instead of pointing at a Chrome app that no longer exists.FileSystem storage works in both apps: saves are files in the app’s data folder. In 2.8 it hung the game at boot.Resolution is '1280x720', so a window with ForceAspectRatio set to 'Global' opens at 16:9.package.json runs without Yarn, builds the Linux app, keeps Electrobun out of the Electron app (which makes it much smaller), and makes a release build of the Electrobun app.teamId it needs.desktopName, so Linux matches the window to its app.bun run serve reloads the page each time you save a file, and serves file names with spaces.monogatari.configuration({ part: { โฆ } }) changes the configuration. In 2.8 it changed nothing.onSave() runs after every save, and fn(name) reads without overwriting what was stored. interrupt(), the static match(), _priority and _events, which the engine never used, are marked deprecated.Component.get(id) and instance(id) find elements by data-instance, and Component.configuration('key', value) sets one key on any component.unregisterComponent() before setup keeps the experimental components.engine from the start, so their helpers work before init().setup() gets its selector, loadingOrder sorts as numbers, and a menu’s template() survives a configuration update.assetFailed event for each file that fails, and didPreloadAssets always fires.@monogatari/core, registerAction() takes a subclass of Action in strict mode, and the doc comments of preferences() and registerAction() are corrected.bun run test runs the Cypress specs in Chrome or Chromium.v2.8.0 or v2.8.1engine/core/ and engine/debug/ folders with its own.service-worker.js into your game too. At its top, set NAME to your game’s name again, and add back any file you had added to the FILES list.bun run serve, copy the starter’s serve.ts into your game too, for the automatic reload.engine/desktop/, engine/electron/ and engine/electrobun/ folders.Using npm? Run npm install @monogatari/core@2.9.0.
The Upgrading from 2.8 page lists every change a game could notice, area by area.
v2.x.x versionFollow the steps above, and read the 2.8.0 release notes first: 2.8.0 changed how text effects close, and how custom actions block the game.
v1.4.1 (stable) or belowIf you’re upgrading from a game built on v1.4.1, we recommend reading the Upgrade Guide first: the jump to v2 is a big one.
Code changes: v2.8.1…v2.9.0
November 28, 2026
November 28, 2026
Hyuchia