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

@vylos/core

v0.9.3

Published

The engine, types, stores, and components for [Vylos](https://github.com/DevOpsBenjamin/Vylos) — a checkpoint-based visual novel engine built with Vue 3 and TypeScript.

Readme

@vylos/core

The engine, types, stores, and components for Vylos — a checkpoint-based visual novel engine built with Vue 3 and TypeScript.

npm

Features

  • Checkpoint-based executionengine.say() and engine.choice() pause via async/await, rollback via re-execute + fast-forward (like Ren'Py)
  • Rollback & history — full forward/back navigation through past dialogue
  • Save/load with mid-event resume — checkpoint system preserves exact position
  • Inventory system — bag-based engine.inventory.add/remove/has/count/list/clear
  • Location & action managers — time-of-day backgrounds, linked locations, conditional actions
  • Drawable events — clickable characters/objects on screen
  • i18nstring | Record<string, string> for multi-language support
  • Plugin system — DI-based (tsyringe) manager and component overrides
  • Dev consolewindow.Vylos for debugging and cheating (state, inventory, engine)
  • H key — hide all UI to view artwork (Ren'Py style)
  • AZERTY/QWERTY auto-detect — keyboard input adapts automatically

Install

pnpm add @vylos/core

Requires Vue 3 and Pinia.

Usage

import {
  createEngine,
  GameShell,
  useEngineStateStore,
  ENGINE_INJECT_KEY,
  type VylosEvent,
  type VylosAPI,
  type VylosGameState,
} from '@vylos/core';

Writing events

const intro: VylosEvent = {
  id: 'intro',
  conditions: (state) => !state.flags['intro_done'],
  async execute(engine: VylosAPI, state: VylosGameState) {
    await engine.say('Welcome!');

    const pick = await engine.choice([
      { text: 'Start', value: 'start' },
      { text: 'Learn more', value: 'more' },
    ]);

    if (pick === 'more') {
      await engine.say('Events pause at each say() and choice().');
    }

    state.flags['intro_done'] = true;
  },
};

Extending types

import type { VylosCharacter, VylosGameState } from '@vylos/core';

interface Character extends VylosCharacter {
  portrait?: string;
}

interface GameState extends VylosGameState {
  player: Character;
  energy: number;
}

Inventory

async execute(engine: VylosAPI, state: GameState) {
  engine.inventory.add('backpack', 'potion', 3);

  if (engine.inventory.has('backpack', 'key')) {
    engine.inventory.remove('backpack', 'key', 1);
    await engine.say('You used the key.');
  }
}

Key bindings

| Key | Action | |-----|--------| | Space / Enter / E | Advance dialogue | | D / Arrow Right | Forward | | A / Q / Arrow Left | Back | | H | Toggle UI visibility | | S | Toggle skip mode | | Escape | Pause menu |

Documentation

Full docs and examples: github.com/DevOpsBenjamin/Vylos

License

MIT