00:00 / 00:00

Rinnegan

LAPLACE Rinnegan

Intro

LAPLACE Rinnegan (輪廻眼) detects 独轮车 (one viewer looping the same or nearly the same danmaku, usually through a tool such as LAPLACE Chatterbox) in bilibili live rooms, and bans them through bilibili's official room silent-user API.

  • Detection: requires repetition plus proof of automation, combining invisible characters, send ticks, periodic intervals, repeat-count jitter, machine speed, template cycling, inserted characters, auto-blend trigger replay, and multi-account lockstep so manual hype repetition is never banned
  • Live Mode: reads real-time events from LAPLACE Event Fetcher (bridge mode) or LAPLACE Event Bridge, with LAPLACE Login Sync or QR code login, exemptions, safety brakes, silent-list preflight checks, and admin commands (bans / unban)
  • Offline Mode: replays LAPLACE Chat archives (.lca), ranks spammers and suspects, labels manual trend copiers, and exports JSON, Markdown, and self-contained HTML reports
  • AI Review: optional second opinion using the Typesafe Jev decision model or any OpenAI-compatible chat model, supporting pre-ban confirmation (confirm) and strong-suspect escalation (assist)
  • Ban Store and Lift Rules: persists real bans in SQLite, PostgreSQL, Redis, or memory, with built-in timed expiry, automatic unban on room spend (--unban-spend), and pluggable BanRules
  • Configuration and Audit Log: layered JSON config file, environment variables, and CLI flags, plus a daily secret-scrubbed JSONL audit trail
  • Detector SDK: @laplace.live/rinnegan-sdk packages the same detector as a zero-dependency library for browsers, Bun, Node.js, and Workers
  • Open source under AGPL-3.0, with @laplace.live/rinnegan-sdk licensed under Apache-2.0

Quick Start

bunx @laplace.live/rinnegan offline archive.lca
bunx @laplace.live/rinnegan live --url ws://localhost:8080 --room 25034104 --dry-run
LOGIN_SYNC_TOKEN='uuid@password' bunx @laplace.live/rinnegan live --url ws://localhost:8080 --room 25034104
bunx @laplace.live/rinnegan login                                                   # or log in by QR code instead

Rinnegan runs on Bun ≥ 1.3.7. pnpx and npx work too while bun is on your PATH, and bun add -g @laplace.live/rinnegan installs the rinnegan command globally. Config, logins, logs, and reports are relative to the current working directory.

AI Agent Prompt

If you prefer not to run CLI commands by hand, paste this prompt into your AI assistant (such as Claude Code, Codex, or Cursor) to let it install, configure, and run Rinnegan step by step:

Help me install, configure, and run LAPLACE Rinnegan (`@laplace.live/rinnegan`) to detect or ban 独轮车 spammers in my bilibili live room.

Before running anything, fetch the official docs at https://laplace.live/rinnegan.en.mdx and its linked subpages (such as Offline Mode, Live Mode, and Configuration) so you use exact flags and defaults instead of guessing.

Rules:
1. Check whether Bun (>= 1.3.7) is installed first, and help me install it if missing.
2. Ask whether I want offline `.lca` archive analysis or live room monitoring, then walk me through my room ID, archive path, or exemption preferences step by step.
3. Always run `live` and `unban` with `--dry-run` first, and wait for my explicit confirmation before executing real bans or unbans.
4. Never print or expose my login tokens, cookies, or API keys in chat or logs.
5. Summarize the results in plain language and give me the path to the generated HTML report.

Source Code and Packages

Last updated on November 30, 2026

Tech otakus destroy the world