A tool for parsing traffic on the jetstream and applying a moderation workstream based on regexp based rules
1import type { StarterPackThresholdConfig } from "../src/types.js";
2
3/**
4 * Starter pack threshold configurations
5 *
6 * Labels accounts that create too many starter packs within a time window.
7 * Useful for detecting follow-farming and coordinated campaign behaviour.
8 * Configure your checks below.
9 */
10export const STARTER_PACK_THRESHOLD_CONFIGS: StarterPackThresholdConfig[] = [
11 // Example - detect follow-farming:
12 // {
13 // threshold: 10, // Trigger after 10 starter packs
14 // window: 7, // Within this duration
15 // windowUnit: "days", // Options: "minutes", "hours", "days"
16 // accountLabel: "follow-farming",
17 // accountComment: "Account created multiple starter packs in short period",
18 // toLabel: true, // Apply the label (default: true)
19 // reportAcct: true, // Create account report
20 // commentAcct: false, // Add comment to account record
21 // allowlist: ["did:plc:trusted123"], // DIDs to exempt from this check
22 // },
23
24 // Example - stricter threshold for rapid creation:
25 // {
26 // threshold: 5,
27 // window: 1,
28 // windowUnit: "hours",
29 // accountLabel: "spam-starterpack",
30 // accountComment: "Rapid starter pack creation detected",
31 // toLabel: false,
32 // reportAcct: true,
33 // commentAcct: true,
34 // },
35];