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

@yagejs-addons/dialogue

v0.3.0

Published

Dialogue runner, branching, and swappable presenters for YAGE — the first YAGE addon

Readme

@yagejs-addons/dialogue

The first YAGE addon — an installable, opinionated dialogue system: a headless branching runner plus swappable, themeable presenters. Drop it into a scene, point it at a dialogue script, and get a working typewriter box (or speech bubble) with branching choices and inline markup — then re-theme or replace any piece without forking.

Addons are the layer between engine plugins (@yagejs/core, @yagejs/renderer, …) and your game: real implementations of common gameplay patterns, opinionated enough to be worth installing, layered so the opinions stay overridable. See packages/addons/AGENTS.md for the authoring model.

Install

npm install @yagejs-addons/dialogue

The addon declares the engine packages as peer dependencies, so it reuses your single engine install rather than duplicating it. Install the engine yourself:

npm install @yagejs/core @yagejs/input @yagejs/renderer
  • @yagejs/core and @yagejs/input are required peers — the headless runner and the DialogueController use them.
  • @yagejs/renderer is the optional peer — only the ./presenters subpath needs it (and it brings pixi.js transitively, so you never install pixi yourself). If you consume only the headless runner you can skip it.

Two entry points

The package is split so the headless path never pulls a renderer:

// Headless + input only — no pixi, fully unit-testable.
import { DialogueRunner, DialogueController } from "@yagejs-addons/dialogue";

// Pixi presentation — Graphics chrome + canvas text, themes, factories.
import { defaultDialogueTheme, createBoxDialogue } from "@yagejs-addons/dialogue/presenters";

| Entry | Imports | Contains | | -------------- | -------------------------------- | ----------------------------------------------------------------------- | | . | @yagejs/core, @yagejs/input | runner, session, types, markup, i18n, canonical format, events, DialogueController, input bindings | | ./presenters | + @yagejs/renderer (brings pixi) | chrome, text views, composites, avatars, factories, defaultDialogueTheme(), textured nine-slice variants, radial (experimental) |

Defaults & opt-ins

  • Default presenters are zero-asset: Graphics objects for chrome plus canvas SplitText/Text for the typewriter, with native bold/italic and per-glyph effects. defaultDialogueTheme() gives you a working look with no bundled files.
  • Bitmap fonts (baked variant atlases via bakeBitmapFont) are an opt-in theme path, not the default.
  • Textured chrome/bubble (nine-slice from your own textures) is an opt-in variant; pass texture fields on the theme.
  • Radial choice presenter is exported under ./presenters as @experimental — not polished, opt-in only.

Save / load

Snapshot/restore is deferred to v1.1. The runner keeps its cursor reachable through read-only getters so a SnapshotContributor (@yagejs/save) can be added later without a breaking change.

Publishing caveat (@yagejs-addons scope)

Addons live under the @yagejs-addons npm scope — a separate org from the engine's @yagejs scope. The scope is the only category marker (no -toolkit/-system suffixes). Addons are independently versioned: they are deliberately kept out of the engine's fixed changeset group, so engine releases never force an addon bump and vice-versa. Publishing requires membership in the @yagejs-addons org and publishConfig.access: "public" (already set here).