# pyloque/fastscan

quickly text search by ahocorasick algorithm

Repository: https://github.com/pyloque/fastscan
Canonical: https://ross.abutalabs.com/products/fastscan
Homepage: https://pyloque.github.com/fastscan
Language: JavaScript
License Family: other
Topics: badwords, sensitive-word, forbiddenword, ahocorasick, text-matching
Last push: 2018-10-28T10:25:22+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2872, "days_push": 2866, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1148, forks 120 (observed 2026-08-28T04:03:46.041020+00:00)

## What it is
FastScan is a JavaScript library implementing the Aho-Corasick algorithm for fast multi-pattern text search, commonly used for sensitive/bad word filtering. It works in both Node.js and the browser and supports quick, longest-match, and hit-count search modes.

## Use cases
- filter sensitive words from user-generated content
- find all occurrences of a list of keywords in a text
- scan long articles for forbidden terms
- count keyword hits in a document
- match multiple patterns simultaneously in JavaScript

## When to choose
- you need to match a large dictionary of words against text in linear time
- you want a pure JavaScript solution usable in browser and Node.js
- you need sensitive-word or badword filtering in a Chinese or multilingual text pipeline

## When to avoid
- you need regex-based or fuzzy matching rather than exact dictionary matching
- memory footprint is critical, since large word lists consume hundreds of MB
- you need an actively maintained library with recent releases and a clear repository license

## Facets
- artifact type: library
- maturity: maintenance
- function: search-engine, parser, nlp
- domain: developer-tools, text-editors
- platform: browser
- tags: ahocorasick, sensitive-word-filtering, text-matching, content-moderation, multi-pattern-search, natural-language-processing, nodejs, javascript

## Member repositories
- pyloque/fastscan (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:46.041020+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:33:51.343410+00:00, confidence not recorded.
  - readme: https://github.com/pyloque/fastscan (fetched 2026-08-28T04:03:46.041020+00:00, sha 63ecb4bf857a)
  - registry_npm: https://registry.npmjs.org/fastscan (fetched 2026-08-29T12:39:19.554256+00:00, sha 6324c106ce6b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
