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

@goodvibeslab/gvl-comments-react

v0.9.1

Published

A production‑ready **React + TypeScript comments system** by **GoodVibesLab**. Drop‑in UI, optimistic posting, moderation‑aware rendering, and a clean API — inspired by the Flutter SDK, designed for the web.

Readme

GVL Comments – React SDK

A production‑ready React + TypeScript comments system by GoodVibesLab.
Drop‑in UI, optimistic posting, moderation‑aware rendering, and a clean API — inspired by the Flutter SDK, designed for the web.


✨ Features

  • Instant comments UI (ready‑to‑use CommentsThread)
  • 🧠 Optimistic posting (message appears instantly, confirmed by server)
  • 🛡 Moderation‑aware rendering
    • Reported comments
    • Moderated (rejected) placeholders
  • 🔁 Cursor‑based pagination (no offset bugs)
  • 🎨 Customizable UI (render props, order, branding)
  • 🧩 Provider‑based architecture (clean, scalable)
  • 🟦 TypeScript first

📦 Installation

npm install @goodvibeslab/gvl-comments-react

or

yarn add @goodvibeslab/gvl-comments-react

🚀 Quick start

1️⃣ Wrap your app with CommentsProvider

import {
  CommentsProvider,
  CommentsThread,
} from "@goodvibeslab/gvl-comments-react";

<CommentsProvider
  config={{
    installKey: "cmt_live_xxx",
    externalUserId: "user_123",
    externalUserName: "John Doe",
    avatarUrl: "https://avatar.com/...",
    order: "newestBottom",
  }}
>
  <CommentsThread threadKey="post:123" />
</CommentsProvider>;

That’s it. You have a fully functional comments system.


🧠 Core concepts

CommentsProvider

The provider initializes the SDK and exposes:

  • authenticated client
  • current user
  • plan & branding logic
  • default thread configuration
interface CommentsProviderConfig {
  installKey: string;
  externalUserId: string;
  externalUserName?: string;
  avatarUrl?: string;
  order?: "newestTop" | "newestBottom";
}

Branding rules:

  • free tenants → branding shown by default
  • paid tenants → branding hidden
  • showBranding always overrides

CommentsThread

High‑level, ready‑to‑use UI component.

<CommentsThread
  threadKey="post:123"
  order="newestBottom"
/>

Props:

  • threadKey (required)
  • order (newestBottom | newestTop)
  • renderComment (advanced customization)

🎨 Custom rendering

You can fully override comment rendering:

<CommentsThread
  threadKey="post:123"
  renderComment={(comment, meta) => (
    <MyCustomBubble
      comment={comment}
      pending={meta.isPending}
      moderated={meta.isModerated}
    />
  )}
/>

Meta flags include:

  • isMine
  • isPending
  • isReported
  • isModerated

🛡 Moderation behavior

The SDK automatically handles:

  • Reported comments → soft‑hidden placeholder
  • Rejected comments → hard moderation message
  • Pending comments → reduced opacity (optimistic state)

You don’t need to implement this logic yourself.


📚 Advanced usage

Low‑level client (optional)

If you don’t want the UI:

import { CommentsClient } from "@goodvibeslab/gvl-comments-react";

const client = new CommentsClient({
  installKey: "cmt_live_xxx",
});

Useful for headless or custom UIs.


🧪 Demo

A hosted demo is available soon on https://goodvibeslab.cloud/app/demo/comments/react

npm run dev

🛣 Roadmap

Upcoming features:

  • 📸 Image attachments (upload, moderation, thumbnails)
  • ❤️ Reactions (👍 ❤️ 😂)
  • 🔔 Realtime updates (WebSockets / Realtime)
  • 🧑‍⚖️ Admin moderation tools

🧾 License

This SDK is proprietary software.

Usage of this package is subject to the GoodVibesLab Terms of Service. You may not copy, modify, redistribute, or resell this software without explicit authorization.

© GoodVibesLab. All rights reserved.


💬 Support

Questions, issues, or enterprise needs?
→ contact GoodVibesLab or open a GitHub issue.