00:00 / 00:00

Rinnegan

Offline Mode

Offline mode (rinnegan offline) replays one or more LAPLACE Chat archives (.lca) through the exact same detector used in live mode, ranks spammers and suspects by peak score with escaped invisible-character samples, and writes detailed reports.

rinnegan offline a.lca b.lca --room 25034104 --since '2026-10-20 20:00' --top 50

Supported Archive Formats

Rinnegan inspects magic bytes to detect the archive format automatically:

  • zstd-compressed .lca: default export format in current LAPLACE Chat releases.
  • gzip-compressed .lca: standard gzip-compressed archive files.
  • Raw JSON (.json / .lca): uncompressed EventSheet[] archives or bare LaplaceEvent[] arrays.

When multiple archive files are passed, Rinnegan deduplicates messages by event ID across all sheets and sorts them chronologically before replay.

Filtering and Output Options

OptionDefaultDescription
-r, --room <ids>All roomsOnly analyze messages from these room IDs (comma-separated or repeated)
--since <time>(none)Only analyze messages at or after this time (2026-10-20, 2026-10-20 20:00, or ISO)
--until <time>(none)Only analyze messages at or before this time
--timezone <zone>Asia/ShanghaiTime zone used to parse --since/--until and display timestamps (IANA name such as America/Los_Angeles or offset such as UTC-8; env RINNEGAN_TIMEZONE)
--include-mirrorOffAlso judge cross-room mirrored danmaku (跨房弹幕)
--top <n>30Maximum users shown per category (spam, suspect, 手动融入) in the terminal
--samples <n>3Message samples shown per cluster in the terminal (terminal only; HTML reports include complete lists)
--spam-onlyOffHide suspect and 手动融入 users in terminal output and print spam verdicts only
--report-dir <dir>./reportsOutput directory for JSON, Markdown, and HTML reports (RINNEGAN_REPORT_DIR)
--no-reportOffPrint terminal output only without writing JSON, Markdown, or HTML report files

--since / --until are parsed and all timestamps are displayed in China Standard Time (Asia/Shanghai, UTC+8) regardless of the host timezone. Override it with --timezone, RINNEGAN_TIMEZONE, or timeZone in the config using any IANA zone name or UTC offset (timestamps with an explicit Z or offset suffix still use their own offset).

Reports

Terminal Output

The terminal prints the archive summary, skipped message counts, spam rankings, suspect rankings, and viewers labeled 手动融入 with what they copied and from whom (pass --spam-only to print spammers alone):

  • Each entry shows peak score, pattern, window repeats (or auto-blend line switches), automation confidence, total messages, flagged episodes, and peak timestamp.
  • Invisible characters inside message samples are rendered visibly as ⟨U+00AD⟩, ⟨U+200B⟩, and similar tags.
  • Users protected by the configured exemption rules (streamer, room admin, whitelist, guards, or fan medal level) are annotated with 豁免:<reason>.

JSON, Markdown, and HTML Files

Unless --no-report is passed, each run writes three files into reports/ containing every flagged user (unaffected by --top):

  • reports/<name>-<timestamp>.json: structured machine-readable report (including users and manualBlends; writing reports always keeps manualHistory enabled so each manualBlends entry includes its complete history of counted text sends).
  • reports/<name>-<timestamp>.md: shareable Markdown report with a summary table, per-user evidence weights, flagged episodes, message samples per cluster, and the 手动融入 list.
  • reports/<name>-<timestamp>.html: single self-contained HTML report with styles, interactive charts, and data inlined and zero network requests, so it opens offline in any modern browser and can be shared as-is (supporting light/dark themes, a light print palette, and mobile widths). At the top are summary tiles (including a dedicated 手动融入 count no longer grouped under normal viewers) and room-rate activity timelines, followed by spam, suspect, and 手动融入 sections with two-way links on flagged cards that are also marked. Alongside badges, evidence, and samples, each flagged card charts how long the user waits between danmaku in plain words (highlighting the tightest range holding half of their gaps and explaining manual pacing versus timed tools). Every flagged user and 手动融入 viewer gets a breakdown bar with a counted legend splitting all their danmaku into chants (跟队形), +1s, lines of their own (自己说的), and a gray segment for what the 手动融入 tally leaves out (lone short reactions such as ?, stickers, and @-replies); hovering, tapping, or focusing a segment or legend entry with the keyboard explains what it holds. Every danmaku list is complete and starts collapsed: click to open each line's samples or every danmaku a user sent, each tagged in the same palette as a chant, a +1 (whose line and how late), their own line, or the left-out kind (short reaction, sticker, or @-reply). Long lists scroll inside their card and print in full when expanded. The 打码 switch in the bottom-right corner blurs every viewer's name and UID (including other viewers quoted in evidence or +1 notes, while keeping streamer names and room IDs visible) for screenshots, though the HTML file itself still holds them. Archives are named by file name only, never by local path.

ReportUser Schema

Each entry in the JSON report's users array has the following shape:

Prop

Type

Last updated on November 29, 2026

Tech otakus destroy the world