Hide spam and unwanted emoji without destroying the archive

Loopy can flag repeat spam campaigns, hide suspected bot-generated sites, and apply the publisher and emoji-media blocklists already curated in MojiSurvivor. You decide what to show; raw records stay available for review.

import { Moderation } from '@chaoticka/nsite-loopy-sdk';
const result = Moderation.filterNsites(directory, {hideConfirmed:true,hideSuspected:false});
console.log(result.visible, result.hidden, result.clusters);

Nothing is erased. hideSuspected defaults to false, and local or pinned items are protected. campaignMatch requires a role opener, a resource promise after the opener, and a genuine external URL/domain; index.html alone does not qualify. Template clusters from multiple pubkeys are reported for review, not automatically identified as proven bot accounts.

Block publisher and media

const imported = Moderation.parseCuratorBlocklist(jsonFromUser);
const policy = {
  bannedPubkeys: [...Moderation.BUILT_IN_NSFW_BAN_PUBKEYS, ...imported.pubkeys],
  bannedEmojiHashes: [...Moderation.BUILT_IN_NSFW_BLOB_HASHES, ...imported.emojiHashes],
  filterMode: 'open_with_banlist',
};

The built-in publisher and hash bans apply by default if no ban arrays are supplied. Explicit arrays override them. Only hashed images and verified publishers are matched; not shortcodes or ordinary emoji characters. Canonical media URLs with SHA-256 file stems supply actual blob hash identity; other URLs supply deterministic URL fingerprints, not verified media SHA-256.

Signed NIP-51: Moderation.parseNip51MuteList(event) rejects tampered events; muteListTemplate(pubkeys) returns unsigned kind 10000 tags and never sends a relay write.