Composable TypeScript text filtering and content moderation packages for URLs, email addresses, phone numbers, profanity, spam, and custom moderation pipelines.
Textfilters provides small MIT-licensed packages for chat moderation, UGC moderation, censoring, redaction, URL detection, email detection, phone number detection, Russian profanity filtering, anti-spam checks, and custom pipelines.
| Package | Purpose |
|---|---|
@textfilters/core |
Shared contracts, normalization, range masking, and pipeline utilities. |
@textfilters/url |
URL detection, obfuscated links, defanged domains, and safe link censoring. |
@textfilters/email |
Email detection, obfuscated email forms, contact redaction, and false-positive guards. |
@textfilters/phone |
Phone number detection, phone-like sequence filtering, and contact redaction. |
@textfilters/profanity |
Russian profanity filter primitives with dictionary support and taxonomy metadata. |
@textfilters/spam |
Lightweight anti-spam guard for interval, duplicate, burst, and actor-based checks. |
Packages are published independently to GitHub Packages. Versions are not kept in lockstep across packages; check each package repository, GitHub Release, or package metadata for the current release.
- Chat moderation for links, contact details, profanity, and spam behavior.
- UGC moderation for posts, profiles, comments, listings, and messages.
- Censoring and redaction before display, indexing, search, or audit storage.
- Composable TypeScript moderation pipelines with independently testable filters.
@textfilters:registry=https://npm.pkg.github.comGitHub Packages requires npm authentication for installs, including public packages.
See textfilters/textfilters for the ecosystem overview, usage examples, release policy, and roadmap.
Future package additions are tracked as they become ready for release.
MIT