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

@meltingspot/coach

v1.0.0

Published

MeltingSpot Coach SDK

Readme

Coach SDK

MeltingSpot's contextual guidance SDK. It displays the AI coach (proactive conversations and content such as courses, lives, documents and learning paths) directly inside your web application, triggered by user interactions and the current URL.

Coach relies on hover + fine-pointer interactions and is skipped on touch-only devices.

Installation

Via <script> (CDN)

The standalone bundle is self-contained: it exposes window.MeltingSpot.Coach and injects its styles automatically (no separate stylesheet to load).

<script
  crossorigin
  src="https://cdn.jsdelivr.net/npm/@meltingspot/coach"
></script>

Via npm

npm install @meltingspot/coach
import { Coach } from '@meltingspot/coach';
import '@meltingspot/coach/stylesheet.css';

Authentication (authToken)

authToken is the current user's MeltingSpot SSO token. Provide it to re-authenticate the user at start; omit it to rely on an existing authenticated session. Activate SSO on your spot to obtain these tokens.

Quick start

// Start the coach for your spot.
await Coach.start({
  spotId: 'YOUR_SPOT_ID',
  authToken: 'CURRENT_USER_SSO_TOKEN',
});

// Stop and tear down the coach.
await Coach.stop();

When loaded via the CDN <script>, start the coach once the DOM is ready:

<script>
  window.addEventListener('DOMContentLoaded', function () {
    window.MeltingSpot.Coach.start({
      spotId: 'YOUR_SPOT_ID',
      authToken: 'CURRENT_USER_SSO_TOKEN',
    });
  });
</script>

Start options

| Option | Type | Required | Default | Description | | --------------------- | ------------------------------- | -------- | ----------------------------------------------- | ---------------------------------------------------------------------- | | spotId | string | Yes | n/a | Target spot id. | | authToken | string | No | none (reuse existing session) | Current user's MeltingSpot SSO token. | | autoRefresh | AutoRefreshOptions | No | see AutoRefreshOptions | Fine-tune which browser events trigger a re-evaluation. | | initialPosition | 'left' \| 'center' \| 'right' | No | 'center' | Initial coach window position. | | lang | string | No | member's language (English fallback) | Member language driving the built-in translations. | | translations | CoachTranslationsOverrides | No | built-in strings | Override built-in conversation UI strings (see below). | | url | string | No | current location | Forces the URL evaluated at startup. | | conversationEnabled | boolean | No | server-driven, else false | Client-side fallback used when the server config fetch fails at start. | | debug | boolean | No | false | Verbose logging. |

AutoRefreshOptions

Controls which browser signals make the coach re-evaluate playbooks. All fields are optional booleans:

| Field | Default | Description | | ----------------- | ------- | ---------------------------------------------------- | | onHistoryChange | true | Re-evaluate on pushState / replaceState. | | onPopState | true | Re-evaluate on back/forward navigation (popstate). | | onLoad | true | Re-evaluate on the load event. | | onHashChange | true | Re-evaluate on hashchange. | | onDomMutation | false | Re-evaluate on relevant DOM mutations. |

CoachTranslationsOverrides

Override the built-in UI strings (merged on top of the language resolved from lang). Every field is optional:

await Coach.start({
  spotId: 'YOUR_SPOT_ID',
  lang: 'fr',
  translations: {
    conversation: {
      newConversation: 'Nouvelle conversation',
      inputPlaceholder: 'Posez votre question…',
      welcomeMessage: 'Bonjour 👋',
      agentThinking: 'Réflexion…',
      // backToConversation, later, errorFallback, expiredFallback also available
    },
    // mutedHand, autoDismiss groups are also overridable
  },
});

All groups are optional; any omitted string keeps its built-in translation.

| Group | Type | Default | Description | | -------------- | ----------------------------------- | ---------------- | -------------------------------------------- | | conversation | Partial<ConversationTranslations> | built-in strings | Conversation UI strings (input, welcome, …). | | mutedHand | Partial<MutedHandTranslations> | built-in strings | Muted-hand re-entry prompt strings. | | autoDismiss | Partial<AutoDismissTranslations> | built-in strings | Auto-dismiss accessibility strings. |

See the MeltingSpot helpdesk for the full integration guide.