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 🙏

© 2024 – Pkg Stats / Ryan Hefner

mrdamian-plugin-panel

v0.0.22

Published

Mr.Damian plugin for interactive panel

Downloads

81

Readme

npm version code style: biome

mrdamian-plugin-panel

mrdamian-plugin-panel is a Mr.Damian plugin that allows a streamer operates Mr.Damian behavior via interactive panel.

Table of contents

Prerequisites

Installation

  1. Install via Mr.Damian's plugin installation screen.
  2. Write some settings in Mr.Damian's module config file.
  3. Then, panels will appear in your Mr.Damian management screen ✨
  4. If you want to use this module in your submodule, please notify insallation requirement to your submodule users.

Usage

You can display your panel with following configs:

{
  pipeline: [
    {
      // panel's default action defines the body of the panel.
      // You can insert any panel group into this panel by writing define action.
      // This is intended to inherit and insert new panel group by submodule.
      type: "panel",
    },
    {
      type: "panel",
      // You can define the contents of the panel with define action.
      action: "define",
      // Group name. The value emitted/discharged by panel will be stored in the key of this name.
      group: "shoutout",
      args: {
        forms: [
          {
            // You can set select button that transit some states.
            type: "select",
            name: "auto_shoutout",
            // Each click will transit to the state defined in states.
            // The top item in states is the initial state.
            // It will be reset to the initial state when restarted.
            states: [
              {
                // Text to display on the button.
                text: "auto shoutout on",
                // The value to discharge when this state is active.
                // You can specify one of the following:
                // - "base", "active", "inactive", "info", "warning", "danger"
                // - 16 hex color code like `#FFFFFF`
                // If omitted, it will be "base".
                color: "active",
                // The value to discharge when this state is active.
                value: true,
              },
              {
                text: "auto shoutout off",
                color: "inactive",
                value: false,
              },
            ],
          },
          {
            // Button. Each click will emit an event.
            // The event will have true in the key specified by name.
            // So in this case, { panel: { shoutout: true } } will be emitted.
            type: "button",
            name: "shoutout",
            text: "Send shoutout"
          },
        ],
      },
    },
    {
      // For example, there is a component that just counts up each time it runs.
      // Here, let's say it counts up each time twitch.message comes.
      when: "twitch.message",
      type: "count",
      name: "message",
    },
    {
      // You can display reactively because panel redefinition runs every time a message comes.
      when: "twitch.main.message",
      type: "panel",
      action: "define",
      group: "message",
      args: {
        forms: [
          {
            type: "label",
            name: "latest",
            // You can update the value of the component by expanding jexpr like this.
            text: "$ message.name + ': ' + message.text",
          },
          {
            type: "label",
            name: "count",
            text: "$ 'total: ' + count",
          },
        ]
      },
    },
  ]
}

Contributing

Sorry, currently this module is just a PoC phase for checking module structure around with Mr.Damian and their plugins so please wait for contributing. But after the checking finished, I'll provides additional info about contributing.

Versioning

We use SemVer for versioning. If you want to release new version, please update package.json's version value. Then, our Github Action will release new version to npm automatically.

Authors

License

MIT License © Yuniru Yuni