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

@bitsocial/r9k-challenge

v0.1.1

Published

Robot9000-style originality challenge for Bitsocial communities

Readme

Coverage

@bitsocial/r9k-challenge

Robot9000-style originality challenge for Bitsocial communities.

This package runs on a Bitsocial community owner node as a deterministic Bitsocial challenge. It is not specific to 5chan; any Bitsocial community can use it when the operator wants Robot9000-style anti-repost behavior. It does not use AI. It scans the community owner's local comments database for exact text reposts after Robot9000 normalization and applies escalating temporary bans for failed attempts.

Robot9000 is based on the anti-repost idea originally described by Randall Munroe in ROBOT9000 and #xkcd-signal: Attacking Noise in Chat.

Installation

Run this on the Bitsocial node that owns the community:

bitsocial challenge install @bitsocial/r9k-challenge

This challenge is listed in the Bitsocial app directory under anti-spam:

https://bitsocial.net/apps?category=anti-spam

Configuration

Add the challenge to the community's settings.challenges:

[
  { name: "@bitsocial/spam-blocker-challenge" },
  { name: "@bitsocial/r9k-challenge" },
];

Default options implement Robot9000-style behavior:

| Option | Default | Behavior | | ----------------------------------- | --------------------------------------- | ------------------------------------------------------------------- | | statePath | ~/.bitsocial-r9k-challenge-state.json | Private JSON state for temporary bans and accepted-hash race guards | | minimumOriginalContentLength | 16 | Requires this many normalized text characters | | transgressionDecayIntervalSeconds | 86400 | Forgives one transgression per day | | penaltyBaseSeconds | 2 | Temporary ban duration is 2^n seconds | | maxPenaltySeconds | empty | No cap by default | | blockUnicode | true | Rejects non-ASCII text | | stripBacklinks | true | Ignores numeric backlinks like >>123 | | requireText | true | Rejects posts without title/body text | | error | Rejected by Robot9000. | Error prefix shown to users |

Posts require enough original content to avoid low-effort duplicates. This package uses 16 normalized characters as its default and keeps it configurable per board.

Behavior

  • Exact normalized text reposts are rejected by scanning the owner node's comments SQLite table during getChallenge().
  • Numeric backlinks like >>1 do not count toward originality.
  • Images, media links, and URLs are not included in the originality hash.
  • Unicode is rejected by default.
  • Posts need text; image-only posts fail.
  • A failed originality attempt temporarily bans the author for 2^n seconds, where n is the current transgression count.
  • The transgression count decays by one every transgressionDecayIntervalSeconds.
  • State stores SHA-256 hashes for newly accepted text plus temporary-ban counters, not raw post text. Existing-board originality comes from the local database scan.

Ban Semantics

Bitsocial exposes author.community.banExpiresAt for moderator bans, but a challenge failure happens before the offending comment is accepted and therefore has no accepted commentCid to moderate. This package enforces the same timed-ban behavior inside the challenge state and rejects the author's later challenge requests until banExpiresAt.

If Bitsocial later exposes a safe challenge-side author-ban API for rejected publications, this package can map the same penalty state to native banExpiresAt.

Development

corepack yarn install
corepack yarn type-check
corepack yarn test
corepack yarn test:coverage
corepack yarn build

Test Coverage

The test suite covers Robot9000 normalization, minimum text checks, Unicode blocking, image/link exclusion, escalating and decaying temporary bans, content edits, missing database fail-closed behavior, and duplicate detection against both the challenge state file and a real in-memory SQLite comments/commentUpdates database.

The coverage badge reports line coverage generated with yarn test:coverage. On pushes to master, CI writes a Shields-compatible endpoint payload and publishes it to GitHub Pages.

These tests exercise the challenge package directly. They do not start a full Bitsocial node or publish over the network.

Publishing

Create the GitHub release and changelog with release-it:

corepack yarn release 0.1.0

The command expects the current branch to have an upstream and needs a GitHub token that can create releases. It writes CHANGELOG.md, creates a v0.1.0 tag, and opens the GitHub release.

The first npm publish must create the package before trusted publishing can be configured:

npm publish --access public

After the package exists, configure npm trusted publishing:

  • Publisher: GitHub Actions
  • Organization: bitsocialnet
  • Repository: r9k-challenge
  • Workflow filename: publish.yml
  • Environment: leave blank

Equivalent npm CLI command:

npm trust github @bitsocial/r9k-challenge --repo bitsocialnet/r9k-challenge --file publish.yml

Future releases publish automatically when package.json version changes on master. The publish workflow skips versions that already exist on npm.