npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gizmo-v-nk/cheap-web-sound-novel-engine

v0.1.20

Published

A lightweight web-based sound novel (visual novel) engine.

Readme

cheap-web-sound-novel-engine

A lightweight, framework-free web-based sound novel (visual novel) engine for TypeScript projects.

Features

  • Scene-based storytelling: Define scenes with narration, dialogue, choices, and conditional branching
  • Typewriter text animation: Configurable text display speed
  • Choice system: Branching narratives with flag-based conditional next scenes
  • Save/Load system: 3-slot save system with localStorage persistence
  • Audio controls: BGM/SE playback with fade transitions and volume controls
  • Text speed settings: Configurable text display speed with localStorage persistence
  • Title screen: Background rotation, ripple effects, save slot display
  • Multi-language support: Separate SCSS and locale files for each language
  • Zero dependencies: No framework required, pure TypeScript/JavaScript

Installation

npm install cheap-web-sound-novel-engine
# or
pnpm add cheap-web-sound-novel-engine

Quick Start

import { StoryEngine, bootstrap, createFlagStore } from 'cheap-web-sound-novel-engine';
import type { StoryManifest, Scene, FlagDefinition } from 'cheap-web-sound-novel-engine';

// Define your game data
const manifest: StoryManifest = {
  title: 'My Game',
  chapters: []
};

const flags: Record<string, FlagDefinition> = {};

// Bootstrap the engine
const engine = await bootstrap(manifest, flags, document.getElementById('game-container')!);
await engine.initialize();

Importing Styles

// English version
@use 'cheap-web-sound-novel-engine/scss/en/style.scss';

// Japanese version
@use 'cheap-web-sound-novel-engine/scss/ja/style.scss';

Or use the compiled CSS:

<link rel="stylesheet" href="node_modules/cheap-web-sound-novel-engine/css/en/style.css">

Exports

Classes

  • StoryEngine: Main game engine with scene management, typewriter text, choices, save/load
  • AudioController: BGM/SE playback with fade transitions

Functions

  • bootstrap: Initialize the engine
  • createFlagStore: Create flag store for conditional scene branching
  • createResourceLookup: Create resource lookup helper
  • loadAudioSettings / saveAudioSettings: Audio settings persistence
  • loadTextSettings / saveTextSettings: Text settings persistence
  • bindVolumeControls: Bind UI controls to audio settings
  • bindTextSpeedControl: Bind UI controls to text settings
  • loadResources / loadUiStrings: Title screen utilities
  • renderSaveSlots / createSaveSlotCard: Save slot UI helpers

Types

  • StoryManifest, Scene, SceneLine, Chapter
  • CharacterDefinition, FlagDefinition, Resources
  • SaveData, SaveSlot
  • UIStrings
  • AudioSettings, TextSettings

Building

npm run build

Output is generated in dist/ directory.

Development

npm run dev

Starts a development server with hot reload.

License

MIT