RepositoryTypeScript
DRincs-Productions

DRincs-Productions/pixi-vn

Create cross-platform visual novels/story-driven game with a modern 2D rendering engine and your favorite JavaScript framework.

158stars
9forks
6issues
5views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: adventure-game-engine

#1 Repository of the week

1
TINIX TRENDING·Topic: ink

#1 Repository of the week

1
TINIX TRENDING·Topic: pixi-vn

#1 Repository of the week

Pixi’VN - PixiJS Game Engine

pixi-vn-cover

npm version npm downloads per month jsDelivr hits (npm) NPM License Discord

Pixi’VN is a very versatile and powerful 2D game engine. It is based on JavaScript/TypeScript and PixiJS.

It provides the following features:

  • narrative management
  • provides a 2D canvas
  • providing functionality to play sounds and music
  • storage to set and get game variables.
  • saves the current state of the entire game at each "story step" giving the possibility to go back
  • functionality to save and load the current state of the game.

For a quick start, various project templates are available. Less experienced developers can use these templates without much knowledge of JavaScript/TypeScript.

You have the option to use various types of narrative languages ​​(in addition to JavaScript/TypeScript). Currently you can use the following:

Pixi’VN does not provide built-in components to create the game UI. Instead, you should use external JavaScript frameworks to build your UI. This allows you to leverage systems such as React, Vue, etc., to create complex and high-performance UI screens.

Wiki

Prerequisites

Before starting, you must have the following tools installed:

Project Initialization

If you want to start from a new project, you can use the following command to initialize a new project with the Pixi’VN templates:

npm create pixi-vn@latest

You can see the list of available templates and interactive demos here.

After the project is initialized, open the project directory with your text editor (VSCode is recommended) and start developing your project.

Installation

To install the Pixi’VN package in an existing JavaScript project, use one of the following commands:

npm install @drincs/pixi-vn

Initialize

Before using the Pixi’VN engine, you must initialize the game. You can do this by calling the Game.init method.

import { Game } from "@drincs/pixi-vn";

const body = document.body;
if (!body) {
  throw new Error("body element not found");
}

Game.init(body, {
  height: 1080,
  width: 1920,
  backgroundColor: "#303030",
}).then(() => {
  // ...
  Game.start("start", {});
});

// read more here: https://pixi-vn.com/start/other-narrative-features.html#how-manage-the-end-of-the-game
Game.onEnd(async (props) => {
  Game.clear();
  // navigate to main menu
});

Game.addOnError((error, props) => {
  console.error(`Error occurred`, error);
});

Game.onNavigate((path) => navigateTo(path));


  
    
    
    
  
  
    <div id="root"></div>
    
  

html,
body {
  background-color: #242424;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
OpenWebGAL/WebGAL_Terre

Galgame Editing. Redefined | 视觉小说编辑,再进化

666
Nov 21, 2026
RepositoryTypeScript
OpenWebGAL/WebGAL

A brand new web Visual Novel engine | 全新的网页端视觉小说引擎

4.1k
Nov 21, 2026
RepositoryTypeScript
pixijs/layout

A Yoga powered layout library for PixiJS.

169
Jun 12, 2026
RepositoryC#
MonoGame/MonoGame

One framework for creating powerful cross-platform games.

14.7k
Nov 30, 2026
RepositoryRen'Py
renpy/renpy

The Ren'Py Visual Novel Engine

7.1k
Dec 1, 2026
RepositoryC#
Lunatic-Works/Nova

Programmer-friendly framework for visual novels (VN) / text-based adventure games (AVG) on Unity

722
Aug 1, 2026
RepositoryHTML
Kirilllive/tuesday-js

simple web-based, free and open-source visual novel editor that can be used in a web browser. It is written in JavaScript without using any third party libraries and thus does not require additional software installation. The engine uses standard HTML document elements such as div and img.

704
Nov 6, 2026
RepositoryRust
xmoezzz/rfvp

A Non-Official Rust cross-platform implementation of the FVP engine & IDE

158
Nov 21, 2026
RepositoryC
Strrationalism/CPyMO

PyMO AVG Game Engine implemention in C.

155
Feb 27, 2026