sentiment and sentiment-analyser
Both use the AFINN lexicon for sentiment analysis but target different environments—one is a mature Node.js library for server-side use, while the other is a browser-based alternative for client-side analysis without external dependencies—making them complements for different deployment contexts rather than direct competitors.
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-analyser
Hand-On-Web-Ltd/sentiment-analyser
Analyse customer review sentiment using the AFINN-165 word list — no API needed, runs entirely in the browser
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work