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.playbill.react

v2.24.4

Published

The Playbill release-notes experience for React — a releases page, a what is new dialog and an unread badge, drawn with Cratis Components, styled with the Cratis tokens and open to your own components, built on Cratis Arc.

Readme

@cratis/showrunner.playbill.react

The Playbill release-notes experience for React, the Showrunner release-notes part: <Playbill /> is a releases page, <PlaybillDialog /> opens by itself with what is new (firstVisit='skip' leaves a person who has just arrived out of it), <PlaybillHistoryDialog /> opens the whole history on request, and <PlaybillBadge /> is the unread count for a header. Built on @cratis/components and the generated proxies in @cratis/showrunner.playbill. How to use it: Documentation/Playbill.

Component hierarchy

Playbill                     usePlaybill, then the list and the selected release
├── nav.playbill__list       one button for each release: version, tags, date and summary
└── ReleaseNoteView          one release: header, lead and a section for each heading
    └── PlaybillMarkdown     the lead and each section

PlaybillDialog               Cratis Components Dialog, the notes of every unread release
PlaybillHistoryDialog        Cratis Components Dialog, the Playbill page, opened with `open`
└── ReleaseNoteView          one for each release, one heading level down

PlaybillBadge                a button with the unread count and an accessible name that says it in words

release and markdown are slots: a product replaces either. usePlaybill gives a product the releases and the status to draw a surface of its own.

Architecture decisions

  • Reading the history and remembering what was seen are separate. The history comes over plain HTTP from the endpoints MapPlaybill maps (Client/PlaybillClient.ts, reached through PlaybillProvider), so it needs no Arc and works for a public page. What a person has seen is the generated command and observable query, so it needs Arc. useReleases is the first, usePlaybillStatus the second, usePlaybill both.
  • Decisions live in pure, specified modules; the components render and wire events. | Module | Decides | | --- | --- | | Markdown/assetUrl.ts | where an image of a note is loaded from, and which are refused | | Markdown/safeLink.ts | which links may be followed | | Release/sectionPresentation.ts | the title and the style of a section, known or not | | Release/formatReleaseDate.ts | the date of a release, read in UTC so everybody sees the same day | | Labels/ | English defaults, overrides and the number in a text |
  • A note is data from a pull request, not markup. react-markdown with skipHtml; only https, mailto and tel links, opened in a new tab with noopener noreferrer; an image only when it is a file captured with the release, loaded from its own folder, or an https image the capture could not download. A relative path that climbs out of the folder is not an image.
  • Seeing is recorded when it was read, not when it was shown. The dialog records the newest release it showed when it is closed. The page records a release when it is shown, and can be told not to. A failure to record never keeps a person from reading on; the release is simply unread again next time.
  • A release draws no frame of its own, so the page, the dialog or a product's surface can hold it. Its heading level is a prop, so the heading structure stays right wherever it sits.
  • Styling is tokens, custom properties and stable classes. Every color falls back to a --cratis-* token, and a --playbill-* property overrides it. A specification fails when a part the components draw has no style.
  • No MVVM. The components keep no state beyond the selected release and the dismissed dialog, in the component.

Examples

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.