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

@choochoohq/widget-vue

v0.4.8

Published

## Basic usage

Readme

ChooChoo Conductor Widget - Vue Components

Basic usage

Update vite.config.js plugins to treat all tags with a choochoo as custom elements

export default defineConfig({
-  plugins: [vue(), vueJsx()],
+  plugins: [
+    vue({
+      template: {
+        compilerOptions: {
+          isCustomElement: (tag) => tag.includes('choochoo'),
+        },
+      },
+    }),
+    vueJsx(),
+  ],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  }
})

In your main.js file, import your component library plugin and use it:

// src/main.js
import { ChoochooWidget } from '@choochoohq/widget-vue';

import { createApp } from 'vue';
import App from './App.vue';

createApp(App).use(ChoochooWidget).mount('#app');

In your page or component, you can now import and use your component wrappers:

<template>
  <choochoo-widget 
    server-url="https://api.choochoo.cc"
    public-app-id="choochoo-app-id"
    authentication-token={{choochoo-auth-token}}
    organization_id={{user_org}}
    widget-title="ChooChoo Conductor"
    toggle-full-screen="true"
    stream-messages="true"
    widget-theme="light"
    widget-language="en"
    auto-open="true" 
  />
</template>

Properties

| Property | Attribute | Description | Type | Default | | -------------------------- | --------------------------- | ------------------------------------------------------------------------------------------ | --------- | -------------------------- | | authenticationToken | authentication-token | User authentication token | string | '' | | autoOpen | auto-open | If set to True, it will open the chat, triggering the 'initialPayload' immediately if set. | boolean | false | | botIcon | bot-icon | Static icon for the chatbot | string | '' | | displayTimestamp | display-timestamp | Indicates if a message timestamp should be displayed | boolean | false | | errorMessage | error-message | Message that should be displayed if an error occurs | string | 'Something bad happened' | | initialPayload | initial-payload | Data that should be sent on Chat Widget initialization | string | '' | | inputMessagePlaceholder | input-message-placeholder | Message placeholder for input | string | 'Type your message here' | | messageDelay | message-delay | Indicates time between message is received and printed. | number | 600 | | messageTimestamp | message-timestamp | Format of the message timestamp | string | '' | | publicAppId (required) | public-app-id | Public App ID | string | undefined | | senderId | sender-id | ID of a user engaged with the Chat Widget | string | '' | | serverUrl (required) | server-url | Url of the ChooChoo chatbot backend server (example: https://api.choochoo.cc) | string | undefined | | streamMessages | stream-messages | If set to True, bot messages will be received as stream (printing word by word). | boolean | false | | toggleFullScreen | toggle-full-screen | Indicates whether the chat messenger can be toggled to full screen mode. | boolean | true | | widgetIcon | widget-icon | Static icon for the widget | string | '' | | widgetTitle | widget-title | Title of the Chat Widget | string | 'ChooChoo Conductor' |

Events

| Event | Description | Type | | ------------------------------- | --------------------------------------------------- | ------------------------------------- | | chatSessionStarted | Emitted when the Chat Widget is opened by the user | CustomEvent<{ sessionId: string; }> | | chatWidgetClosed | Emitted when the Chat Widget is closed by the user | CustomEvent<undefined> | | chatWidgetFileStartedDownload | Emitted when a user is starting to download a file. | CustomEvent<undefined> | | chatWidgetHyperlinkClicked | Emitted when a user clicks on a hyperlink option. | CustomEvent<undefined> | | chatWidgetOpened | Emitted when the Chat Widget is opened by the user | CustomEvent<undefined> | | chatWidgetQuickReply | Emitted when the user click on quick reply | CustomEvent<string> | | chatWidgetReceivedMessage | Emitted when the user receives a message | CustomEvent<unknown> | | chatWidgetSentMessage | Emitted when the user sends a message | CustomEvent<string> |

Dependencies

Depends on

Graph

graph TD;
  choochoo-widget --> choochoo-session-divider
  choochoo-widget --> chat-message
  choochoo-widget --> choochoo-text-message
  choochoo-widget --> choochoo-image-message
  choochoo-widget --> choochoo-video
  choochoo-widget --> choochoo-file-download-message
  choochoo-widget --> choochoo-accordion
  choochoo-widget --> choochoo-text
  choochoo-widget --> choochoo-quick-reply
  choochoo-widget --> choochoo-carousel
  choochoo-widget --> choochoo-rating
  choochoo-widget --> global-error-handler
  choochoo-widget --> choochoo-typing-indicator
  choochoo-widget --> choochoo-icon-close-chat
  choochoo-widget --> choochoo-icon-chat
  choochoo-widget --> error-toast
  choochoo-widget --> choochoo-chat-input
  choochoo-session-divider --> choochoo-text
  chat-message --> choochoo-icon-robot
  chat-message --> choochoo-text
  choochoo-text-message --> choochoo-text
  choochoo-image-message --> choochoo-image
  choochoo-image-message --> choochoo-text
  choochoo-image --> choochoo-icon-default-image-fallback
  choochoo-file-download-message --> choochoo-icon-paperclip
  choochoo-file-download-message --> choochoo-text
  choochoo-accordion --> choochoo-text
  choochoo-accordion --> choochoo-icon-chevron-down
  choochoo-quick-reply --> chat-message
  choochoo-quick-reply --> choochoo-text
  choochoo-quick-reply --> choochoo-button
  choochoo-carousel --> choochoo-image-message
  choochoo-carousel --> choochoo-icon-chevron-down
  choochoo-typing-indicator --> chat-message
  error-toast --> choochoo-icon-danger
  error-toast --> choochoo-text
  choochoo-chat-input --> choochoo-icon-paper-plane
  style choochoo-widget fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS