npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@textguard/fa

v1.0.1

Published

Official Persian language pack and patterns for TextGuard

Readme

# @textguard/fa 🇮🇷

> **پلاگین و دایره واژگان رسمی زبان فارسی برای سیستم فیلترینگ هوشمند و مدرن `textguard`.**

این پکیج به صورت اختصاصی برای زبان فارسی بهینه‌سازی شده است و الگوهای پیچیده متنی، کاراکترهای یونیکد هم‌شکل (نیم‌فاصله، ی و ک عربی) و کلمات نامناسب متداول در پلتفرم‌های فارسی را با بالاترین دقت و سرعت پردازش می‌کند.

---

### ✨ ویژگی‌های کلیدی نسخه فارسی

- 🛠️ **پشتیبانی کامل از ساختارهای یونیکد:** شناسایی متونی که تلاش دارند فیلتر را با تغییر ساختار حروف یا چسباندن کلمات دور بزنند.
- ⌨️ **سازگاری با کیبوردهای مختلف:** یکپارچه‌سازی خودکار تفاوت‌های میان کیبورد فارسی و عربی.
- ⚡ **عملکرد بسیار سریع (High Performance):** بدون ایجاد کوچک‌ترین سربار روی سرورهای Node.js یا فرانت‌اند.

---

### 🚀 نصب

```bash
pnpm add @textguard/core @textguard/fa
💻 نحوه استفاده و مثال‌های واقعی
به کمک پکیج اصلی و این واژه‌نامه فارسی، می‌توانید کامنت‌ها، چت‌ها و نام‌های کاربری سیستم خود را در سریع‌ترین زمان ممکن پایش کنید:

TypeScript
import { createFilter } from '@textguard/core';
import { faRules } from '@textguard/fa';

const filter = createFilter({
  languages: [faRules]
});

// نمونه اول: تشخیص کلمات نامناسب استاندارد
const checkText = filter.hasProfanity("خواهش می‌کنم کارهای احمقانه انجام ندهید.");
console.log(checkText); // true

// نمونه دوم: سانسور هوشمند و جایگزینی با کاراکتر امن
const sanitized = filter.clean("لطفاً این رفتار احمق را گزارش کنید.");
console.log(sanitized); // "لطفاً این رفتار **** را گزارش کنید."

// نمونه سوم: هوشمندی در قبال انواع ساختارهای نگارشی فارسی
// سیستم به خوبی متوجه تفاوت‌ها یا فواصل کلمات می‌شود
console.log(filter.hasProfanity("او یک احمق_است")); // true
📄 لایسنس
MIT © Ashkan Ahmadi
```