Skip to content

About

Monogatari is a simple web visual novel engine, created to bring Visual Novels to the web.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Monogatari

Monogatari

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

Features

  • 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!

What do I need to get started?

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.

  1. 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).
  2. Open index.html in your browser and play the sample game.
  3. Open js/script.js in your editor. The story is the list of lines inside monogatari.script({ … }). Change one, save the file and reload the game: your change is there.
  4. 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.

Documentation

You can read the documentation at monogatari.io/v2.

The documentation source lives in the docs/ folder of this repository.

Monogatari as a Module

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.

Browser

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;

ES Modules / Bundlers

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.

Contributing

Contributions are always welcome! Read the CONTRIBUTING file to get started.

License

Monogatari is a Free Open Source Software project released under the MIT License.

About

Monogatari is a simple web visual novel engine, created to bring Visual Novels to the web.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages