Write a visual novel the way you’d write the story.

Monogatari is a free, open-source visual novel engine for the web. Write your game as a simple script, and people can play it in their browser, on their phone or on their desktop.

Free under the MIT License since 2015, with 900 stars on GitHub.

js/script.js

  1. monogatari.script({
  2. 'Start': [
  3. 'show scene afternoon with fadeIn',
  4. 'show character y happy at left with fadeIn',
  5. 'y Hi! I\'m Yui. Each line of this script is one step of the scene.',
  6. 'show character m happy at right with fadeIn',
  7. 'm And I\'m Mio. You write the lines, and Monogatari plays them.',
  8. 'show background night with fadeIn',
  9. 'y Your game runs in any browser, on phones and on desktops.',
  10. {
  11. 'Choice': {
  12. 'Dialog': 'm So, where to next?',
  13. 'Features': {
  14. 'Text': 'Show me what it can do',
  15. 'Do': 'jump Features',
  16. },
  17. 'Begin': {
  18. 'Text': 'How do I start?',
  19. 'Do': 'jump Begin',
  20. },
  21. 'Support': {
  22. 'Text': 'How can I help?',
  23. 'Do': 'jump Support',
  24. },
  25. },
  26. },
  27. ],
  28. });
Yui, smiling Mio, smiling

Yui

Click or tap the scene to play the next line. Yui, Mio and the backgrounds by Queen BeeBee.

Made with Monogatari

Mysteries, comedies, romances and kinetic novels, made by writers and small studios all over the world.

See every game in the gallery, or show yours in the Discord showcase.

Everything a visual novel needs, built in

Mio

Characters, choices, music, saves, rollback and the menus for all of it come with the engine, so your time goes into the story. Each of these takes a line or two.

Yui in front of the Palacio de Bellas Artes, with her worried face beside the text box and a line where the word tomorrow is larger and terrible is in bold.

Words that shake, wave and glow

Thirty-seven text effects, from a whisper to a shout, and letters that appear as if they were being typed.

'y:worried The review is {big}tomorrow{/big}?'
The load screen with three saved games and two autosaves, each with a picture of the moment it was saved and its date.

Saves with a picture of the moment

Players save anywhere and see exactly where they left off. Autosaves are one setting away.

'AutoSave': 5,
Yui in front of the Palacio de Bellas Artes, with her line and the quick menu in Spanish.

Your story in every language

Write each translation next to the original and let players pick theirs. Right-to-left languages read right to left.

'Español': { 'Start': [ … ] },
The Palacio de Bellas Artes behind a page of narration about three days of rain, with a line from Yui and a reply from Mio written on the same page.

Pages of narration, too

Switch from the text box to full pages of prose whenever a scene asks for it, with your characters speaking on the page.

'nvl The rain had not stopped for three days.'

And everything around them

  • Back undoes anythingPlayers can step back through choices, music, images and every other change.
  • Auto-play, skip and a logRead at your own pace, race through what you’ve seen, or look back at every line.
  • Characters with feelingsSprites, side images and expressions, or characters built from layers.
  • Music, sound and voicesEach with its own volume slider, and audio effects when you want them.
  • Video and particlesPlay a cutscene, or fill the sky with snow, stars or falling petals.
  • Timed choices and text inputAsk the player for their name, or give them five seconds to decide.
  • Gallery and creditsPictures players unlock as they play, and a screen to thank your team.
  • Made for every playerScreen readers read every line with its speaker, and every button has a name.
  • Phones and tabletsFits any screen, and installs as an app that plays offline.
  • Desktop appsPackage your game for Windows, macOS and Linux with Electron or Electrobun.
  • Mistakes, explainedA typo opens a dialog that names it and suggests a fix, and the game keeps going.
  • Make it yoursYour game is a web page: style it with CSS, and add statements and components of your own.

All you need is a browser and a text editor

Yui

No installer, no terminal and no build step. Really! People make Monogatari games on laptops, tablets and even phones.

  1. Download the starter game

    Unzip it anywhere. It’s a folder of plain files, and it’s already a working game.

  2. Open it in your browser

    Double-click index.html and play the sample game once.

  3. Write your story

    Change a line in js/script.js, save it, and reload the page to see it play.

Monogatari v3 is on its way

A rebuilt engine with new ways to play. Insiders on Patreon see every sneak peek and prerelease build a month before everyone else.

  • A phone in every pocket. Characters text the player, and the player texts back.
  • Stats and relationships. Keep score of anything, and let a scene start when a value crosses a line.
  • A week to plan. The schedule planner from raising and dating sims, built in.
  • Thirteen themes. Change the whole interface by picking one.
  • Saves that survive your updates. Fix a typo or add a scene, and your players’ saves still load.

Insider membership: 7 a month, and it supports everything else on this page.

A v3 game at night in front of the Palacio de Bellas Artes, with the in-game phone open on a late-night chat with Yui while the text box reads: Your phone buzzes on the nightstand.
The in-game phone, coming in v3.

Help keep Monogatari free

Diana

Hi! I’m Diana, a developer from Mexico City, and I’ve been building Monogatari since 2015. It’s free and open source, and it’s staying that way. Your support pays for the time it takes: fixes, documentation, new features, and getting v3 out the door.

Become a member on Patreon

A monthly devlog, sneak peeks a month early, and your name on the supporters list.

What each tier adds, on top of the ones before it:

  • Supporter, 3 a month: your name on the supporters list below, and the members-only “What’s next” post that comes with every devlog.
  • Insider, 7 a month: sneak peeks and prerelease builds a month before everyone else, and a vote in the roadmap poll.
  • Patron, 15 a month: your name in the credits of the docs, every digital extra at no charge, and your questions answered first.
  • Studio, 50 a month: your studio’s logo and link on this page and in the README, a mention in every release post, and bug reports triaged within a week.

Free members get the public devlog every month, too.

Sponsor on GitHub

For developers and companies already on GitHub. GitHub takes no fee from sponsorships by personal accounts, so all of it reaches the project.

Leave a tip on Ko-fi

A one-time thank-you, no account needed. Tips go toward the current goal: the Monogatari v3 release.

You can also donate with PayPal.

Thank you to our sponsors

No studio sponsors yet: your studio’s logo could be the first one here. Everyone who has sponsored Monogatari before is on the contributors page.

Make games with other people

Mio

Stuck on something? Someone on the Discord has probably been there before, and the support forum is the place to ask.

Discord

About 650 people making visual novels. Ask in the support forum, show your game in the showcase, and hear about releases as they happen.

GitHub

Report a bug, suggest a feature, help translate the interface, or improve the docs. You don’t need to be a programmer to help.

Questions people ask first

  1. You

    Is it really free? Can I sell my game?

  2. Diana

    Yes, and yes. Monogatari is free software under the MIT License, so you can use it for free and commercial games alike, change it, and ship it with your game. The tutorial’s art, Yui, Mio and the Palacio de Bellas Artes, has terms of its own: it’s for free games only.

  3. You

    Do I need to know how to program?

  4. Diana

    Only a little. Your script is a list of lines in quotes, separated by commas, and the tutorial shows every piece you write. When you want more, your game is plain JavaScript, HTML and CSS, so anything the web can do, your game can do.

  5. You

    Where can I publish my game?

  6. Diana

    Anywhere a web page can go: your own website, itch.io or any web host. Players on phones can add it to their home screen, and you can package it as a desktop app for Windows, macOS and Linux.

  7. You

    Can I make a game on a phone or a tablet?

  8. Diana

    Yes. You need an app that can edit the game’s files and open index.html in the browser, or a way to put the folder online and open it from there.

  9. You

    How is it different from Ren’Py?

  10. Diana

    A Ren’Py game is a desktop program written in Python. A Monogatari game is a web page, so it plays in any modern browser with nothing to install, and it can use everything the web offers. Both are free: pick the one that fits your game.

  11. You

    Who makes Monogatari?

  12. Diana

    I do! I’m Diana, also known as Hyuchia, and I’ve been building it since 2015 with help from the contributors and the community. It’s funded by people like you, through Patreon, GitHub Sponsors and Ko-fi.

Not the right fit?

Monogatari isn’t here to compete. If another engine suits your game better, use it: the world just needs more visual novels.

Diana

Thanks for downloading!

Your download has started. Monogatari is free, and it’s made in my spare time: if it helps you tell your story, any of these helps me keep going.