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

@respectify/astro-moderation

v0.1.1

Published

Thin Astro integration for Respectify comment moderation — API key in, approve/block + feedback out.

Readme

@respectify/astro-moderation

Thin Astro integration for Respectify comment moderation.

Respectify does more than just comment moderation — it provides a complete solution for managing and enhancing user-generated content. It monitors for tone, logical fallacies, and spam and educates commenters on how to improve their comments.

Add the integration, set two env vars, then call moderateComment() from your own actions or API routes. No comment UI, no database, no Astro Actions wiring.

Want hosted Astro comments (UI + DB)? Use @respectify/astro instead. API-only outside Astro? Use @respectify/client.

Install

npm install @respectify/astro-moderation @respectify/client

Setup

// astro.config.mjs
import { defineConfig } from "astro/config";
import respectifyModeration from "@respectify/astro-moderation";

export default defineConfig({
  integrations: [
    respectifyModeration({
      mode: "full", // or "spam-only" | "perspective"
      toxicityThreshold: 0.7,
    }),
  ],
});
[email protected]
RESPECTIFY_API_KEY=your-api-key

Moderate a comment

// e.g. src/pages/api/comments.ts or an Astro Action
import { moderateComment } from "@respectify/astro-moderation";

const result = await moderateComment({
  comment: userText,
  topicUrl: Astro.site ? new URL(`/blog/${slug}`, Astro.site).toString() : undefined,
});

if (!result.approved) {
  return { ok: false, feedback: result.feedback };
}

// save/publish the comment yourself

Modes

| Mode | Behaviour | | --- | --- | | full (default) | Spam check + comment score when topic context is available | | spam-only | Spam detection only | | perspective | Perspective-compatible toxicity / insult / profanity scores |

Tip: cache articleId

moderateComment() returns articleId when it initializes a topic. Reuse it for later comments on the same page to avoid re-init:

const result = await moderateComment({
  comment: userText,
  articleId: cachedArticleIdForThisPost,
});

Compared to @respectify/astro

| | @respectify/astro-moderation | @respectify/astro | | --- | --- | --- | | Purpose | Moderate existing comments | Full comments product | | UI | Yours | Included | | Database | Yours | Astro DB | | Setup | Integration + 2 env vars | DB + actions + component |

Links

  • Product: https://respectify.ai
  • Comment moderation API guide: https://respectify.ai/comment-moderation-api
  • Client SDK: https://www.npmjs.com/package/@respectify/client

License

MIT