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

@streammedev/parse-message

v1.0.1

Published

StreamMe Chat Message Parser

Readme

StreamMe Message Parser

Package to take a raw chat message from the StreamMe web socket and parse it into an object with all necessary information stored.

How to write a request to the package

To initialize it, you need a room ID, which can be created with the syntax of user:${userPublicId}:room

After that, you can set it up with something similar to below:

const getParser = require('@streammedev/parse-message');

getParser(roomId, function (err, parseMessage) {  
  // The data passed is a message from the web socket without the nameSpace and  ResultType
  // sliced off. See tests for example of raw message.
  const message = parseMessage(data);
  console.log(data);
});

The parseMessage function takes the raw data from a chat on StreamMe and returns an object similar to the one listed below.

{
  actor: 
   { appSlug: 'web',
     avatar: 'https://www.gravatar.com/avatar/2e62a29500a51597f78863d877f2d8d2?s=256&d=https://static1.stream.me/web/active/images/avatar-id-6.png',
     badges: [ [Object] ],
     color: '#913D88',
     role: 'owner',
     slug: 'cc1',
     userPublicID: 'a4001b62-46a4-4f12-9368-238de75af9d8',
     username: 'cc1'
    },
  emoticons: [],
  id: '1526499854203288168',
  links: [],
  mentions: [],
  message: 'Hello World!',
  originalRoom: null,
  tags: [],
  theme: null,
  timestamp: 1526499854,
  version: 'v2',
  _index: {}
}