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

@cratis/showrunner.cue.react

v2.24.4

Published

The Cue guided-tour engine for React — a scripted, narrated, video-style walkthrough with an optional written chapter for each step, a pluggable text-to-speech voice-over, and the record of which tours a person has started, built on Cratis Arc and Cratis

Readme

@cratis/showrunner.cue.react

The Cue guided-tour player for React, the Showrunner guided-tour part. A tour is a script of sections, chapters and steps; the player lays it on one clock and plays it with a voice-over, subtitles, a chapter list, a pointer and callouts, and a written version of each chapter. Built on @cratis/components and the generated proxies in @cratis/showrunner.cue. How to use it: Documentation/Cue.

Component hierarchy

CueProvider                 speech, labels, stage guard for every tour below it
└── TourOverlayShell        useTourPlayback, then the chrome and the application's stage
    ├── <stage>             drawn by the application, from the playback, inside the stage guard
    ├── TourSelfPacedPanel  written chapter, in self-paced mode
    │   └── CueMarkdown
    ├── TourChapterList
    ├── TourSubtitles
    └── TourTimelineBar     transport: chapters, play, scrubber, voice, subtitles, self-paced, close

TourAnchor, TourPointer and TourCalloutBubble are for the application's stage: they hold the pointer and the callouts at a place on a board and follow the camera.

Architecture decisions

  • The script is data, the clock is the single source of truth. Tour*.ts types describe the script; tourTimeline.ts lays it on a clock; tourClock.ts decides how the clock advances against the voice. Subtitles, progress, the current chapter and how much of the stage shows are all read from the clock.

    | Module | Decides | | --- | --- | | tourTimeline.ts | where each step, chapter and section sits on the clock, and what comes next or before | | tourClock.ts | how far the clock moves in a tick, when a line ends a step early and when it holds one | | tourSelfPaced.ts | whether there is anything to read, which chapter's text, and the media addresses in it | | tourGeometry.ts | where a point sits on screen, in each of the four spaces | | Speech/speechClips.ts | which lines have been asked of the service, and which are kept | | Markdown/safeUrl.ts | which addresses a chapter's Markdown may point at |

  • The voice is configured, never chosen. The player talks to a CueSpeech; where the audio comes from is the application's CueSpeechConfiguration on CueProvider. createHttpSpeech is one for a service reached over HTTP. Without one a tour plays silently.

  • The stage belongs to the application. The overlay calls a function for it and guards it on its own, so the transport stays up when it fails.

  • Markdown is rendered as elements, never as HTML. react-markdown with skipHtml; every address goes through safeUrl.

  • Per-frame work stays out of React. TourAnchor writes its position straight to the DOM from a self-suspending frame loop; the clock ticks every 100 ms.

  • No MVVM, no UI framework beyond Cratis Components' tokens. Every color comes from the --cratis-* tokens, and the transport's icons are inline.

Examples and stories

Examples/ holds the code shown in the documentation. It is compiled with the package, and a specification fails when a documentation page no longer contains an example exactly as it builds. yarn storybook runs the stories of the chapter list, the transport and the written-chapter panel, against a small made-up tour.