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

jp-test-io-commenting

v0.0.4

Published

Muut's Commenting using IO-client

Readme

A react component to easily add Muut's Flat Commenting into your React applications using Federated Identity (SSO).

Install

npm install muut-io-react-commenting or yarn add muut-io-react-commenting

Usage

import React, { Component } from 'react'
import Commenting from 'muut-io-react-commenting'

const sso = {
  message: MESSAGE,
  signature: SIGNATURE,
  timestamp: TIMESTAMP,
  key: KEY,
  path: PATH
}

class App extends Component {
  render() {
    return <Commenting sso={sso} />
  }
}

export default App

PATH is the path of your post with a pattern of '/{community}/{category}#{post}'. For example, your path can be '/my-community/general#how-to-code' KEY is the api key of your community. MESSAGE, SIGNATURE, and TIMESTAMP must be generated from your server.

For more information on Federated Identity (SSO) and generating the sso props, please check Federated Identity help section on Muut.

Theming

You can pass a theme prop to change the basic styling of the commenting app. The following are the supported theme props and their default values:

|Name|Default Value|Description| |--|--|--| |primaryColor|'#1FADC5'|Primary color (button, link etc)| |primaryColorHover|'#188699'|Hover color for primary color| |primaryDarkTextColor|'rgba(0,0,0,0.8)'|Primary text color| |secondaryDarkTextColor|'rgba(0,0,0,0.4)'|Secondary text color| |primaryLightTextColor|'#FFF'|Primary light color| |accentColor|'#BE0000'|Accent color| |warningColor|'#BE0000'|Warning color (dialog)| |dialogBackgroundColor|primaryLightTextColor|Background color of dialog| |likedHeartIconColor|'#FF57A8'|Color of heart icon when liked by the owner of the post/comment| |onlineIndicatorColor|'#4CBE00'|Color of online user indicator| |avatarWidth|'2.6em'|Width of the avatar image| |avatarBorderRadius|'0.4em'|Border radius of the avatar image| |avatarMarginRight|'1em'|Gap of avatar image and the post's title/body| |metaFontSize|'90%'|Font size of post's meta| |metaTextColor|secondaryDarkTextColor|Color of post's meta| |postFontSize|'90%'|Font size of post's body| |newPostBackgroundColor|'rgba(31,173,197,0.15)'|Highlight color of new loaded posts| |newPostHighlightDuration|800|How long the highlight duration (ms)| |newPostTimeColor|primaryDarkTextColor|Color of the time as indication of a new post| |postPlaceholderColor|'#EEE'|Color of the post's place holder while being loaded| |badgeBackgroundColor|'rgba(0, 0, 0, 0.2)'|Background color of Admin badge| |badgeTextColor|primaryLightTextColor|Text color of an Admin badge| |commentsCountFontSize|'150%'|Font size of the total number of posts/comments| |commentsCountMargin|'0.6em 0'|Margin of post/comments count| |tooltipBackgroundColor|'#333'|Background color of the tooltip| |tooltipTextColor|primaryLightTextColor|Text color of the tooltip| For example:

import React, { Component } from 'react'
import Commenting from 'muut-io-react-commenting'

const sso = {...}
const theme = {
  primaryColor: '#FF0000',
  likedHeartIconColor: 'purple',
  onlineIndicatorColor: 'green',
  avatarBorderRadius: '50%',
  tooltipBackgroundColor: '#000'
}
class App extends Component {
  render() {
    return <Commenting sso={sso} theme={theme} />
  }
}

export default App

Using global styles

For a more granular level of customization, you can use a global style to target each element inside the commenting app. Most of the elements have a classname with a pattern of m-[element] so you can style any of the elements according to your liking. Note that to override the default styles, you can add a parent selector .moot on your selectors.

For example:

.moot .m-tooltip {
  background-color: 'black';
  color: 'white';
}

Demo

A working demo is provided in the demo folder of this repository. Just replace the API_KEY, API_SECRET, and PATH in the webpack.config.js with your own community's api key, secret key, and the path of the post, respectively.

You can then run the demo by cloning this repository and running:

npm install && npm start or yarn install && yarn start

Open localhost:8080 in your browser