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

pure-flow-ai

v1.1.0

Published

πŸ€– Smart text analysis package for detecting positive and negative words with AI support. Features customizable word lists, multiple languages, and AI-powered sentiment analysis. Perfect for content moderation, sentiment analysis, and text filtering in an

Readme

pure-flow-ai 🚫✨

Efficient profanity filter for JavaScript/TypeScript applications with flexible configuration and simple API πŸ›‘οΈ

Table of Contents

  1. πŸ” Description
  2. ⚑ Features
  3. πŸ’» Installation
  4. πŸš€ Usage
  5. 🀝 Contributing
  6. πŸ“„ License

πŸ” Description

pure-flow-ai is a powerful and flexible profanity filter for JavaScript and TypeScript applications. It provides a simple yet comprehensive API for detecting, masking, and cleaning text from inappropriate language. Perfect for chat applications, comment systems, or any text-processing functionality requiring content moderation.

⚑ Features

  • πŸ” Smart Detection: Efficiently identifies profane words in text
  • 🎭 Flexible Masking: Customizable placeholder characters for censoring
  • 🧹 Text Cleaning: Complete removal of inappropriate content
  • πŸ“ Customizable Lists: Add your own words to block or allow
  • πŸ’ͺ TypeScript Support: Full type definitions included
  • πŸ”„ Case Insensitive: Works regardless of letter casing
  • 🎯 Zero Dependencies: Lightweight and efficient
  • 🌍 Unicode Support: Works with special characters and different alphabets

πŸ’» Installation

Using npm:

npm install pure-flow-ai

Using yarn:

yarn install pure-flow-ai

Using pnpm:

pnpm install pure-flow-ai

Advanced Example

import BadWordFilter from 'pure-flow-ai';

// Initialize with default options.
const { hasProfaneWords, maskProfanity, cleanString } = BadWordFilter({
  additionalBlockWords: ['bad', 'word,'],
  excludedWords: ['trash'],
  placeholder: '*',
  overrideBlockWords: true
});

// Check if text contains profanity.
const hasBadWords = hasProfaneWords('your text here');

// Mask profane words with asterisks
const masked = maskProfanity('your text here');

// Clean text by removing profane words.
const clean = cleanString('your text here');

🀝 Contributing

We'd love for you to contribute to pure-flow-ai! Whether it's reporting bugs, suggesting features, or submitting pull requests, your help is always appreciated.

How to contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature/your-feature).
  6. Open a pull request.

πŸ“œ Code of Conduct

Please follow our Code of Conduct when participating in this project to ensure a welcoming and productive atmosphere.

πŸ”’ Security Policy

Security is our priority. If you encounter any issues, please read our full Security Policy to report vulnerabilities safely and responsibly.

πŸ‘₯ Team

These folks keep the project moving and are resources for help.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ›‘οΈ Make your application safer with pure-flow-ai!

Support

If you found this project useful, please consider giving it a ⭐️ on Github and sharing it with your friends!