Built to bring Visual Novels to the modern web and take them to the next level, making it easy for anyone to create and distribute Visual Novels in a simple way so that anyone can enjoy them pretty much anywhere, create games with features that no one has ever imagined... It is time for Visual Novels to evolve.
Website: https://monogatari.io/
Demo: https://demo.monogatari.io
Twitter: https://twitter.com/monogatari
GitHub Sponsors: https://github.com/sponsors/Hyuchia
Patreon: https://www.patreon.com/Hyuchia
Ko-fi: https://ko-fi.com/hyuchia
- Written in TypeScript, with full type definitions shipped for the engine, actions and components
- Simple, friendly script syntax — write your story almost as easily as writing it down
- Responsive and mobile-ready out of the box, and compatible with all major browsers
- Progressive Web App features, allowing installable, offline gameplay
- Full multimedia support — images, video, music, sound effects and voices
- Built-in multi-language and translation support
- Save and load, with optional save-slot screenshots
- Rollback, auto-play, text skipping and a dialog log out of the box
- Dialogue text effects
- Asset preloading and unloading for fine-grained memory control
- Ship to the web, or package for desktop (Electron / Electrobun) and mobile
- Extensible through actions, components and decorators — you just can't imagine how much!
A web browser and a way to edit text files. Nothing to install, no terminal and no build step: a Monogatari game is a web page, and people make them on computers, tablets and phones.
- Get the starter game: download monogatari-v2.9.0.zip and unzip it into a folder of its own (its files aren't inside a folder of their own).
- Open
index.htmlin your browser and play the sample game. - Open
js/script.jsin your editor. The story is the list of lines insidemonogatari.script({ … }). Change one, save the file and reload the game: your change is there. - Add a scene: put an image in
assets/scenes/, declare it and show it. Show Scene has the steps.
The Start Here tutorial goes from that folder to a short finished story you can share.
Opened from its file, most of a game works, but music, sound and voices don't play, and a few other things need the game served from a web address. What works opened from a file lists them, with ways to serve a game that need no tools (putting it online is one). If you have a computer with Bun installed, bun run serve in the game's folder serves it at http://localhost:5100 and reloads the page each time you save a file.
You can read the documentation at monogatari.io/v2.
The documentation source lives in the docs/ folder of this repository.
Monogatari's core is published to npm as @monogatari/core. It ships both a self-contained browser bundle and an ES module, along with TypeScript type definitions, so you can drop it into a page as a global library or import it from the bundler of your choice.
Loading the bundle exposes the Monogatari namespace and a ready-to-use monogatari instance on the global scope.
<script src='./monogatari.js'></script>// `monogatari` is available globally; `Monogatari.default` points to the same instance
const monogatari = Monogatari.default;import Monogatari from '@monogatari/core';
import '@monogatari/core/monogatari.css';Type definitions are bundled with the package, so editors get autocomplete and type-checking out of the box.
Contributions are always welcome! Read the CONTRIBUTING file to get started.
Monogatari is a Free Open Source Software project released under the MIT License.