Skip to content
On this page

Building and exporting a Narrat game

Building your game as a website

You can build your game as a static website

npm run build


This will generate a built version of your game as a website in the dist/ folder

Building your game as an app

The narrat template game is setup to use electron to easily build a desktop application out of your game.


  • Have git installed
  • If you're installing git on windows, using the default options for every step in the setup process is fine

You can run your game as an app:

npm run electron

Building the game

Or you can package it as an executable (should work on Windows, Mac, Linux):

npm run package


This will create an application for your OS in the out/ folder

Please look at the electron documentation if you want to customise how your app is built, window sizes and other things (hint: Most of it takes place in the electron-something.js files at the root of the repo)

Building for Steam

Building for Steam