sentiment and sentiment-multilang
These are competitors offering similar AFINN-based sentiment analysis functionality, with A being the established, production-ready choice and B being an unmaintained alternative that adds multilingual support but lacks adoption.
About sentiment
thisandagain/sentiment
AFINN-based sentiment analysis for Node.js.
Combines the AFINN-165 lexicon with emoji sentiment scoring to analyze text polarity, returning detailed breakdowns including comparative scores normalized across document length. Supports extensibility through custom language registration with per-language negation and emphasis strategies, plus runtime word score overrides via extras. Built for Node.js with optimized performance (~2x faster than comparable libraries) through efficient tokenization and lexicon lookup.
About sentiment-multilang
davidemiceli/sentiment-multilang
AFINN-based multilanguage sentiment analysis for Node.js
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work