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

@zombay/baynet

v0.1.0

Published

Open-source HITL content moderation + AI training data pipeline

Readme

@zombay/baynet

Open-source HITL content moderation + AI training data pipeline.

BayNet bridges automated NSFW detection and human oversight. It persists detection results, builds a human review queue, and exports corrections as labeled training data (COCO format) for model improvement.

Install

npm install @zombay/baynet

Quick Start

import { BayNet, nudenetBackend, simpleAuth } from "@zombay/baynet";

const baynet = new BayNet({
  database: yourDatabaseAdapter,  // @zombay/baynet-d1, @zombay/baynet-postgres, or custom
  storage: yourStorageAdapter,    // @zombay/baynet-r2, @zombay/baynet-s3, or custom
  auth: simpleAuth({ isReviewer: (id) => ADMIN_IDS.includes(id) }),
  backends: [nudenetBackend({ url: "https://your-nudenet-service.com" })],
  hooks: {
    onCsamIndicator: async (detection) => {
      // Required if csam_indicators backend is registered
      await reportToAuthorities(detection);
    },
  },
});

// Detect and persist
const { detectionId, results } = await baynet.detectAndPersist({
  imageBase64: "...",
  mimeType: "image/png",
  sourceType: "preview",
});

// Review queue
const queue = await baynet.getReviewQueue({ status: "pending" });

// Submit review with annotations
await baynet.submitReview({
  detectionId: "det_123",
  reviewerId: "admin_1",
  status: "corrected",
  annotations: [
    { type: "false_positive", regionIndex: 0 },
    { type: "missed_detection", correctedClass: "BUTTOCKS_EXPOSED", correctedBox: [100, 200, 50, 60] },
  ],
});

// Export COCO training data
const { manifest, exportId } = await baynet.exportCoco({ exporterId: "admin_1" });

Adapter Interfaces

BayNet uses pluggable adapters. Implement DatabaseAdapter, StorageAdapter, and AuthAdapter for your platform, or use a pre-built adapter:

| Package | Platform | |---------|----------| | @zombay/baynet-d1 | Cloudflare D1 (Drizzle ORM) | | @zombay/baynet-r2 | Cloudflare R2 | | @zombay/baynet-postgres | PostgreSQL (coming soon) | | @zombay/baynet-s3 | AWS S3 (coming soon) |

Detection Backends

  • NudeNetnudenetBackend({ url }) — connects to a NudeNet Flask microservice
  • Gemini SafetygeminiSafetyBackend({ apiKey }) — Google Gemini safety classifier (fail-closed)

Features

  • 7 detection categories, 33 class labels
  • Active learning priority scoring (uncertain predictions reviewed first)
  • CSAM hook enforcement (SDK refuses to init without mandatory reporting hook)
  • COCO JSON export with human corrections applied
  • Batch review (up to 100 detections)
  • Audit logging

License

MIT