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

@10x-media/conversations

v0.1.0-beta.1

Published

Conversations for Payload: messages bound to any document, with channels, threads, mentions and read state

Readme

Banner

@10x-media/conversations

Conversations for Payload: messages bound to any document, global or custom key, with channels that decide who reads what, one-level threads, mentions and per-user read state. Comments on documents, reactions and file attachments ship as extensions; support tickets, chat rooms and website chats are built from the same primitives.

npm

Part of the @10x-media Payload plugins collection. In beta: published under the beta dist-tag until a stable 1.0.

Features

  • Bound to targets, not to a conversations table: a conversation is a key (collection:persons:42, global:settings, custom:room:general). The target document holds no reference to it.
  • Channels with their own access: internal for staff, shared for the customer. A cue above the composer says who will read what you write, per viewer.
  • Access in one batch: conversation access answers for many targets at once, with grants per target (every channel, some channels, or read only). Channel rules see only the user and run once per request. Both collections are closed over REST.
  • Threads one level deep, with atomic reply counts on Mongo and Postgres.
  • Mentions with a typeahead that offers only people who can read the channel; afterMention fires once per new mention, never again on edits.
  • Unread state per user and channel, and per thread.
  • Transports: polling by default (one tab per key, nothing while hidden, signed tokens so a tick runs no access code), Server-Sent Events served by Payload itself with database, Payload KV or Redis buses, or a Pusher-compatible service for serverless hosts.
  • Extensions: comments() adds a Comments button to edit views, reactions() adds emoji reactions with per-person limits, attachments() adds files on messages through an upload collection of its own or yours. Your own extensions get per-message data, endpoints, stored fields, their part of a send, slots, composer addons and client data.
  • Admin UI on Payload's own components: drawer, panel, feed, message, thread and a Lexical composer with a toolbar, / commands, markdown and links. Add to it through slots, or replace any of its components entirely.
  • Website UI: headless React hooks and a composer core without @payloadcms/ui, plus shadcn registry components to start from.
  • Several instances: call conversations() once per use case (comments, tickets, chat), each with its own collections, endpoints and transport.

Quick start

pnpm add @10x-media/conversations@beta
// payload.config.ts
import { conversations, perTarget } from '@10x-media/conversations'
import { comments } from '@10x-media/conversations/comments'

const isStaff = ({ req }) => req.user?.collection === 'users'

export default buildConfig({
  plugins: [
    conversations({
      slug: 'comments',
      access: perTarget(({ req }) => Boolean(req.user)),
      channels: [
        {
          slug: 'internal',
          label: 'Internal',
          access: { read: isStaff, create: isStaff },
        },
      ],
      extensions: [comments({ collections: { posts: true } })],
    }),
  ],
})

Then run payload generate:importmap. Every edit view of posts now has a Comments button in its document controls.

Documentation

Full documentation at docs.10xmedia.de:

Development

pnpm dev conversations      # dev app on :3000, log in as [email protected] / password
pnpm test conversations     # unit + integration (Mongo in memory)
pnpm test:matrix conversations
pnpm test:e2e conversations

The dev app shows every transport: comments on polling, /admin/chat on SSE, and tickets on Pusher through Soketi (docker compose -f packages/conversations/docker-compose.dev.yml up -d). The website under /support uses the registry components with a customer login ([email protected] / password, in a private window).

License

MIT