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

nodebb-plugin-chat-read-receipts

v1.4.5

Published

Adds WhatsApp-style read receipts to NodeBB chat messages

Readme

nodebb-plugin-chat-read-receipts

Adds WhatsApp-style read receipts and an unread messages divider to NodeBB chat.

Features

Read receipts

A small indicator is shown next to each of your own outgoing messages (never on other people's messages — same as WhatsApp).

One-on-one rooms:

  • (grey) — Sent, not read yet.
  • ✓✓ (blue) — Read by the other person.

Group rooms — based on each participant's last-seen time:

  • (grey) — nobody else has read it yet.
  • 👁 Read by k/N — read by some participants. Hover to see names.
  • ✓✓ Read by all (blue) — every other participant has read it.

Receipts update live as participants read messages, and also render correctly for messages loaded lazily when scrolling up.

Unread messages divider

When you open a chat that has unread messages, a dashed "New messages" divider bar is inserted before the first unread message and the view scrolls to it automatically (with a small amount of context shown above).

  • Works in both popup (minimized) chat windows and the full-page /user/:uid/chats/ view, including sidebar room switching.
  • The divider disappears once you close and reopen the chat after reading.
  • If a new message arrives while the chat is open but you are on a different tab/window, the divider repositions to that message.
  • If all unread messages are above the initially-loaded batch, the plugin loads older messages until it finds the boundary (up to 50 batches).

How it works

  • When you open a chat, the plugin fetches the per-participant read state (plugins.chatReadReceipts.getRoomReadState) before recording your visit, so the pre-visit "last seen" timestamp is used to locate the first unread message.
  • After rendering the divider, your client sends the timestamp of the last loaded message to the server (plugins.chatReadReceipts.markSeen). The server broadcasts the update so other participants' receipts refresh live.
  • The markSeen call uses the timestamp of the last message in the DOM — not Date.now() — so messages that arrive after the snapshot are not accidentally marked as read.

Privacy note

Read receipts are symmetric: if you can see whether others read your messages, they can see whether you read theirs.