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

@pie-players/pie-assessment-player

v0.3.29

Published

Assessment-level coordinator custom elements for orchestrating section-player instances

Readme

PIE Assessment Player

@pie-players/pie-assessment-player provides assessment-level orchestration custom elements.

It coordinates section flow and assessment session state while delegating section rendering to @pie-players/pie-section-player and shared services to @pie-players/pie-assessment-toolkit.

Primary entrypoint:

  • @pie-players/pie-assessment-player

Debug logging

Assessment-player now exposes a debug option on pie-assessment-player-default.

  • Enable verbose debug logs: <pie-assessment-player-default debug="true">
  • Disable verbose debug logs: <pie-assessment-player-default debug="false"> (or debug="0")

The setting is forwarded to the rendered section-player instance and also applies the global flag (window.PIE_DEBUG) for shared runtime logging behavior.

Card Title Formatter

Use the existing hooks registration surface on pie-assessment-player-default. The callback is forwarded to each rendered section-player instance, including the initially mounted section (for example when launching directly into section 2).

const host = document.querySelector("pie-assessment-player-default") as any;
host.hooks = {
  ...(host.hooks || {}),
  cardTitleFormatter: (context: Record<string, unknown>) => {
    if (context.kind === "item") {
      const itemIndex = Number(context.itemIndex ?? 0) + 1;
      return `Question ${itemIndex}`;
    }
    if (context.kind === "passage") {
      return "Reading passage";
    }
    return typeof context.defaultTitle === "string" ? context.defaultTitle : "";
  },
};

Component registration entrypoints:

  • @pie-players/pie-assessment-player/components/assessment-player-default-element
  • @pie-players/pie-assessment-player/components/assessment-player-shell-element

Instrumentation and observability

Assessment-player instrumentation is provider-agnostic and built on the shared InstrumentationProvider contract used across players.

Canonical provider injection paths:

  • sectionPlayerRuntime.player.loaderConfig.instrumentationProvider

Provider semantics:

  • With trackPageActions: true, missing/undefined provider values use the default New Relic provider path.
  • instrumentationProvider: null explicitly disables instrumentation.
  • Invalid provider objects are ignored (optional debug warning), also no-op.
  • Existing item-player behavior remains the compatibility anchor.
  • To keep production telemetry while debugging, use CompositeInstrumentationProvider with NewRelicInstrumentationProvider and DebugPanelInstrumentationProvider.
  • Toolkit telemetry forwarding uses the same provider path, so tool/backend operational events appear in production providers and debug overlays.

Assessment-player owned canonical stream:

  • pie-assessment-controller-ready
  • pie-assessment-navigation-requested
  • pie-assessment-route-changed
  • pie-assessment-session-applied
  • pie-assessment-session-changed
  • pie-assessment-progress-changed
  • pie-assessment-submission-state-changed
  • pie-assessment-error

Ownership boundary: assessment-player owns assessment semantics only. Section and toolkit semantics remain in their own streams to avoid overlap. Bridge dedupe is a safety net, not the primary correctness mechanism.

Toolkit tool/backend operational stream (when toolkit is mounted):

  • pie-tool-init-start|success|error
  • pie-tool-backend-call-start|success|error
  • pie-tool-library-load-start|success|error