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

customerio-gist-web

v3.26.0

Published

Build beautiful in-app flows with no code and deliver them instantly to your app. http://customer.io

Readme

Gist for Web

npm version GitHub Actions npm downloads License: MIT

Build beautiful in-app flows with no code and deliver them instantly to your app/website. Customer.io

🚀 Quick Start

Installation

npm install customerio-gist-web

📌 Embedded messages

An embedded message is one the host page supplies directly, rather than one delivered through a campaign or broadcast. The message travels in the page's own markup, so it renders on a landing page that has no other Customer.io setup.

Declare a container and a payload block:

<div data-cio-embed="emb_7Fq2xk"></div>
<script type="application/json" data-cio-embed-payload="emb_7Fq2xk">
  {
    "v": 1,
    "embedId": "emb_7Fq2xk",
    "display": { "frequency": "untilDismissed" },
    "message": {
      "messageId": "gist-html-9f2c8b",
      "properties": { "gist": { "encodedMessageHtml": "H4sIAAAA…" } }
    }
  }
</script>

Gist.mountEmbeds() renders every block on the page; Gist.embed(payload) renders one programmatically. Both initialize the SDK in embed-only mode when nothing else has set it up, and both are safe to call more than once — an embed already rendered on the page is skipped, so a host can call them again after injecting markup.

frequency decides how often the message comes back:

| Value | Behaviour | | ------------------ | -------------------------------------------------------------------------------- | | always (default) | Renders on every page load; closing hides it for that load only. Stores nothing. | | untilDismissed | Once closed, stays hidden. A snooze is not a close — see below. | | onceEver | Renders once per browser. |

A payload also carries the reporting identity for the message — contentId and templateId, both integers, in properties.gist, exactly as a broadcast carries its own. The content pipeline requires both and drops events without them, so an embed published without them renders but reports nothing (the analytics layer logs when that happens).

A snooze is not a dismissal: gist://snooze?showIn=<minutes> hides the message and shows it again once the time is up, whatever the frequency rule says.

Every embed's state lives in one key, gist.web.embeds: the ids that may not render, mapped to true for never again or to the moment a snooze makes them eligible again. Presence is the whole answer, so the lot clears in one call:

localStorage.removeItem('gist.web.embeds'); // or Gist.resetEmbed(embedId) for one

The record carries a rolling 365-day expiry, refreshed once on any page load that reads it — so onceEver and a permanent dismissal hold for as long as the visitor keeps coming back, while a record nobody has visited for a year is collected. Any storage failure resolves to "render", so a blocked store can never leave a hole in the customer's layout.

Embed-only mode (Gist.setup({ embedOnly: true })) starts none of the delivery machinery: no user queue, SSE, guest session, inbox or preview session, and user tokens are ignored. Leave it unset on a page that also receives in-app messages — embeds and queue-delivered messages work side by side.

Gist.mountEmbeds() initializes embed-only mode only when the page actually declares an embed, so a snippet can call it on pages that have none without consequence. On a page that has both embeds and in-app messaging, still call setup() first — otherwise the auto-init wins and delivery never starts (the SDK warns when that happens).

🧪 Development

Local Testing

  1. Clone the repository
  2. Install dependencies: npm install
  3. Start the dev server: npm start
  4. Navigate to: http://127.0.0.1:8081/examples/

Build Locally

npm run build:prod

Scripts

  • npm test - Run tests
  • npm run typecheck - Type check the project
  • npm run lint - Lint the codebase
  • npm run format - Format code with Prettier

📦 Releases

Feature Release Process

  1. Merge PR into develop branch
  2. Navigate to the Feature Release Action
  3. Click Run Workflow
  4. Select version type:
    • patch - Bug fixes and minor updates
    • minor - New features and enhancements
    • major - Breaking changes or major API updates

Hotfix Release Process

  1. Merge PR into master branch
  2. Navigate to the Hotfix Release Action
  3. Click Run Workflow